|
Lines 28-34
Source/WebCore/bindings/v8/NPV8Object.cpp_sec1
|
| 28 |
|
28 |
|
| 29 |
#include "NPV8Object.h" |
29 |
#include "NPV8Object.h" |
| 30 |
|
30 |
|
| 31 |
#include "PlatformSupport.h" |
|
|
| 32 |
#include "DOMWindow.h" |
31 |
#include "DOMWindow.h" |
| 33 |
#include "Frame.h" |
32 |
#include "Frame.h" |
| 34 |
#include "NPObjectWrapper.h" |
33 |
#include "NPObjectWrapper.h" |
|
Lines 130-136
static v8::Local<v8::String> npIdentifie
Source/WebCore/bindings/v8/NPV8Object.cpp_sec2
|
| 130 |
|
129 |
|
| 131 |
NPObject* v8ObjectToNPObject(v8::Handle<v8::Object> object) |
130 |
NPObject* v8ObjectToNPObject(v8::Handle<v8::Object> object) |
| 132 |
{ |
131 |
{ |
| 133 |
return reinterpret_cast<NPObject*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex)); |
132 |
return reinterpret_cast<NPObject*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex)); |
| 134 |
} |
133 |
} |
| 135 |
|
134 |
|
| 136 |
static NPClass V8NPObjectClass = { NP_CLASS_STRUCT_VERSION, |
135 |
static NPClass V8NPObjectClass = { NP_CLASS_STRUCT_VERSION, |
|
Lines 296-302
bool _NPN_InvokeDefault(NPP npp, NPObjec
Source/WebCore/bindings/v8/NPV8Object.cpp_sec3
|
| 296 |
|
295 |
|
| 297 |
bool _NPN_Evaluate(NPP npp, NPObject* npObject, NPString* npScript, NPVariant* result) |
296 |
bool _NPN_Evaluate(NPP npp, NPObject* npObject, NPString* npScript, NPVariant* result) |
| 298 |
{ |
297 |
{ |
| 299 |
bool popupsAllowed = PlatformSupport::popupsAllowed(npp); |
298 |
bool popupsAllowed = false; |
| 300 |
return _NPN_EvaluateHelper(npp, popupsAllowed, npObject, npScript, result); |
299 |
return _NPN_EvaluateHelper(npp, popupsAllowed, npObject, npScript, result); |
| 301 |
} |
300 |
} |
| 302 |
|
301 |
|
|
Lines 362-368
bool _NPN_GetProperty(NPP npp, NPObject*
Source/WebCore/bindings/v8/NPV8Object.cpp_sec4
|
| 362 |
|
361 |
|
| 363 |
v8::Handle<v8::Object> obj(object->v8Object); |
362 |
v8::Handle<v8::Object> obj(object->v8Object); |
| 364 |
v8::Local<v8::Value> v8result = obj->Get(npIdentifierToV8Identifier(propertyName)); |
363 |
v8::Local<v8::Value> v8result = obj->Get(npIdentifierToV8Identifier(propertyName)); |
| 365 |
|
364 |
|
| 366 |
if (v8result.IsEmpty()) |
365 |
if (v8result.IsEmpty()) |
| 367 |
return false; |
366 |
return false; |
| 368 |
|
367 |
|