| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "V8TestInterface5.h" | 7 #include "V8TestInterface5.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "wtf/RefPtr.h" | 22 #include "wtf/RefPtr.h" |
| 23 | 23 |
| 24 namespace blink { | 24 namespace blink { |
| 25 | 25 |
| 26 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial | 26 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial |
| 27 // and does not depend on another global objects. | 27 // and does not depend on another global objects. |
| 28 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 28 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 29 #pragma clang diagnostic push | 29 #pragma clang diagnostic push |
| 30 #pragma clang diagnostic ignored "-Wglobal-constructors" | 30 #pragma clang diagnostic ignored "-Wglobal-constructors" |
| 31 #endif | 31 #endif |
| 32 const WrapperTypeInfo V8TestInterface5::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestInterface5::domTemplate, V8TestInterface5::trace, V8TestInterface5::trace
Wrappers, V8TestInterface5::toActiveScriptWrappable, V8TestInterface5::visitDOMW
rapper, V8TestInterface5::preparePrototypeAndInterfaceObject, nullptr, "TestInte
rface5", &V8TestInterfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObj
ectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEve
ntTarget, WrapperTypeInfo::Dependent }; | 32 const WrapperTypeInfo V8TestInterface5::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestInterface5::domTemplate, V8TestInterface5::trace, V8TestInterface5::trace
Wrappers, V8TestInterface5::visitDOMWrapper, V8TestInterface5::preparePrototypeA
ndInterfaceObject, nullptr, "TestInterface5", &V8TestInterfaceEmpty::wrapperType
Info, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassI
d, WrapperTypeInfo::InheritFromActiveScriptWrappable, WrapperTypeInfo::NotInheri
tFromEventTarget, WrapperTypeInfo::Dependent }; |
| 33 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 33 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 34 #pragma clang diagnostic pop | 34 #pragma clang diagnostic pop |
| 35 #endif | 35 #endif |
| 36 | 36 |
| 37 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
e5Implementation.h. | 37 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
e5Implementation.h. |
| 38 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 38 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| 39 // bindings/core/v8/ScriptWrappable.h. | 39 // bindings/core/v8/ScriptWrappable.h. |
| 40 const WrapperTypeInfo& TestInterface5Implementation::s_wrapperTypeInfo = V8TestI
nterface5::wrapperTypeInfo; | 40 const WrapperTypeInfo& TestInterface5Implementation::s_wrapperTypeInfo = V8TestI
nterface5::wrapperTypeInfo; |
| 41 | 41 |
| 42 // [ActiveScriptWrappable] |
| 43 static_assert( |
| 44 std::is_base_of<ActiveScriptWrappable, TestInterface5Implementation>::value, |
| 45 "TestInterface5Implementation does not inherit from ActiveScriptWrappable, b
ut specifying " |
| 46 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| 47 "Be consistent."); |
| 48 static_assert( |
| 49 !std::is_same<decltype(&TestInterface5Implementation::hasPendingActivity), |
| 50 decltype(&ScriptWrappable::hasPendingActivity)>::value, |
| 51 "TestInterface5Implementation is not overriding hasPendingActivity(), but is
specifying " |
| 52 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| 53 "Be consistent."); |
| 54 |
| 42 namespace TestInterface5ImplementationV8Internal { | 55 namespace TestInterface5ImplementationV8Internal { |
| 43 | 56 |
| 44 static void testInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo
<v8::Value>& info) | 57 static void testInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 45 { | 58 { |
| 46 v8::Local<v8::Object> holder = info.Holder(); | 59 v8::Local<v8::Object> holder = info.Holder(); |
| 47 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 60 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |
| 48 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
); | 61 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
); |
| 49 } | 62 } |
| 50 | 63 |
| 51 static void testInterfaceAttributeAttributeGetterCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 64 static void testInterfaceAttributeAttributeGetterCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| (...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 if (executionContext && (executionContext->isDocument())) { | 928 if (executionContext && (executionContext->isDocument())) { |
| 916 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM
ethodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV
8Internal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; | 929 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM
ethodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV
8Internal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; |
| 917 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(
), prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodC
onfiguration); | 930 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(
), prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodC
onfiguration); |
| 918 } | 931 } |
| 919 if (executionContext && (executionContext->isDocument() || executionContext-
>isServiceWorkerGlobalScope())) { | 932 if (executionContext && (executionContext->isDocument() || executionContext-
>isServiceWorkerGlobalScope())) { |
| 920 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpo
sedMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInter
face5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback
, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O
nPrototype}; | 933 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpo
sedMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInter
face5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback
, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O
nPrototype}; |
| 921 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(
), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet
hodMethodConfiguration); | 934 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(
), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet
hodMethodConfiguration); |
| 922 } | 935 } |
| 923 } | 936 } |
| 924 | 937 |
| 925 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O
bject> wrapper) | |
| 926 { | |
| 927 return toImpl(wrapper); | |
| 928 } | |
| 929 | |
| 930 } // namespace blink | 938 } // namespace blink |
| OLD | NEW |