Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(534)

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp

Issue 2335203006: Add [CachedAccessor] attribute to cache (almost) constant accessors (window.document). (Closed)
Patch Set: Polishing + naming revisited Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/GeneratedCodeHelper.h" 10 #include "bindings/core/v8/GeneratedCodeHelper.h"
11 #include "bindings/core/v8/ScriptState.h" 11 #include "bindings/core/v8/ScriptState.h"
12 #include "bindings/core/v8/ScriptValue.h" 12 #include "bindings/core/v8/ScriptValue.h"
13 #include "bindings/core/v8/V8DOMConfiguration.h" 13 #include "bindings/core/v8/V8DOMConfiguration.h"
14 #include "bindings/core/v8/V8Iterator.h" 14 #include "bindings/core/v8/V8Iterator.h"
15 #include "bindings/core/v8/V8ObjectConstructor.h" 15 #include "bindings/core/v8/V8ObjectConstructor.h"
16 #include "bindings/core/v8/V8PrivateProperty.h"
16 #include "bindings/core/v8/V8TestInterfaceEmpty.h" 17 #include "bindings/core/v8/V8TestInterfaceEmpty.h"
17 #include "bindings/modules/v8/BooleanOrString.h" 18 #include "bindings/modules/v8/BooleanOrString.h"
18 #include "bindings/modules/v8/DoubleOrString.h" 19 #include "bindings/modules/v8/DoubleOrString.h"
19 #include "bindings/modules/v8/V8TestInterface5.h" 20 #include "bindings/modules/v8/V8TestInterface5.h"
20 #include "core/dom/Document.h" 21 #include "core/dom/Document.h"
21 #include "platform/RuntimeEnabledFeatures.h" 22 #include "platform/RuntimeEnabledFeatures.h"
22 #include "wtf/GetPtr.h" 23 #include "wtf/GetPtr.h"
23 #include "wtf/RefPtr.h" 24 #include "wtf/RefPtr.h"
24 25
25 namespace blink { 26 namespace blink {
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 } 832 }
832 } 833 }
833 834
834 // Suppress warning: global constructors, because AttributeConfiguration is triv ial 835 // Suppress warning: global constructors, because AttributeConfiguration is triv ial
835 // and does not depend on another global objects. 836 // and does not depend on another global objects.
836 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 837 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
837 #pragma clang diagnostic push 838 #pragma clang diagnostic push
838 #pragma clang diagnostic ignored "-Wglobal-constructors" 839 #pragma clang diagnostic ignored "-Wglobal-constructors"
839 #endif 840 #endif
840 const V8DOMConfiguration::AttributeConfiguration V8TestInterface5Attributes[] = { 841 const V8DOMConfiguration::AttributeConfiguration V8TestInterface5Attributes[] = {
841 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, 0, 0, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface5::wrapperTypeInfo), static_cas t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEn um), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8 DOMConfiguration::CheckHolder}, 842 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, 0, 0, 0, 0, nullptr, const_cast<WrapperTypeInfo*>(&V8TestInterface5::wrapperTypeInfo), s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIns tance, V8DOMConfiguration::CheckHolder},
842 }; 843 };
843 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 844 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
844 #pragma clang diagnostic pop 845 #pragma clang diagnostic pop
845 #endif 846 #endif
846 847
847 const V8DOMConfiguration::AccessorConfiguration V8TestInterface5Accessors[] = { 848 const V8DOMConfiguration::AccessorConfiguration V8TestInterface5Accessors[] = {
848 {"testInterfaceAttribute", TestInterface5ImplementationV8Internal::testInter faceAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::te stInterfaceAttributeAttributeSetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cas t<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8D OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 849 {"testInterfaceAttribute", TestInterface5ImplementationV8Internal::testInter faceAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::te stInterfaceAttributeAttributeSetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
849 {"doubleAttribute", TestInterface5ImplementationV8Internal::doubleAttributeA ttributeGetterCallback, TestInterface5ImplementationV8Internal::doubleAttributeA ttributeSetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribu te>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr ototype, V8DOMConfiguration::CheckHolder}, 850 {"doubleAttribute", TestInterface5ImplementationV8Internal::doubleAttributeA ttributeGetterCallback, TestInterface5ImplementationV8Internal::doubleAttributeA ttributeSetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::Proper tyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurat ion::OnPrototype, V8DOMConfiguration::CheckHolder},
850 {"floatAttribute", TestInterface5ImplementationV8Internal::floatAttributeAtt ributeGetterCallback, TestInterface5ImplementationV8Internal::floatAttributeAttr ibuteSetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute> (v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProto type, V8DOMConfiguration::CheckHolder}, 851 {"floatAttribute", TestInterface5ImplementationV8Internal::floatAttributeAtt ributeGetterCallback, TestInterface5ImplementationV8Internal::floatAttributeAttr ibuteSetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration ::OnPrototype, V8DOMConfiguration::CheckHolder},
851 {"unrestrictedDoubleAttribute", TestInterface5ImplementationV8Internal::unre strictedDoubleAttributeAttributeGetterCallback, TestInterface5ImplementationV8In ternal::unrestrictedDoubleAttributeAttributeSetterCallback, 0, 0, 0, 0, v8::DEFA ULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedTo AllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 852 {"unrestrictedDoubleAttribute", TestInterface5ImplementationV8Internal::unre strictedDoubleAttributeAttributeGetterCallback, TestInterface5ImplementationV8In ternal::unrestrictedDoubleAttributeAttributeSetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration:: ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckH older},
852 {"unrestrictedFloatAttribute", TestInterface5ImplementationV8Internal::unres trictedFloatAttributeAttributeGetterCallback, TestInterface5ImplementationV8Inte rnal::unrestrictedFloatAttributeAttributeSetterCallback, 0, 0, 0, 0, v8::DEFAULT , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 853 {"unrestrictedFloatAttribute", TestInterface5ImplementationV8Internal::unres trictedFloatAttributeAttributeGetterCallback, TestInterface5ImplementationV8Inte rnal::unrestrictedFloatAttributeAttributeSetterCallback, 0, 0, 0, nullptr, 0, v8 ::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exp osedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHold er},
853 {"staticStringAttribute", TestInterface5ImplementationV8Internal::staticStri ngAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::stat icStringAttributeAttributeSetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, 854 {"staticStringAttribute", TestInterface5ImplementationV8Internal::staticStri ngAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::stat icStringAttributeAttributeSetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, stat ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript s, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder},
854 {"alwaysExposedAttribute", TestInterface5ImplementationV8Internal::alwaysExp osedAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::al waysExposedAttributeAttributeSetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cas t<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8D OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 855 {"alwaysExposedAttribute", TestInterface5ImplementationV8Internal::alwaysExp osedAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::al waysExposedAttributeAttributeSetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
855 }; 856 };
856 857
857 const V8DOMConfiguration::MethodConfiguration V8TestInterface5Methods[] = { 858 const V8DOMConfiguration::MethodConfiguration V8TestInterface5Methods[] = {
858 {"voidMethodTestInterfaceEmptyArg", TestInterface5ImplementationV8Internal:: voidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, v8::None, V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, 859 {"voidMethodTestInterfaceEmptyArg", TestInterface5ImplementationV8Internal:: voidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, v8::None, V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
859 {"voidMethodDoubleArgFloatArg", TestInterface5ImplementationV8Internal::void MethodDoubleArgFloatArgMethodCallback, 0, 2, v8::None, V8DOMConfiguration::Expos edToAllScripts, V8DOMConfiguration::OnPrototype}, 860 {"voidMethodDoubleArgFloatArg", TestInterface5ImplementationV8Internal::void MethodDoubleArgFloatArgMethodCallback, 0, 2, v8::None, V8DOMConfiguration::Expos edToAllScripts, V8DOMConfiguration::OnPrototype},
860 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterface5Implem entationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCal lback, 0, 2, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnPrototype}, 861 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterface5Implem entationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCal lback, 0, 2, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnPrototype},
861 {"voidMethod", TestInterface5ImplementationV8Internal::voidMethodMethodCallb ack, TestInterface5ImplementationV8Internal::voidMethodMethodCallbackForMainWorl d, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP rototype}, 862 {"voidMethod", TestInterface5ImplementationV8Internal::voidMethodMethodCallb ack, TestInterface5ImplementationV8Internal::voidMethodMethodCallbackForMainWorl d, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP rototype},
862 {"alwaysExposedMethod", TestInterface5ImplementationV8Internal::alwaysExpose dMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, 863 {"alwaysExposedMethod", TestInterface5ImplementationV8Internal::alwaysExpose dMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
863 {"alwaysExposedStaticMethod", TestInterface5ImplementationV8Internal::always ExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedTo AllScripts, V8DOMConfiguration::OnInterface}, 864 {"alwaysExposedStaticMethod", TestInterface5ImplementationV8Internal::always ExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedTo AllScripts, V8DOMConfiguration::OnInterface},
864 {"voidMethodBooleanOrDOMStringArg", TestInterface5ImplementationV8Internal:: voidMethodBooleanOrDOMStringArgMethodCallback, 0, 1, v8::None, V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, 865 {"voidMethodBooleanOrDOMStringArg", TestInterface5ImplementationV8Internal:: voidMethodBooleanOrDOMStringArgMethodCallback, 0, 1, v8::None, V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 { 926 {
926 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : nullptr; 927 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : nullptr;
927 } 928 }
928 929
929 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) 930 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)
930 { 931 {
931 v8::Isolate* isolate = context->GetIsolate(); 932 v8::Isolate* isolate = context->GetIsolate();
932 ExecutionContext* executionContext = toExecutionContext(context); 933 ExecutionContext* executionContext = toExecutionContext(context);
933 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe mplate); 934 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe mplate);
934 if (executionContext && (executionContext->isWorkerGlobalScope())) { 935 if (executionContext && (executionContext->isWorkerGlobalScope())) {
935 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"workerExposedAttribute", TestInterface5ImplementationV8Internal::workerExposed AttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::worker ExposedAttributeAttributeSetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 936 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"workerExposedAttribute", TestInterface5ImplementationV8Internal::workerExposed AttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::worker ExposedAttributeAttributeSetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
936 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfiguration); 937 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfiguration);
937 } 938 }
938 if (executionContext && (executionContext->isDocument())) { 939 if (executionContext && (executionContext->isDocument())) {
939 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"windowExposedAttribute", TestInterface5ImplementationV8Internal::windowExposed AttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::window ExposedAttributeAttributeSetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 940 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"windowExposedAttribute", TestInterface5ImplementationV8Internal::windowExposed AttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::window ExposedAttributeAttributeSetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
940 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfiguration); 941 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfiguration);
941 } 942 }
942 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe mplate); 943 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe mplate);
943 ExecutionContext* executionContext = toExecutionContext(prototypeObject->Cre ationContext()); 944 ExecutionContext* executionContext = toExecutionContext(prototypeObject->Cre ationContext());
944 ASSERT(executionContext); 945 ASSERT(executionContext);
945 if (executionContext && (executionContext->isWorkerGlobalScope())) { 946 if (executionContext && (executionContext->isWorkerGlobalScope())) {
946 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodC onfiguration = {"workerExposedMethod", TestInterface5ImplementationV8Internal::w orkerExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnPrototype}; 947 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodC onfiguration = {"workerExposedMethod", TestInterface5ImplementationV8Internal::w orkerExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnPrototype};
947 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, workerExposedMethodMethodConfigu ration); 948 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, workerExposedMethodMethodConfigu ration);
948 } 949 }
949 if (executionContext && (executionContext->isDocument())) { 950 if (executionContext && (executionContext->isDocument())) {
950 const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodC onfiguration = {"windowExposedMethod", TestInterface5ImplementationV8Internal::w indowExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnPrototype}; 951 const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodC onfiguration = {"windowExposedMethod", TestInterface5ImplementationV8Internal::w indowExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnPrototype};
951 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowExposedMethodMethodConfigu ration); 952 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowExposedMethodMethodConfigu ration);
952 } 953 }
953 if (executionContext && (executionContext->isWorkerGlobalScope())) { 954 if (executionContext && (executionContext->isWorkerGlobalScope())) {
954 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM ethodConfiguration = {"workerExposedStaticMethod", TestInterface5ImplementationV 8Internal::workerExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; 955 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM ethodConfiguration = {"workerExposedStaticMethod", TestInterface5ImplementationV 8Internal::workerExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnInterface};
955 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, workerExposedStaticMethodMethodC onfiguration); 956 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, workerExposedStaticMethodMethodC onfiguration);
956 } 957 }
957 if (executionContext && (executionContext->isDocument())) { 958 if (executionContext && (executionContext->isDocument())) {
958 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM ethodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV 8Internal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; 959 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM ethodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV 8Internal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnInterface};
959 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodC onfiguration); 960 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodC onfiguration);
960 } 961 }
961 if (executionContext && (executionContext->isDocument() || executionContext- >isServiceWorkerGlobalScope())) { 962 if (executionContext && (executionContext->isDocument() || executionContext- >isServiceWorkerGlobalScope())) {
962 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpo sedMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInter face5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback , 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O nPrototype}; 963 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpo sedMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInter face5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback , 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O nPrototype};
963 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet hodMethodConfiguration); 964 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet hodMethodConfiguration);
964 } 965 }
965 } 966 }
966 967
967 } // namespace blink 968 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698