| 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 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 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::kWrapperTypeObjectPro
totype, WrapperTypeInfo::kObjectClassId, WrapperTypeInfo::kInheritFromActiveScri
ptWrappable, WrapperTypeInfo::kDependent }; | 35 const WrapperTypeInfo V8TestInterface5::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestInterface5::domTemplate, V8TestInterface5::Trace, V8TestInterface5::Trace
Wrappers, V8TestInterface5::preparePrototypeAndInterfaceObject, "TestInterface5"
, &V8TestInterfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::kWrapperTypeObjectPro
totype, WrapperTypeInfo::kObjectClassId, WrapperTypeInfo::kInheritFromActiveScri
ptWrappable, WrapperTypeInfo::kDependent }; |
| 36 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 36 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 37 #pragma clang diagnostic pop | 37 #pragma clang diagnostic pop |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
e5Implementation.h. | 40 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
e5Implementation.h. |
| 41 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 41 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| 42 // bindings/core/v8/ScriptWrappable.h. | 42 // platform/bindings/ScriptWrappable.h. |
| 43 const WrapperTypeInfo& TestInterface5Implementation::wrapper_type_info_ = V8Test
Interface5::wrapperTypeInfo; | 43 const WrapperTypeInfo& TestInterface5Implementation::wrapper_type_info_ = V8Test
Interface5::wrapperTypeInfo; |
| 44 | 44 |
| 45 // [ActiveScriptWrappable] | 45 // [ActiveScriptWrappable] |
| 46 static_assert( | 46 static_assert( |
| 47 std::is_base_of<ActiveScriptWrappableBase, TestInterface5Implementation>::va
lue, | 47 std::is_base_of<ActiveScriptWrappableBase, TestInterface5Implementation>::va
lue, |
| 48 "TestInterface5Implementation does not inherit from ActiveScriptWrappable<>,
but specifying " | 48 "TestInterface5Implementation does not inherit from ActiveScriptWrappable<>,
but specifying " |
| 49 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 49 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| 50 "Be consistent."); | 50 "Be consistent."); |
| 51 static_assert( | 51 static_assert( |
| 52 !std::is_same<decltype(&TestInterface5Implementation::HasPendingActivity), | 52 !std::is_same<decltype(&TestInterface5Implementation::HasPendingActivity), |
| (...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 if (executionContext && (executionContext->IsDocument() || executionContext->I
sServiceWorkerGlobalScope())) { | 937 if (executionContext && (executionContext->IsDocument() || executionContext->I
sServiceWorkerGlobalScope())) { |
| 938 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM
ethodMethodConfiguration[] = { | 938 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM
ethodMethodConfiguration[] = { |
| 939 {"windowAndServiceWorkerExposedMethod", V8TestInterface5::windowAndService
WorkerExposedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype
, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOM
Configuration::kAllWorlds} | 939 {"windowAndServiceWorkerExposedMethod", V8TestInterface5::windowAndService
WorkerExposedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype
, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOM
Configuration::kAllWorlds} |
| 940 }; | 940 }; |
| 941 for (const auto& methodConfig : windowAndServiceWorkerExposedMethodMethodCon
figuration) | 941 for (const auto& methodConfig : windowAndServiceWorkerExposedMethodMethodCon
figuration) |
| 942 V8DOMConfiguration::InstallMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, methodConfig); | 942 V8DOMConfiguration::InstallMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, methodConfig); |
| 943 } | 943 } |
| 944 } | 944 } |
| 945 | 945 |
| 946 } // namespace blink | 946 } // namespace blink |
| OLD | NEW |