| 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 "V8TestInterface.h" | 7 #include "V8TestInterface.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 10 #include "bindings/core/v8/PrivateScriptRunner.h" | 10 #include "bindings/core/v8/PrivateScriptRunner.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "wtf/RefPtr.h" | 38 #include "wtf/RefPtr.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial | 42 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial |
| 43 // and does not depend on another global objects. | 43 // and does not depend on another global objects. |
| 44 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 44 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 45 #pragma clang diagnostic push | 45 #pragma clang diagnostic push |
| 46 #pragma clang diagnostic ignored "-Wglobal-constructors" | 46 #pragma clang diagnostic ignored "-Wglobal-constructors" |
| 47 #endif | 47 #endif |
| 48 WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink, V8Test
Interface::domTemplate, V8TestInterface::refObject, V8TestInterface::derefObject
, V8TestInterface::trace, V8TestInterface::visitDOMWrapper, V8TestInterface::pre
parePrototypeAndInterfaceObject, V8TestInterface::installConditionallyEnabledPro
perties, "TestInterface", &V8TestInterfaceEmpty::wrapperTypeInfo, WrapperTypeInf
o::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::
NotInheritFromEventTarget, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCount
edObject }; | 48 WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink, V8Test
Interface::domTemplate, V8TestInterface::refObject, V8TestInterface::derefObject
, V8TestInterface::trace, V8TestInterface::toActiveScriptWrappable, V8TestInterf
ace::visitDOMWrapper, V8TestInterface::preparePrototypeAndInterfaceObject, V8Tes
tInterface::installConditionallyEnabledProperties, "TestInterface", &V8TestInter
faceEmpty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, Wrapper
TypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperType
Info::Dependent, WrapperTypeInfo::RefCountedObject }; |
| 49 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 49 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 50 #pragma clang diagnostic pop | 50 #pragma clang diagnostic pop |
| 51 #endif | 51 #endif |
| 52 | 52 |
| 53 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eImplementation.h. | 53 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eImplementation.h. |
| 54 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 54 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| 55 // bindings/core/v8/ScriptWrappable.h. | 55 // bindings/core/v8/ScriptWrappable.h. |
| 56 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn
terface::wrapperTypeInfo; | 56 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn
terface::wrapperTypeInfo; |
| 57 | 57 |
| 58 namespace TestInterfaceImplementationV8Internal { | 58 namespace TestInterfaceImplementationV8Internal { |
| (...skipping 3135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3194 if (executionContext && ((executionContext->isDocument() && RuntimeEnabledFe
atures::featureNameEnabled()) || (executionContext->isWorkerGlobalScope() && Run
timeEnabledFeatures::featureName2Enabled()))) { | 3194 if (executionContext && ((executionContext->isDocument() && RuntimeEnabledFe
atures::featureNameEnabled()) || (executionContext->isWorkerGlobalScope() && Run
timeEnabledFeatures::featureName2Enabled()))) { |
| 3195 const V8DOMConfiguration::MethodConfiguration methodWithExposedHavingRun
timeEnabldFlagMethodConfiguration = {"methodWithExposedHavingRuntimeEnabldFlag",
TestInterfaceImplementationV8Internal::methodWithExposedHavingRuntimeEnabldFlag
MethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMCo
nfiguration::OnPrototype}; | 3195 const V8DOMConfiguration::MethodConfiguration methodWithExposedHavingRun
timeEnabldFlagMethodConfiguration = {"methodWithExposedHavingRuntimeEnabldFlag",
TestInterfaceImplementationV8Internal::methodWithExposedHavingRuntimeEnabldFlag
MethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMCo
nfiguration::OnPrototype}; |
| 3196 V8DOMConfiguration::installMethod(isolate, v8::Local<v8::Object>(), prot
otypeObject, interfaceObject, defaultSignature, methodWithExposedHavingRuntimeEn
abldFlagMethodConfiguration); | 3196 V8DOMConfiguration::installMethod(isolate, v8::Local<v8::Object>(), prot
otypeObject, interfaceObject, defaultSignature, methodWithExposedHavingRuntimeEn
abldFlagMethodConfiguration); |
| 3197 } | 3197 } |
| 3198 if (executionContext && (executionContext->isDocument() || executionContext-
>isServiceWorkerGlobalScope())) { | 3198 if (executionContext && (executionContext->isDocument() || executionContext-
>isServiceWorkerGlobalScope())) { |
| 3199 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpo
sedMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInter
faceImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback,
0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Prototype}; | 3199 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpo
sedMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInter
faceImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback,
0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Prototype}; |
| 3200 V8DOMConfiguration::installMethod(isolate, v8::Local<v8::Object>(), prot
otypeObject, interfaceObject, defaultSignature, windowAndServiceWorkerExposedMet
hodMethodConfiguration); | 3200 V8DOMConfiguration::installMethod(isolate, v8::Local<v8::Object>(), prot
otypeObject, interfaceObject, defaultSignature, windowAndServiceWorkerExposedMet
hodMethodConfiguration); |
| 3201 } | 3201 } |
| 3202 } | 3202 } |
| 3203 | 3203 |
| 3204 ActiveScriptWrappable* V8TestInterface::toActiveScriptWrappable(v8::Local<v8::Ob
ject> wrapper) |
| 3205 { |
| 3206 return toImpl(wrapper); |
| 3207 } |
| 3208 |
| 3204 void V8TestInterface::refObject(ScriptWrappable* scriptWrappable) | 3209 void V8TestInterface::refObject(ScriptWrappable* scriptWrappable) |
| 3205 { | 3210 { |
| 3206 scriptWrappable->toImpl<TestInterfaceImplementation>()->ref(); | 3211 scriptWrappable->toImpl<TestInterfaceImplementation>()->ref(); |
| 3207 } | 3212 } |
| 3208 | 3213 |
| 3209 void V8TestInterface::derefObject(ScriptWrappable* scriptWrappable) | 3214 void V8TestInterface::derefObject(ScriptWrappable* scriptWrappable) |
| 3210 { | 3215 { |
| 3211 scriptWrappable->toImpl<TestInterfaceImplementation>()->deref(); | 3216 scriptWrappable->toImpl<TestInterfaceImplementation>()->deref(); |
| 3212 } | 3217 } |
| 3213 | 3218 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3338 { | 3343 { |
| 3339 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 3344 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
| 3340 } | 3345 } |
| 3341 | 3346 |
| 3342 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 3347 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 3343 { | 3348 { |
| 3344 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 3349 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
| 3345 } | 3350 } |
| 3346 | 3351 |
| 3347 } // namespace blink | 3352 } // namespace blink |
| OLD | NEW |