|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <e32base.h> |
|
21 #include <npruntime.h> |
|
22 #include <Browser_platform_variant.hrh> |
|
23 |
|
24 // EXTERNAL DATA STRUCTURES |
|
25 |
|
26 // EXTERNAL FUNCTION PROTOTYPES |
|
27 |
|
28 // CONSTANTS |
|
29 |
|
30 // MACROS |
|
31 |
|
32 // LOCAL CONSTANTS AND MACROS |
|
33 |
|
34 // MODULE DATA STRUCTURES |
|
35 |
|
36 // LOCAL FUNCTION PROTOTYPES |
|
37 |
|
38 // FORWARD DECLARATIONS |
|
39 |
|
40 // ============================= LOCAL FUNCTIONS =============================== |
|
41 |
|
42 #ifdef __cplusplus |
|
43 extern "C" { |
|
44 #endif |
|
45 |
|
46 #if defined(__S60_32__) |
|
47 EXPORT_C void NPN_ReleaseVariantValue (NPVariant *variant) |
|
48 { |
|
49 _NPN_ReleaseVariantValue (variant); |
|
50 } |
|
51 #endif // __S60_32__ |
|
52 |
|
53 EXPORT_C NPIdentifier NPN_GetStringIdentifier(const NPUTF8 *name) |
|
54 { |
|
55 return _NPN_GetStringIdentifier(name); |
|
56 } |
|
57 |
|
58 EXPORT_C void NPN_GetStringIdentifiers(const NPUTF8 **names, int32_t nameCount, NPIdentifier *identifiers) |
|
59 { |
|
60 _NPN_GetStringIdentifiers(names, nameCount, identifiers); |
|
61 } |
|
62 |
|
63 EXPORT_C NPIdentifier NPN_GetIntIdentifier(int32_t intid) |
|
64 { |
|
65 return _NPN_GetIntIdentifier(intid); |
|
66 } |
|
67 |
|
68 EXPORT_C bool NPN_IdentifierIsString(NPIdentifier identifier) |
|
69 { |
|
70 return _NPN_IdentifierIsString(identifier); |
|
71 } |
|
72 |
|
73 EXPORT_C NPUTF8 *NPN_UTF8FromIdentifier(NPIdentifier identifier) |
|
74 { |
|
75 return _NPN_UTF8FromIdentifier(identifier); |
|
76 } |
|
77 |
|
78 EXPORT_C int32_t NPN_IntFromIdentifier(NPIdentifier identifier) |
|
79 { |
|
80 return _NPN_IntFromIdentifier(identifier); |
|
81 } |
|
82 |
|
83 EXPORT_C NPObject *NPN_CreateObject(NPP npp, NPClass *aClass) |
|
84 { |
|
85 return _NPN_CreateObject(npp, aClass); |
|
86 } |
|
87 |
|
88 EXPORT_C NPObject *NPN_RetainObject (NPObject *obj) |
|
89 { |
|
90 return _NPN_RetainObject (obj); |
|
91 } |
|
92 |
|
93 EXPORT_C void NPN_ReleaseObject (NPObject *obj) |
|
94 { |
|
95 return _NPN_ReleaseObject (obj); |
|
96 } |
|
97 |
|
98 EXPORT_C bool NPN_Invoke(NPP npp, NPObject *npobj, NPIdentifier methodName, const NPVariant *args, uint32_t argCount, NPVariant *result) |
|
99 { |
|
100 return _NPN_Invoke(npp, npobj, methodName, args, argCount, result); |
|
101 } |
|
102 |
|
103 EXPORT_C bool NPN_InvokeDefault(NPP npp, NPObject *npobj, const NPVariant *args, uint32_t argCount, NPVariant *result) |
|
104 { |
|
105 return _NPN_InvokeDefault(npp, npobj, args, argCount, result); |
|
106 } |
|
107 |
|
108 EXPORT_C bool NPN_Evaluate(NPP npp, NPObject *npobj, NPString *script, NPVariant *result) |
|
109 { |
|
110 return _NPN_Evaluate(npp, npobj, script, result); |
|
111 } |
|
112 |
|
113 EXPORT_C bool NPN_GetProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName, NPVariant *result) |
|
114 { |
|
115 return _NPN_GetProperty(npp, npobj, propertyName, result); |
|
116 } |
|
117 |
|
118 EXPORT_C bool NPN_SetProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName, const NPVariant *value) |
|
119 { |
|
120 return _NPN_SetProperty(npp, npobj, propertyName, value); |
|
121 } |
|
122 |
|
123 EXPORT_C bool NPN_RemoveProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName) |
|
124 { |
|
125 return _NPN_RemoveProperty(npp, npobj, propertyName); |
|
126 } |
|
127 |
|
128 EXPORT_C bool NPN_HasProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName) |
|
129 { |
|
130 return _NPN_HasProperty(npp, npobj, propertyName); |
|
131 } |
|
132 |
|
133 EXPORT_C bool NPN_HasMethod(NPP npp, NPObject *npobj, NPIdentifier methodName) |
|
134 { |
|
135 return _NPN_HasMethod(npp, npobj, methodName); |
|
136 } |
|
137 |
|
138 EXPORT_C bool NPN_Enumerate(NPP npp, NPObject *npobj, NPIdentifier **identifier, uint32_t *count) |
|
139 { |
|
140 return _NPN_Enumerate(npp, npobj, identifier, count); |
|
141 } |
|
142 |
|
143 EXPORT_C void NPN_SetException (NPObject *obj, const NPUTF8 *message) |
|
144 { |
|
145 _NPN_SetException (obj, message); |
|
146 } |
|
147 |
|
148 |
|
149 #ifdef __cplusplus |
|
150 } |
|
151 #endif |
|
152 |
|
153 |
|
154 // End of File |