OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 // _NPN_UnregisterObjectOwner | 129 // _NPN_UnregisterObjectOwner |
130 BLINK_EXPORT static void unregisterObjectOwner(NPP); | 130 BLINK_EXPORT static void unregisterObjectOwner(NPP); |
131 | 131 |
132 // Temporary dummy implementation of _NPN_GetObjectOwner. | 132 // Temporary dummy implementation of _NPN_GetObjectOwner. |
133 BLINK_EXPORT static NPP getObjectOwner(NPObject*); | 133 BLINK_EXPORT static NPP getObjectOwner(NPObject*); |
134 | 134 |
135 // _NPN_UnregisterObject | 135 // _NPN_UnregisterObject |
136 BLINK_EXPORT static void unregisterObject(NPObject*); | 136 BLINK_EXPORT static void unregisterObject(NPObject*); |
137 | 137 |
| 138 // Unlike unregisterObject, only drops the V8 wrapper object, |
| 139 // not touching the NPObject itself, except for decrementing |
| 140 // its references counter. |
| 141 BLINK_EXPORT static void dropV8WrapperForObject(NPObject*); |
| 142 |
138 // NPN_UTF8FromIdentifier | 143 // NPN_UTF8FromIdentifier |
139 BLINK_EXPORT static NPUTF8* utf8FromIdentifier(NPIdentifier); | 144 BLINK_EXPORT static NPUTF8* utf8FromIdentifier(NPIdentifier); |
140 | 145 |
141 // Miscellaneous utility functions ---------------------------------------- | 146 // Miscellaneous utility functions ---------------------------------------- |
142 | 147 |
143 // Complement to NPN_Get___Identifier functions. Extracts data from the NPI
dentifier data | 148 // Complement to NPN_Get___Identifier functions. Extracts data from the NPI
dentifier data |
144 // structure. If isString is true upon return, string will be set but numbe
r's value is | 149 // structure. If isString is true upon return, string will be set but numbe
r's value is |
145 // undefined. If iString is false, the opposite is true. | 150 // undefined. If iString is false, the opposite is true. |
146 BLINK_EXPORT static void extractIdentifierData(const NPIdentifier&, const NP
UTF8*& string, int32_t& number, bool& isString); | 151 BLINK_EXPORT static void extractIdentifierData(const NPIdentifier&, const NP
UTF8*& string, int32_t& number, bool& isString); |
147 | 152 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 BLINK_EXPORT static void popExceptionHandler(); | 185 BLINK_EXPORT static void popExceptionHandler(); |
181 | 186 |
182 // Conversion utilities to/from V8 native objects and NPVariant wrappers. | 187 // Conversion utilities to/from V8 native objects and NPVariant wrappers. |
183 BLINK_EXPORT static void toNPVariant(v8::Local<v8::Value>, NPObject* root, N
PVariant* result); | 188 BLINK_EXPORT static void toNPVariant(v8::Local<v8::Value>, NPObject* root, N
PVariant* result); |
184 BLINK_EXPORT static v8::Handle<v8::Value> toV8Value(const NPVariant*); | 189 BLINK_EXPORT static v8::Handle<v8::Value> toV8Value(const NPVariant*); |
185 }; | 190 }; |
186 | 191 |
187 } // namespace blink | 192 } // namespace blink |
188 | 193 |
189 #endif | 194 #endif |
OLD | NEW |