Index: Source/bindings/tests/results/V8TestInterfaceNode.cpp |
diff --git a/Source/bindings/tests/results/V8TestInterfaceNode.cpp b/Source/bindings/tests/results/V8TestInterfaceNode.cpp |
deleted file mode 100644 |
index 3fc0ecc3a55da1c2eade6aa7cc7ff4ff21144276..0000000000000000000000000000000000000000 |
--- a/Source/bindings/tests/results/V8TestInterfaceNode.cpp |
+++ /dev/null |
@@ -1,374 +0,0 @@ |
-// Copyright 2014 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
- |
-#include "config.h" |
-#include "V8TestInterfaceNode.h" |
- |
-#include "bindings/core/v8/ExceptionState.h" |
-#include "bindings/core/v8/V8AbstractEventListener.h" |
-#include "bindings/core/v8/V8DOMConfiguration.h" |
-#include "bindings/core/v8/V8EventListenerList.h" |
-#include "bindings/core/v8/V8HiddenValue.h" |
-#include "bindings/core/v8/V8ObjectConstructor.h" |
-#include "bindings/tests/v8/V8TestInterfaceEmpty.h" |
-#include "core/HTMLNames.h" |
-#include "core/dom/ContextFeatures.h" |
-#include "core/dom/Document.h" |
-#include "core/dom/custom/CustomElementProcessingStack.h" |
-#include "platform/RuntimeEnabledFeatures.h" |
-#include "platform/TraceEvent.h" |
-#include "wtf/GetPtr.h" |
-#include "wtf/RefPtr.h" |
- |
-namespace blink { |
- |
-const WrapperTypeInfo V8TestInterfaceNode::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceNode::domTemplate, V8TestInterfaceNode::refObject, V8TestInterfaceNode::derefObject, V8TestInterfaceNode::createPersistentHandle, 0, V8TestInterfaceNode::toEventTarget, 0, V8TestInterfaceNode::installConditionallyEnabledMethods, V8TestInterfaceNode::installConditionallyEnabledProperties, &V8Node::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::NodeClassId, WrapperTypeInfo::Dependent, WrapperTypeInfo::WillBeGarbageCollectedObject }; |
- |
-// This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfaceNode.h. |
-// For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
-// bindings/core/v8/ScriptWrappable.h. |
-const WrapperTypeInfo& TestInterfaceNode::s_wrapperTypeInfo = V8TestInterfaceNode::wrapperTypeInfo; |
- |
-namespace TestInterfaceNodeV8Internal { |
- |
-template <typename T> void V8_USE(T) { } |
- |
-static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
-{ |
- v8::Handle<v8::Object> holder = info.Holder(); |
- TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); |
- v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate()); |
-} |
- |
-static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceNodeV8Internal::stringAttributeAttributeGetter(info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
-{ |
- v8::Handle<v8::Object> holder = info.Holder(); |
- TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
- impl->setStringAttribute(cppValue); |
-} |
- |
-static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
- TestInterfaceNodeV8Internal::stringAttributeAttributeSetter(v8Value, info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
-{ |
- v8::Handle<v8::Object> holder = info.Holder(); |
- TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); |
- v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyTestInterfaceEmptyAttribute()), impl); |
-} |
- |
-static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceNodeV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGetter(info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
-{ |
- v8::Handle<v8::Object> holder = info.Holder(); |
- TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); |
- EventListener* cppValue(impl->eventHandlerAttribute()); |
- v8SetReturnValue(info, cppValue ? v8::Handle<v8::Value>(V8AbstractEventListener::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Handle<v8::Value>(v8::Null(info.GetIsolate()))); |
-} |
- |
-static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceNodeV8Internal::eventHandlerAttributeAttributeGetter(info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
-{ |
- v8::Handle<v8::Object> holder = info.Holder(); |
- TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); |
- impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(ScriptState::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate)); |
-} |
- |
-static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
- TestInterfaceNodeV8Internal::eventHandlerAttributeAttributeSetter(v8Value, info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
-{ |
- v8::Handle<v8::Object> holder = info.Holder(); |
- TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); |
- v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsReadonlyTestInterfaceEmptyAttribute()), impl); |
-} |
- |
-static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceNodeV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
-{ |
- v8::Handle<v8::Object> holder = info.Holder(); |
- TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); |
- v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsReadonlyTestInterfaceEmptyAttribute())); |
-} |
- |
-static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceNodeV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterForMainWorld(info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-static void reflectStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
-{ |
- v8::Handle<v8::Object> holder = info.Holder(); |
- Element* impl = V8Element::toImpl(holder); |
- v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::reflectstringattributeAttr), info.GetIsolate()); |
-} |
- |
-static void reflectStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceNodeV8Internal::reflectStringAttributeAttributeGetter(info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-static void reflectStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
-{ |
- v8::Handle<v8::Object> holder = info.Holder(); |
- Element* impl = V8Element::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
- impl->setAttribute(HTMLNames::reflectstringattributeAttr, cppValue); |
-} |
- |
-static void reflectStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
- CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
- TestInterfaceNodeV8Internal::reflectStringAttributeAttributeSetter(v8Value, info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-static void reflectUrlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
-{ |
- v8::Handle<v8::Object> holder = info.Holder(); |
- TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); |
- v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflecturlstringattributeAttr), info.GetIsolate()); |
-} |
- |
-static void reflectUrlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeGetter(info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-static void reflectUrlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
-{ |
- v8::Handle<v8::Object> holder = info.Holder(); |
- Element* impl = V8Element::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
- impl->setAttribute(HTMLNames::reflecturlstringattributeAttr, cppValue); |
-} |
- |
-static void reflectUrlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
- CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
- TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Value, info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
-{ |
- TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); |
- v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyMethod()), impl); |
-} |
- |
-static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceNodeV8Internal::testInterfaceEmptyMethodMethod(info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-static void perWorldBindingsTestInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
-{ |
- TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); |
- v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethod()), impl); |
-} |
- |
-static void perWorldBindingsTestInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethod(info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-static void perWorldBindingsTestInterfaceEmptyMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
-{ |
- TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); |
- v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethod())); |
-} |
- |
-static void perWorldBindingsTestInterfaceEmptyMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodForMainWorld(info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
-{ |
- TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); |
- bool optionalBooleanArgument; |
- { |
- v8::TryCatch block; |
- V8RethrowTryCatchScope rethrow(block); |
- if (UNLIKELY(info.Length() <= 0)) { |
- v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg()), impl); |
- return; |
- } |
- TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue()); |
- } |
- v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument)), impl); |
-} |
- |
-static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
-{ |
- TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); |
- bool optionalBooleanArgument; |
- { |
- v8::TryCatch block; |
- V8RethrowTryCatchScope rethrow(block); |
- if (UNLIKELY(info.Length() <= 0)) { |
- v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg())); |
- return; |
- } |
- TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue()); |
- } |
- v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument))); |
-} |
- |
-static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
-{ |
- TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForMainWorld(info); |
- TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
-} |
- |
-} // namespace TestInterfaceNodeV8Internal |
- |
-static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceNodeAttributes[] = { |
- {"stringAttribute", TestInterfaceNodeV8Internal::stringAttributeAttributeGetterCallback, TestInterfaceNodeV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
- {"readonlyTestInterfaceEmptyAttribute", TestInterfaceNodeV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
- {"eventHandlerAttribute", TestInterfaceNodeV8Internal::eventHandlerAttributeAttributeGetterCallback, TestInterfaceNodeV8Internal::eventHandlerAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
- {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestInterfaceNodeV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback, 0, TestInterfaceNodeV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
- {"reflectStringAttribute", TestInterfaceNodeV8Internal::reflectStringAttributeAttributeGetterCallback, TestInterfaceNodeV8Internal::reflectStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
- {"reflectUrlStringAttribute", TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeGetterCallback, TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
-}; |
- |
-static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceNodeMethods[] = { |
- {"testInterfaceEmptyMethod", TestInterfaceNodeV8Internal::testInterfaceEmptyMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
- {"perWorldBindingsTestInterfaceEmptyMethod", TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodCallback, TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, |
- {"perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg", TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallback, TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, |
-}; |
- |
-static void installV8TestInterfaceNodeTemplate(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate) |
-{ |
- functionTemplate->ReadOnlyPrototype(); |
- |
- v8::Local<v8::Signature> defaultSignature; |
- defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTemplate, "TestInterfaceNode", V8Node::domTemplate(isolate), V8TestInterfaceNode::internalFieldCount, |
- V8TestInterfaceNodeAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceNodeAttributes), |
- 0, 0, |
- V8TestInterfaceNodeMethods, WTF_ARRAY_LENGTH(V8TestInterfaceNodeMethods), |
- isolate); |
- v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTemplate->InstanceTemplate(); |
- v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTemplate->PrototypeTemplate(); |
- |
- // Custom toString template |
- functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData::from(isolate)->toStringTemplate()); |
-} |
- |
-v8::Handle<v8::FunctionTemplate> V8TestInterfaceNode::domTemplate(v8::Isolate* isolate) |
-{ |
- return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), installV8TestInterfaceNodeTemplate); |
-} |
- |
-bool V8TestInterfaceNode::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
-{ |
- return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Value); |
-} |
- |
-v8::Handle<v8::Object> V8TestInterfaceNode::findInstanceInPrototypeChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
-{ |
- return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperTypeInfo, v8Value); |
-} |
- |
-TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
-{ |
- return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle<v8::Object>::Cast(value))->toImpl<TestInterfaceNode>() : 0; |
-} |
- |
-EventTarget* V8TestInterfaceNode::toEventTarget(v8::Handle<v8::Object> object) |
-{ |
- return toImpl(object); |
-} |
- |
- |
-void V8TestInterfaceNode::refObject(ScriptWrappableBase* internalPointer) |
-{ |
-#if !ENABLE(OILPAN) |
- internalPointer->toImpl<TestInterfaceNode>()->ref(); |
-#endif |
-} |
- |
-void V8TestInterfaceNode::derefObject(ScriptWrappableBase* internalPointer) |
-{ |
-#if !ENABLE(OILPAN) |
- internalPointer->toImpl<TestInterfaceNode>()->deref(); |
-#endif |
-} |
- |
-WrapperPersistentNode* V8TestInterfaceNode::createPersistentHandle(ScriptWrappableBase* internalPointer) |
-{ |
-#if ENABLE(OILPAN) |
- return WrapperPersistent<TestInterfaceNode>::create(internalPointer->toImpl<TestInterfaceNode>()); |
-#else |
- ASSERT_NOT_REACHED(); |
- return 0; |
-#endif |
-} |
- |
-template<> |
-v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
-{ |
- return toV8(impl, creationContext, isolate); |
-} |
- |
-} // namespace blink |