| 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 739 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 750 void V8TestInterface5::indexedPropertyDeleterCallback(uint32_t index, const v8::
     PropertyCallbackInfo<v8::Boolean>& info) { | 750 void V8TestInterface5::indexedPropertyDeleterCallback(uint32_t index, const v8::
     PropertyCallbackInfo<v8::Boolean>& info) { | 
| 751   TestInterface5ImplementationV8Internal::indexedPropertyDeleter(index, info); | 751   TestInterface5ImplementationV8Internal::indexedPropertyDeleter(index, info); | 
| 752 } | 752 } | 
| 753 | 753 | 
| 754 // Suppress warning: global constructors, because AttributeConfiguration is triv
     ial | 754 // Suppress warning: global constructors, because AttributeConfiguration is triv
     ial | 
| 755 // and does not depend on another global objects. | 755 // and does not depend on another global objects. | 
| 756 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 756 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 
| 757 #pragma clang diagnostic push | 757 #pragma clang diagnostic push | 
| 758 #pragma clang diagnostic ignored "-Wglobal-constructors" | 758 #pragma clang diagnostic ignored "-Wglobal-constructors" | 
| 759 #endif | 759 #endif | 
| 760 const V8DOMConfiguration::AttributeConfiguration V8TestInterface5LazyDataAttribu
     tes[] = { | 760 static const V8DOMConfiguration::AttributeConfiguration V8TestInterface5LazyData
     Attributes[] = { | 
| 761     {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, nullptr,
      nullptr, nullptr, nullptr, const_cast<WrapperTypeInfo*>(&V8TestInterface5::wrap
     perTypeInfo), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfigurati
     on::OnInstance, V8DOMConfiguration::CheckHolder}, | 761     {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, nullptr,
      nullptr, const_cast<WrapperTypeInfo*>(&V8TestInterface5::wrapperTypeInfo), stat
     ic_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::OnInstance, V8
     DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds}, | 
| 762 }; | 762 }; | 
| 763 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 763 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 
| 764 #pragma clang diagnostic pop | 764 #pragma clang diagnostic pop | 
| 765 #endif | 765 #endif | 
| 766 | 766 | 
| 767 const V8DOMConfiguration::AccessorConfiguration V8TestInterface5Accessors[] = { | 767 static const V8DOMConfiguration::AccessorConfiguration V8TestInterface5Accessors
     [] = { | 
| 768     {"testInterfaceAttribute", V8TestInterface5::testInterfaceAttributeAttribute
     GetterCallback, V8TestInterface5::testInterfaceAttributeAttributeSetterCallback,
      nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None
     ), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 768     {"testInterfaceAttribute", V8TestInterface5::testInterfaceAttributeAttribute
     GetterCallback, V8TestInterface5::testInterfaceAttributeAttributeSetterCallback,
      nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
     ion::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds
     }, | 
| 769     {"doubleAttribute", V8TestInterface5::doubleAttributeAttributeGetterCallback
     , V8TestInterface5::doubleAttributeAttributeSetterCallback, nullptr, nullptr, nu
     llptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
     ::OnPrototype, V8DOMConfiguration::CheckHolder}, | 769     {"doubleAttribute", V8TestInterface5::doubleAttributeAttributeGetterCallback
     , V8TestInterface5::doubleAttributeAttributeSetterCallback, nullptr, nullptr, st
     atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8D
     OMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds}, | 
| 770     {"floatAttribute", V8TestInterface5::floatAttributeAttributeGetterCallback, 
     V8TestInterface5::floatAttributeAttributeSetterCallback, nullptr, nullptr, nullp
     tr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::O
     nPrototype, V8DOMConfiguration::CheckHolder}, | 770     {"floatAttribute", V8TestInterface5::floatAttributeAttributeGetterCallback, 
     V8TestInterface5::floatAttributeAttributeSetterCallback, nullptr, nullptr, stati
     c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMC
     onfiguration::CheckHolder, V8DOMConfiguration::AllWorlds}, | 
| 771     {"unrestrictedDoubleAttribute", V8TestInterface5::unrestrictedDoubleAttribut
     eAttributeGetterCallback, V8TestInterface5::unrestrictedDoubleAttributeAttribute
     SetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttr
     ibute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHold
     er}, | 771     {"unrestrictedDoubleAttribute", V8TestInterface5::unrestrictedDoubleAttribut
     eAttributeGetterCallback, V8TestInterface5::unrestrictedDoubleAttributeAttribute
     SetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), 
     V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigura
     tion::AllWorlds}, | 
| 772     {"unrestrictedFloatAttribute", V8TestInterface5::unrestrictedFloatAttributeA
     ttributeGetterCallback, V8TestInterface5::unrestrictedFloatAttributeAttributeSet
     terCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribu
     te>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}
     , | 772     {"unrestrictedFloatAttribute", V8TestInterface5::unrestrictedFloatAttributeA
     ttributeGetterCallback, V8TestInterface5::unrestrictedFloatAttributeAttributeSet
     terCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8D
     OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguratio
     n::AllWorlds}, | 
| 773     {"staticStringAttribute", V8TestInterface5::staticStringAttributeAttributeGe
     tterCallback, V8TestInterface5::staticStringAttributeAttributeSetterCallback, nu
     llptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), 
     V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, | 773     {"staticStringAttribute", V8TestInterface5::staticStringAttributeAttributeGe
     tterCallback, V8TestInterface5::staticStringAttributeAttributeSetterCallback, nu
     llptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
     ::OnInterface, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds}, | 
| 774     {"length", V8TestInterface5::lengthAttributeGetterCallback, nullptr, nullptr
     , nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V
     8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 774     {"length", V8TestInterface5::lengthAttributeGetterCallback, nullptr, nullptr
     , nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration:
     :OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds}, | 
| 775     {"alwaysExposedAttribute", V8TestInterface5::alwaysExposedAttributeAttribute
     GetterCallback, V8TestInterface5::alwaysExposedAttributeAttributeSetterCallback,
      nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None
     ), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 775     {"alwaysExposedAttribute", V8TestInterface5::alwaysExposedAttributeAttribute
     GetterCallback, V8TestInterface5::alwaysExposedAttributeAttributeSetterCallback,
      nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
     ion::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds
     }, | 
| 776 }; | 776 }; | 
| 777 | 777 | 
| 778 const V8DOMConfiguration::MethodConfiguration V8TestInterface5Methods[] = { | 778 static const V8DOMConfiguration::MethodConfiguration V8TestInterface5Methods[] =
      { | 
| 779     {"voidMethodTestInterfaceEmptyArg", V8TestInterface5::voidMethodTestInterfac
     eEmptyArgMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConf
     iguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration
     ::AllWorlds}, | 779     {"voidMethodTestInterfaceEmptyArg", V8TestInterface5::voidMethodTestInterfac
     eEmptyArgMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConf
     iguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration
     ::AllWorlds}, | 
| 780     {"voidMethodDoubleArgFloatArg", V8TestInterface5::voidMethodDoubleArgFloatAr
     gMethodCallback, 2, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio
     n::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWor
     lds}, | 780     {"voidMethodDoubleArgFloatArg", V8TestInterface5::voidMethodDoubleArgFloatAr
     gMethodCallback, 2, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio
     n::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWor
     lds}, | 
| 781     {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", V8TestInterface5::vo
     idMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback, 2, v8::None, V8
     DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigurati
     on::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 781     {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", V8TestInterface5::vo
     idMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback, 2, v8::None, V8
     DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigurati
     on::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 
| 782     {"voidMethod", V8TestInterface5::voidMethodMethodCallbackForMainWorld, 0, v8
     ::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMC
     onfiguration::DoNotCheckAccess, V8DOMConfiguration::MainWorld}, | 782     {"voidMethod", V8TestInterface5::voidMethodMethodCallbackForMainWorld, 0, v8
     ::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMC
     onfiguration::DoNotCheckAccess, V8DOMConfiguration::MainWorld}, | 
| 783     {"voidMethod", V8TestInterface5::voidMethodMethodCallback, 0, v8::None, V8DO
     MConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration
     ::DoNotCheckAccess, V8DOMConfiguration::NonMainWorlds}, | 783     {"voidMethod", V8TestInterface5::voidMethodMethodCallback, 0, v8::None, V8DO
     MConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration
     ::DoNotCheckAccess, V8DOMConfiguration::NonMainWorlds}, | 
| 784     {"alwaysExposedMethod", V8TestInterface5::alwaysExposedMethodMethodCallback,
      0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, 
     V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 784     {"alwaysExposedMethod", V8TestInterface5::alwaysExposedMethodMethodCallback,
      0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, 
     V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 
| 785     {"alwaysExposedStaticMethod", V8TestInterface5::alwaysExposedStaticMethodMet
     hodCallback, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfiguration::C
     heckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}
     , | 785     {"alwaysExposedStaticMethod", V8TestInterface5::alwaysExposedStaticMethodMet
     hodCallback, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfiguration::C
     heckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}
     , | 
| 786     {"voidMethodBooleanOrDOMStringArg", V8TestInterface5::voidMethodBooleanOrDOM
     StringArgMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConf
     iguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration
     ::AllWorlds}, | 786     {"voidMethodBooleanOrDOMStringArg", V8TestInterface5::voidMethodBooleanOrDOM
     StringArgMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConf
     iguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration
     ::AllWorlds}, | 
| 787     {"voidMethodDoubleOrDOMStringArg", V8TestInterface5::voidMethodDoubleOrDOMSt
     ringArgMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfig
     uration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::
     AllWorlds}, | 787     {"voidMethodDoubleOrDOMStringArg", V8TestInterface5::voidMethodDoubleOrDOMSt
     ringArgMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfig
     uration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::
     AllWorlds}, | 
| 788     {"voidMethodVoidExperimentalCallbackFunction", V8TestInterface5::voidMethodV
     oidExperimentalCallbackFunctionMethodCallback, 1, v8::None, V8DOMConfiguration::
     OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAcce
     ss, V8DOMConfiguration::AllWorlds}, | 788     {"voidMethodVoidExperimentalCallbackFunction", V8TestInterface5::voidMethodV
     oidExperimentalCallbackFunctionMethodCallback, 1, v8::None, V8DOMConfiguration::
     OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAcce
     ss, V8DOMConfiguration::AllWorlds}, | 
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 854   return V8TestInterface5::toImplWithTypeCheck(isolate, value); | 854   return V8TestInterface5::toImplWithTypeCheck(isolate, value); | 
| 855 } | 855 } | 
| 856 | 856 | 
| 857 void V8TestInterface5::preparePrototypeAndInterfaceObject(v8::Local<v8::Context>
      context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v
     8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfac
     eTemplate) { | 857 void V8TestInterface5::preparePrototypeAndInterfaceObject(v8::Local<v8::Context>
      context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v
     8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfac
     eTemplate) { | 
| 858   v8::Isolate* isolate = context->GetIsolate(); | 858   v8::Isolate* isolate = context->GetIsolate(); | 
| 859   v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
     late); | 859   v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
     late); | 
| 860   ExecutionContext* executionContext = toExecutionContext(context); | 860   ExecutionContext* executionContext = toExecutionContext(context); | 
| 861   DCHECK(executionContext); | 861   DCHECK(executionContext); | 
| 862 | 862 | 
| 863   if (executionContext && (executionContext->isWorkerGlobalScope())) { | 863   if (executionContext && (executionContext->isWorkerGlobalScope())) { | 
| 864     const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wo
     rkerExposedAttribute", V8TestInterface5::workerExposedAttributeAttributeGetterCa
     llback, V8TestInterface5::workerExposedAttributeAttributeSetterCallback, nullptr
     , nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOM
     Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 864     static const V8DOMConfiguration::AccessorConfiguration accessorConfiguration
     [] = { | 
| 865     V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
      prototypeObject, interfaceObject, signature, accessorConfiguration); | 865       {"workerExposedAttribute", V8TestInterface5::workerExposedAttributeAttribu
     teGetterCallback, V8TestInterface5::workerExposedAttributeAttributeSetterCallbac
     k, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur
     ation::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorl
     ds} | 
|  | 866     }; | 
|  | 867     for (const auto& accessorConfig : accessorConfiguration) | 
|  | 868       V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(
     ), prototypeObject, interfaceObject, signature, accessorConfig); | 
| 866   } | 869   } | 
| 867   if (executionContext && (executionContext->isDocument())) { | 870   if (executionContext && (executionContext->isDocument())) { | 
| 868     const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wi
     ndowExposedAttribute", V8TestInterface5::windowExposedAttributeAttributeGetterCa
     llback, V8TestInterface5::windowExposedAttributeAttributeSetterCallback, nullptr
     , nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOM
     Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 871     static const V8DOMConfiguration::AccessorConfiguration accessorConfiguration
     [] = { | 
| 869     V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
      prototypeObject, interfaceObject, signature, accessorConfiguration); | 872       {"windowExposedAttribute", V8TestInterface5::windowExposedAttributeAttribu
     teGetterCallback, V8TestInterface5::windowExposedAttributeAttributeSetterCallbac
     k, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur
     ation::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorl
     ds} | 
|  | 873     }; | 
|  | 874     for (const auto& accessorConfig : accessorConfiguration) | 
|  | 875       V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(
     ), prototypeObject, interfaceObject, signature, accessorConfig); | 
| 870   } | 876   } | 
| 871   if (executionContext && (executionContext->isWorkerGlobalScope())) { | 877   if (executionContext && (executionContext->isWorkerGlobalScope())) { | 
| 872     const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodConfi
     guration[] = { | 878     const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodConfi
     guration[] = { | 
| 873       {"workerExposedMethod", V8TestInterface5::workerExposedMethodMethodCallbac
     k, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder
     , V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds} | 879       {"workerExposedMethod", V8TestInterface5::workerExposedMethodMethodCallbac
     k, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder
     , V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds} | 
| 874     }; | 880     }; | 
| 875     for (const auto& methodConfig : workerExposedMethodMethodConfiguration) | 881     for (const auto& methodConfig : workerExposedMethodMethodConfiguration) | 
| 876       V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
      prototypeObject, interfaceObject, signature, methodConfig); | 882       V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
      prototypeObject, interfaceObject, signature, methodConfig); | 
| 877   } | 883   } | 
| 878   if (executionContext && (executionContext->isDocument())) { | 884   if (executionContext && (executionContext->isDocument())) { | 
| 879     const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodConfi
     guration[] = { | 885     const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodConfi
     guration[] = { | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 899   if (executionContext && (executionContext->isDocument() || executionContext->i
     sServiceWorkerGlobalScope())) { | 905   if (executionContext && (executionContext->isDocument() || executionContext->i
     sServiceWorkerGlobalScope())) { | 
| 900     const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM
     ethodMethodConfiguration[] = { | 906     const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM
     ethodMethodConfiguration[] = { | 
| 901       {"windowAndServiceWorkerExposedMethod", V8TestInterface5::windowAndService
     WorkerExposedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::OnPrototype,
      V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMCon
     figuration::AllWorlds} | 907       {"windowAndServiceWorkerExposedMethod", V8TestInterface5::windowAndService
     WorkerExposedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::OnPrototype,
      V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMCon
     figuration::AllWorlds} | 
| 902     }; | 908     }; | 
| 903     for (const auto& methodConfig : windowAndServiceWorkerExposedMethodMethodCon
     figuration) | 909     for (const auto& methodConfig : windowAndServiceWorkerExposedMethodMethodCon
     figuration) | 
| 904       V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
      prototypeObject, interfaceObject, signature, methodConfig); | 910       V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
      prototypeObject, interfaceObject, signature, methodConfig); | 
| 905   } | 911   } | 
| 906 } | 912 } | 
| 907 | 913 | 
| 908 }  // namespace blink | 914 }  // namespace blink | 
| OLD | NEW | 
|---|