X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fbindings%2Ftests%2Fresults%2FV8TestInterfaceNode.h;h=dd1cb26a7683c68c88ae33e50fb2ffbb5aca6c1e;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=0ac14f4a63cf1d82571e30926aab3dd0a3509f66;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/bindings/tests/results/V8TestInterfaceNode.h b/src/third_party/WebKit/Source/bindings/tests/results/V8TestInterfaceNode.h index 0ac14f4..dd1cb26 100644 --- a/src/third_party/WebKit/Source/bindings/tests/results/V8TestInterfaceNode.h +++ b/src/third_party/WebKit/Source/bindings/tests/results/V8TestInterfaceNode.h @@ -7,14 +7,15 @@ #ifndef V8TestInterfaceNode_h #define V8TestInterfaceNode_h +#include "bindings/core/v8/ScriptWrappable.h" +#include "bindings/core/v8/V8Binding.h" +#include "bindings/core/v8/V8DOMWrapper.h" +#include "bindings/core/v8/WrapperTypeInfo.h" #include "bindings/tests/idls/TestInterfaceNode.h" #include "bindings/tests/v8/V8Node.h" -#include "bindings/v8/V8Binding.h" -#include "bindings/v8/V8DOMWrapper.h" -#include "bindings/v8/WrapperTypeInfo.h" #include "platform/heap/Handle.h" -namespace WebCore { +namespace blink { class V8TestInterfaceNode { public: @@ -23,11 +24,11 @@ public: static v8::Handle domTemplate(v8::Isolate*); static TestInterfaceNode* toNative(v8::Handle object) { - return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)); + return fromInternalPointer(blink::toInternalPointer(object)); } static TestInterfaceNode* toNativeWithTypeCheck(v8::Isolate*, v8::Handle); static const WrapperTypeInfo wrapperTypeInfo; - static void derefObject(void*); + static void derefObject(ScriptWrappableBase* internalPointer); static EventTarget* toEventTarget(v8::Handle); #if ENABLE(OILPAN) static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount + 0; @@ -35,17 +36,17 @@ public: #else static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0; #endif - static inline void* toInternalPointer(TestInterfaceNode* impl) + static inline ScriptWrappableBase* toInternalPointer(TestInterfaceNode* impl) { return V8Node::toInternalPointer(impl); } - static inline TestInterfaceNode* fromInternalPointer(void* object) + static inline TestInterfaceNode* fromInternalPointer(ScriptWrappableBase* internalPointer) { - return static_cast(V8Node::fromInternalPointer(object)); + return static_cast(V8Node::fromInternalPointer(internalPointer)); } - static void installPerContextEnabledProperties(v8::Handle, TestInterfaceNode*, v8::Isolate*) { } - static void installPerContextEnabledMethods(v8::Handle, v8::Isolate*) { } + static void installConditionallyEnabledProperties(v8::Handle, v8::Isolate*) { } + static void installConditionallyEnabledMethods(v8::Handle, v8::Isolate*) { } private: friend v8::Handle wrap(TestInterfaceNode*, v8::Handle creationContext, v8::Isolate*);