| 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. | 5 // This file has been auto-generated by code_generator_v8.py. |
| 6 // DO NOT MODIFY! | 6 // DO NOT MODIFY! |
| 7 | 7 |
| 8 // This file has been generated from the Jinja2 template in | 8 // This file has been generated from the Jinja2 template in |
| 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
| 10 | 10 |
| 11 // clang-format off | 11 // clang-format off |
| 12 #include "V8TestInterface5.h" | 12 #include "V8TestInterface5.h" |
| 13 | 13 |
| 14 #include "bindings/core/v8/ExceptionState.h" | 14 #include "bindings/core/v8/ExceptionState.h" |
| 15 #include "bindings/core/v8/IDLTypes.h" | 15 #include "bindings/core/v8/IDLTypes.h" |
| 16 #include "bindings/core/v8/NativeValueTraitsImpl.h" | 16 #include "bindings/core/v8/NativeValueTraitsImpl.h" |
| 17 #include "bindings/core/v8/V8DOMConfiguration.h" | 17 #include "bindings/core/v8/V8DOMConfiguration.h" |
| 18 #include "bindings/core/v8/V8ObjectConstructor.h" | 18 #include "bindings/core/v8/V8ObjectConstructor.h" |
| 19 #include "bindings/core/v8/V8TestInterfaceEmpty.h" | 19 #include "bindings/core/v8/V8TestInterfaceEmpty.h" |
| 20 #include "bindings/modules/v8/V8TestInterface5.h" | 20 #include "bindings/modules/v8/V8TestInterface5.h" |
| 21 #include "bindings/modules/v8/VoidCallbackFunctionModules.h" | 21 #include "bindings/modules/v8/VoidCallbackFunctionModules.h" |
| 22 #include "core/dom/Document.h" | 22 #include "core/dom/Document.h" |
| 23 #include "platform/RuntimeEnabledFeatures.h" | 23 #include "platform/RuntimeEnabledFeatures.h" |
| 24 #include "wtf/GetPtr.h" | 24 #include "platform/wtf/GetPtr.h" |
| 25 #include "wtf/RefPtr.h" | 25 #include "platform/wtf/RefPtr.h" |
| 26 | 26 |
| 27 namespace blink { | 27 namespace blink { |
| 28 | 28 |
| 29 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial | 29 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial |
| 30 // and does not depend on another global objects. | 30 // and does not depend on another global objects. |
| 31 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 31 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 32 #pragma clang diagnostic push | 32 #pragma clang diagnostic push |
| 33 #pragma clang diagnostic ignored "-Wglobal-constructors" | 33 #pragma clang diagnostic ignored "-Wglobal-constructors" |
| 34 #endif | 34 #endif |
| 35 const WrapperTypeInfo V8TestInterface5::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestInterface5::domTemplate, V8TestInterface5::trace, V8TestInterface5::trace
Wrappers, V8TestInterface5::preparePrototypeAndInterfaceObject, "TestInterface5"
, &V8TestInterfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectProt
otype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromActiveScriptW
rappable, WrapperTypeInfo::Dependent }; | 35 const WrapperTypeInfo V8TestInterface5::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestInterface5::domTemplate, V8TestInterface5::trace, V8TestInterface5::trace
Wrappers, V8TestInterface5::preparePrototypeAndInterfaceObject, "TestInterface5"
, &V8TestInterfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectProt
otype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromActiveScriptW
rappable, WrapperTypeInfo::Dependent }; |
| (...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 if (executionContext && (executionContext->isDocument() || executionContext->i
sServiceWorkerGlobalScope())) { | 932 if (executionContext && (executionContext->isDocument() || executionContext->i
sServiceWorkerGlobalScope())) { |
| 933 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM
ethodMethodConfiguration[] = { | 933 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM
ethodMethodConfiguration[] = { |
| 934 {"windowAndServiceWorkerExposedMethod", V8TestInterface5::windowAndService
WorkerExposedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMCon
figuration::AllWorlds} | 934 {"windowAndServiceWorkerExposedMethod", V8TestInterface5::windowAndService
WorkerExposedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMCon
figuration::AllWorlds} |
| 935 }; | 935 }; |
| 936 for (const auto& methodConfig : windowAndServiceWorkerExposedMethodMethodCon
figuration) | 936 for (const auto& methodConfig : windowAndServiceWorkerExposedMethodMethodCon
figuration) |
| 937 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, methodConfig); | 937 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, methodConfig); |
| 938 } | 938 } |
| 939 } | 939 } |
| 940 | 940 |
| 941 } // namespace blink | 941 } // namespace blink |
| OLD | NEW |