X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fbindings%2Ftests%2Fresults%2Fmodules%2FV8TestInterface5.h;h=528597c9eacbce7dad7fa1b8242a6f9090c24b48;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=79d9fa2e890ab49f4c39283e14437162873366a6;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.h b/src/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.h index 79d9fa2..528597c 100644 --- a/src/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.h +++ b/src/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.h @@ -25,14 +25,16 @@ public: static v8::Handle domTemplate(v8::Isolate*); static TestInterface5Implementation* toImpl(v8::Handle object) { - return toImpl(blink::toScriptWrappableBase(object)); + return blink::toScriptWrappableBase(object)->toImpl(); } static TestInterface5Implementation* toImplWithTypeCheck(v8::Isolate*, v8::Handle); static const WrapperTypeInfo wrapperTypeInfo; - static void refObject(ScriptWrappableBase* internalPointer); - static void derefObject(ScriptWrappableBase* internalPointer); - static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* internalPointer); - static void visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8::Persistent&, v8::Isolate*); + static void refObject(ScriptWrappableBase*); + static void derefObject(ScriptWrappableBase*); + static void trace(Visitor* visitor, ScriptWrappableBase* scriptWrappableBase) + { + } + static void visitDOMWrapper(v8::Isolate*, ScriptWrappableBase*, const v8::Persistent&); static ActiveDOMObject* toActiveDOMObject(v8::Handle); static void legacyCallCustom(const v8::FunctionCallbackInfo&); static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0; @@ -40,61 +42,31 @@ public: { return impl->toScriptWrappableBase(); } - - static inline TestInterface5Implementation* toImpl(ScriptWrappableBase* internalPointer) - { - return internalPointer->toImpl(); - } static void installConditionallyEnabledProperties(v8::Handle, v8::Isolate*); static void installConditionallyEnabledMethods(v8::Handle, v8::Isolate*); - -private: }; -class TestInterface5Implementation; v8::Handle toV8(TestInterface5Implementation*, v8::Handle creationContext, v8::Isolate*); -template +template inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterface5Implementation* impl) { v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate())); } -template +template inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestInterface5Implementation* impl) { v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate())); } -template -inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestInterface5Implementation* impl, Wrappable*) +template +inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestInterface5Implementation* impl, const ScriptWrappable*) { v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate())); } -inline v8::Handle toV8(PassRefPtr impl, v8::Handle creationContext, v8::Isolate* isolate) -{ - return toV8(impl.get(), creationContext, isolate); -} - -template -inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr impl) -{ - v8SetReturnValue(callbackInfo, impl.get()); -} - -template -inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassRefPtr impl) -{ - v8SetReturnValueForMainWorld(callbackInfo, impl.get()); -} - -template -inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr impl, Wrappable* wrappable) -{ - v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); -} - } // namespace blink #endif // ENABLE(CONDITION) + #endif // V8TestInterface5_h