-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathScriptablePluginObjectBase.cpp
More file actions
executable file
·176 lines (151 loc) · 3.77 KB
/
ScriptablePluginObjectBase.cpp
File metadata and controls
executable file
·176 lines (151 loc) · 3.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
#ifdef XP_WIN
#include <windows.h>
#include <windowsx.h>
#endif
#ifdef XP_MAC
#include <TextEdit.h>
#endif
#ifdef XP_UNIX
#include <string.h>
#endif
#include <stdio.h>
#include "ScriptablePluginObjectBase.h"
void ScriptablePluginObjectBase::Invalidate()
{
OutputDebugStringA("base_invalidate");
}
bool
ScriptablePluginObjectBase::HasMethod(NPIdentifier name)
{
OutputDebugStringA("base_HasMethod");
return false;
}
bool
ScriptablePluginObjectBase::Invoke(NPIdentifier name, const NPVariant *args,
uint32_t argCount, NPVariant *result)
{
OutputDebugStringA("base_invoke");
return false;
}
bool
ScriptablePluginObjectBase::InvokeDefault(const NPVariant *args,
uint32_t argCount, NPVariant *result)
{
return false;
}
bool
ScriptablePluginObjectBase::HasProperty(NPIdentifier name)
{
OutputDebugStringA("base_hasproperty");
return false;
}
bool
ScriptablePluginObjectBase::GetProperty(NPIdentifier name, NPVariant *result)
{
OutputDebugStringA("base_getproperty");
return false;
}
bool
ScriptablePluginObjectBase::SetProperty(NPIdentifier name,
const NPVariant *value)
{
OutputDebugStringA("base_setproperty");
return false;
}
bool
ScriptablePluginObjectBase::RemoveProperty(NPIdentifier name)
{
return false;
}
bool
ScriptablePluginObjectBase::Enumerate(NPIdentifier **identifier,
uint32_t *count)
{
return false;
}
bool
ScriptablePluginObjectBase::Construct(const NPVariant *args, uint32_t argCount,
NPVariant *result)
{
return false;
}
// static
void
ScriptablePluginObjectBase::_Deallocate(NPObject *npobj)
{
// Call the virtual destructor.
delete (ScriptablePluginObjectBase *)npobj;
}
// static
void
ScriptablePluginObjectBase::_Invalidate(NPObject *npobj)
{
((ScriptablePluginObjectBase *)npobj)->Invalidate();
}
// static
bool
ScriptablePluginObjectBase::_HasMethod(NPObject *npobj, NPIdentifier name)
{
return ((ScriptablePluginObjectBase *)npobj)->HasMethod(name);
}
// static
bool
ScriptablePluginObjectBase::_Invoke(NPObject *npobj, NPIdentifier name,
const NPVariant *args, uint32_t argCount,
NPVariant *result)
{
return ((ScriptablePluginObjectBase *)npobj)->Invoke(name, args, argCount,
result);
}
// static
bool
ScriptablePluginObjectBase::_InvokeDefault(NPObject *npobj,
const NPVariant *args,
uint32_t argCount,
NPVariant *result)
{
return ((ScriptablePluginObjectBase *)npobj)->InvokeDefault(args, argCount,
result);
}
// static
bool
ScriptablePluginObjectBase::_HasProperty(NPObject * npobj, NPIdentifier name)
{
return ((ScriptablePluginObjectBase *)npobj)->HasProperty(name);
}
// static
bool
ScriptablePluginObjectBase::_GetProperty(NPObject *npobj, NPIdentifier name,
NPVariant *result)
{
return ((ScriptablePluginObjectBase *)npobj)->GetProperty(name, result);
}
// static
bool
ScriptablePluginObjectBase::_SetProperty(NPObject *npobj, NPIdentifier name,
const NPVariant *value)
{
return ((ScriptablePluginObjectBase *)npobj)->SetProperty(name, value);
}
// static
bool
ScriptablePluginObjectBase::_RemoveProperty(NPObject *npobj, NPIdentifier name)
{
return ((ScriptablePluginObjectBase *)npobj)->RemoveProperty(name);
}
// static
bool
ScriptablePluginObjectBase::_Enumerate(NPObject *npobj,
NPIdentifier **identifier,
uint32_t *count)
{
return ((ScriptablePluginObjectBase *)npobj)->Enumerate(identifier, count);
}
// static
bool
ScriptablePluginObjectBase::_Construct(NPObject *npobj, const NPVariant *args,
uint32_t argCount, NPVariant *result)
{
return ((ScriptablePluginObjectBase *)npobj)->Construct(args, argCount,
result);
}