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 // clang-format off | 8 // clang-format off |
9 #include "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
10 | 10 |
(...skipping 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1916 return; | 1916 return; |
1917 | 1917 |
1918 impl->voidMethodPartialOverload(doubleArg); | 1918 impl->voidMethodPartialOverload(doubleArg); |
1919 } | 1919 } |
1920 | 1920 |
1921 static void staticVoidMethodPartialOverload1Method(const v8::FunctionCallbackInf
o<v8::Value>& info) { | 1921 static void staticVoidMethodPartialOverload1Method(const v8::FunctionCallbackInf
o<v8::Value>& info) { |
1922 TestInterfaceImplementation::staticVoidMethodPartialOverload(); | 1922 TestInterfaceImplementation::staticVoidMethodPartialOverload(); |
1923 } | 1923 } |
1924 | 1924 |
1925 static void promiseMethodPartialOverload1Method(const v8::FunctionCallbackInfo<v
8::Value>& info) { | 1925 static void promiseMethodPartialOverload1Method(const v8::FunctionCallbackInfo<v
8::Value>& info) { |
| 1926 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestInterface", "promiseMethodPartialOverload"); |
| 1927 ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState); |
| 1928 |
| 1929 // V8DOMConfiguration::DoNotCheckHolder |
| 1930 // Make sure that info.Holder() really points to an instance of the type. |
| 1931 if (!V8TestInterface::hasInstance(info.Holder(), info.GetIsolate())) { |
| 1932 exceptionState.throwTypeError("Illegal invocation"); |
| 1933 return; |
| 1934 } |
1926 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1935 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
1927 | 1936 |
1928 v8SetReturnValue(info, impl->promiseMethodPartialOverload().v8Value()); | 1937 v8SetReturnValue(info, impl->promiseMethodPartialOverload().v8Value()); |
1929 } | 1938 } |
1930 | 1939 |
1931 static void promiseMethodPartialOverload2Method(const v8::FunctionCallbackInfo<v
8::Value>& info) { | 1940 static void promiseMethodPartialOverload2Method(const v8::FunctionCallbackInfo<v
8::Value>& info) { |
1932 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestInterface", "promiseMethodPartialOverload"); | 1941 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont
ext, "TestInterface", "promiseMethodPartialOverload"); |
1933 ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState); | 1942 ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState); |
1934 | 1943 |
| 1944 // V8DOMConfiguration::DoNotCheckHolder |
| 1945 // Make sure that info.Holder() really points to an instance of the type. |
| 1946 if (!V8TestInterface::hasInstance(info.Holder(), info.GetIsolate())) { |
| 1947 exceptionState.throwTypeError("Illegal invocation"); |
| 1948 return; |
| 1949 } |
1935 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1950 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
1936 | 1951 |
1937 DOMWindow* window; | 1952 DOMWindow* window; |
1938 window = toDOMWindow(info.GetIsolate(), info[0]); | 1953 window = toDOMWindow(info.GetIsolate(), info[0]); |
1939 if (!window) { | 1954 if (!window) { |
1940 exceptionState.throwTypeError("parameter 1 is not of type 'Window'."); | 1955 exceptionState.throwTypeError("parameter 1 is not of type 'Window'."); |
1941 | 1956 |
1942 return; | 1957 return; |
1943 } | 1958 } |
1944 | 1959 |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2656 {"implementsStringAttribute", TestInterfaceImplementationV8Internal::impleme
ntsStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal
::implementsStringAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAUL
T, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2671 {"implementsStringAttribute", TestInterfaceImplementationV8Internal::impleme
ntsStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal
::implementsStringAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAUL
T, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2657 {"implementsNodeAttribute", TestInterfaceImplementationV8Internal::implement
sNodeAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im
plementsNodeAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2672 {"implementsNodeAttribute", TestInterfaceImplementationV8Internal::implement
sNodeAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im
plementsNodeAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2658 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i
mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, null
ptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur
ation::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration:
:CheckHolder}, | 2673 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i
mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, null
ptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur
ation::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration:
:CheckHolder}, |
2659 {"implements3StringAttribute", TestInterfaceImplementationV8Internal::implem
ents3StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::implements3StringAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEF
AULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedT
oAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2674 {"implements3StringAttribute", TestInterfaceImplementationV8Internal::implem
ents3StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::implements3StringAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEF
AULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedT
oAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2660 {"implements3StaticStringAttribute", TestInterfaceImplementationV8Internal::
implements3StaticStringAttributeAttributeGetterCallback, TestInterfaceImplementa
tionV8Internal::implements3StaticStringAttributeAttributeSetterCallback, 0, 0, n
ullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi
guration::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfigurati
on::CheckHolder}, | 2675 {"implements3StaticStringAttribute", TestInterfaceImplementationV8Internal::
implements3StaticStringAttributeAttributeGetterCallback, TestInterfaceImplementa
tionV8Internal::implements3StaticStringAttributeAttributeSetterCallback, 0, 0, n
ullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi
guration::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfigurati
on::CheckHolder}, |
2661 {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partial2Lon
gAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partia
l2LongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_ca
st<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8
DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2676 {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partial2Lon
gAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partia
l2LongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_ca
st<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8
DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2662 {"partial2StaticLongAttribute", TestInterfaceImplementationV8Internal::parti
al2StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte
rnal::partial2StaticLongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::
DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder
}, | 2677 {"partial2StaticLongAttribute", TestInterfaceImplementationV8Internal::parti
al2StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte
rnal::partial2StaticLongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::
DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder
}, |
2663 }; | 2678 }; |
2664 | 2679 |
2665 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { | 2680 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { |
2666 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, | 2681 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec
kHolder}, |
2667 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM
ethodDoubleArgFloatArgMethodCallback, 0, 2, v8::None, V8DOMConfiguration::Expose
dToAllScripts, V8DOMConfiguration::OnPrototype}, | 2682 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM
ethodDoubleArgFloatArgMethodCallback, 0, 2, v8::None, V8DOMConfiguration::Expose
dToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}
, |
2668 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme
ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall
back, 0, 2, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguratio
n::OnPrototype}, | 2683 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme
ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall
back, 0, 2, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguratio
n::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2669 {"voidMethodTestEnumArg", TestInterfaceImplementationV8Internal::voidMethodT
estEnumArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScript
s, V8DOMConfiguration::OnPrototype}, | 2684 {"voidMethodTestEnumArg", TestInterfaceImplementationV8Internal::voidMethodT
estEnumArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScript
s, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2670 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPro
totype}, | 2685 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPro
totype, V8DOMConfiguration::CheckHolder}, |
2671 {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed
MethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnPrototype}, | 2686 {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed
MethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2672 {"alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwaysE
xposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnInterface}, | 2687 {"alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwaysE
xposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, |
2673 {"staticReturnDOMWrapperMethod", TestInterfaceImplementationV8Internal::stat
icReturnDOMWrapperMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expo
sedToAllScripts, V8DOMConfiguration::OnInterface}, | 2688 {"staticReturnDOMWrapperMethod", TestInterfaceImplementationV8Internal::stat
icReturnDOMWrapperMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expo
sedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolde
r}, |
2674 {"legacyInterfaceTypeCheckingMethod", TestInterfaceImplementationV8Internal:
:legacyInterfaceTypeCheckingMethodMethodCallback, 0, 1, v8::None, V8DOMConfigura
tion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, | 2689 {"legacyInterfaceTypeCheckingMethod", TestInterfaceImplementationV8Internal:
:legacyInterfaceTypeCheckingMethodMethodCallback, 0, 1, v8::None, V8DOMConfigura
tion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::
CheckHolder}, |
2675 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo
idMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnPrototype}, | 2690 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo
idMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2676 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement
sComplexMethodMethodCallback, 0, 2, v8::None, V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype}, | 2691 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement
sComplexMethodMethodCallback, 0, 2, v8::None, V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2677 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem
entsCustomVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedT
oAllScripts, V8DOMConfiguration::OnPrototype}, | 2692 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem
entsCustomVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedT
oAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2678 {"implementsStaticVoidMethod", TestInterfaceImplementationV8Internal::implem
entsStaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedT
oAllScripts, V8DOMConfiguration::OnInterface}, | 2693 {"implementsStaticVoidMethod", TestInterfaceImplementationV8Internal::implem
entsStaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedT
oAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, |
2679 {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3
VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScript
s, V8DOMConfiguration::OnPrototype}, | 2694 {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3
VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScript
s, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2680 {"implements3StaticVoidMethod", TestInterfaceImplementationV8Internal::imple
ments3StaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expose
dToAllScripts, V8DOMConfiguration::OnInterface}, | 2695 {"implements3StaticVoidMethod", TestInterfaceImplementationV8Internal::imple
ments3StaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expose
dToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}
, |
2681 {"voidMethodPartialOverload", TestInterfaceImplementationV8Internal::voidMet
hodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnPrototype}, | 2696 {"voidMethodPartialOverload", TestInterfaceImplementationV8Internal::voidMet
hodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2682 {"staticVoidMethodPartialOverload", TestInterfaceImplementationV8Internal::s
taticVoidMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnInterface}, | 2697 {"staticVoidMethodPartialOverload", TestInterfaceImplementationV8Internal::s
taticVoidMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Chec
kHolder}, |
2683 {"promiseMethodPartialOverload", TestInterfaceImplementationV8Internal::prom
iseMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expo
sedToAllScripts, V8DOMConfiguration::OnPrototype}, | 2698 {"promiseMethodPartialOverload", TestInterfaceImplementationV8Internal::prom
iseMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expo
sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::DoNotCheck
Holder}, |
2684 {"staticPromiseMethodPartialOverload", TestInterfaceImplementationV8Internal
::staticPromiseMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnInterface}, | 2699 {"staticPromiseMethodPartialOverload", TestInterfaceImplementationV8Internal
::staticPromiseMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration
::DoNotCheckHolder}, |
2685 {"partial2VoidMethod", TestInterfaceImplementationV8Internal::partial2VoidMe
thodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8D
OMConfiguration::OnPrototype}, | 2700 {"partial2VoidMethod", TestInterfaceImplementationV8Internal::partial2VoidMe
thodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8D
OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2686 {"partial2StaticVoidMethod", TestInterfaceImplementationV8Internal::partial2
StaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnInterface}, | 2701 {"partial2StaticVoidMethod", TestInterfaceImplementationV8Internal::partial2
StaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, |
2687 {"toJSON", TestInterfaceImplementationV8Internal::toJSONMethodCallback, 0, 0
, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedT
oAllScripts, V8DOMConfiguration::OnPrototype}, | 2702 {"toJSON", TestInterfaceImplementationV8Internal::toJSONMethodCallback, 0, 0
, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedT
oAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2688 {"toString", TestInterfaceImplementationV8Internal::toStringMethodCallback,
0, 0, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::Expo
sedToAllScripts, V8DOMConfiguration::OnPrototype}, | 2703 {"toString", TestInterfaceImplementationV8Internal::toStringMethodCallback,
0, 0, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::Expo
sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde
r}, |
2689 }; | 2704 }; |
2690 | 2705 |
2691 void V8TestInterface::installV8TestInterfaceTemplate(v8::Isolate* isolate, const
DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { | 2706 void V8TestInterface::installV8TestInterfaceTemplate(v8::Isolate* isolate, const
DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { |
2692 // Initialize the interface object's template. | 2707 // Initialize the interface object's template. |
2693 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterface::wrapperTypeInfo.interfaceName, V8TestInterfaceEmpty::domTempla
te(isolate, world), V8TestInterface::internalFieldCount); | 2708 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterface::wrapperTypeInfo.interfaceName, V8TestInterfaceEmpty::domTempla
te(isolate, world), V8TestInterface::internalFieldCount); |
2694 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 2709 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
2695 ALLOW_UNUSED_LOCAL(signature); | 2710 ALLOW_UNUSED_LOCAL(signature); |
2696 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 2711 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
2697 ALLOW_UNUSED_LOCAL(instanceTemplate); | 2712 ALLOW_UNUSED_LOCAL(instanceTemplate); |
2698 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); | 2713 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2759 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(TestInterface
ImplementationV8Internal::namedPropertyGetterCallback, TestInterfaceImplementati
onV8Internal::namedPropertySetterCallback, TestInterfaceImplementationV8Internal
::namedPropertyQueryCallback, TestInterfaceImplementationV8Internal::namedProper
tyDeleterCallback, TestInterfaceImplementationV8Internal::namedPropertyEnumerato
rCallback, v8::Local<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(int(v8:
:PropertyHandlerFlags::kOnlyInterceptStrings) | int(v8::PropertyHandlerFlags::kA
llCanRead) | int(v8::PropertyHandlerFlags::kNonMasking))); | 2774 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(TestInterface
ImplementationV8Internal::namedPropertyGetterCallback, TestInterfaceImplementati
onV8Internal::namedPropertySetterCallback, TestInterfaceImplementationV8Internal
::namedPropertyQueryCallback, TestInterfaceImplementationV8Internal::namedProper
tyDeleterCallback, TestInterfaceImplementationV8Internal::namedPropertyEnumerato
rCallback, v8::Local<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(int(v8:
:PropertyHandlerFlags::kOnlyInterceptStrings) | int(v8::PropertyHandlerFlags::kA
llCanRead) | int(v8::PropertyHandlerFlags::kNonMasking))); |
2760 instanceTemplate->SetHandler(namedPropertyHandlerConfig); | 2775 instanceTemplate->SetHandler(namedPropertyHandlerConfig); |
2761 | 2776 |
2762 // Iterator (@@iterator) | 2777 // Iterator (@@iterator) |
2763 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorCo
nfiguration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8Internal::
iteratorMethodCallback, 0, v8::DontEnum, V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnPrototype }; | 2778 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorCo
nfiguration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8Internal::
iteratorMethodCallback, 0, v8::DontEnum, V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnPrototype }; |
2764 V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signature
, symbolKeyedIteratorConfiguration); | 2779 V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signature
, symbolKeyedIteratorConfiguration); |
2765 | 2780 |
2766 instanceTemplate->SetCallAsFunctionHandler(V8TestInterface::legacyCallCustom); | 2781 instanceTemplate->SetCallAsFunctionHandler(V8TestInterface::legacyCallCustom); |
2767 | 2782 |
2768 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { | 2783 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { |
2769 const V8DOMConfiguration::MethodConfiguration implements2VoidMethodMethodC
onfiguration = {"implements2VoidMethod", TestInterfaceImplementationV8Internal::
implements2VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Exposed
ToAllScripts, V8DOMConfiguration::OnPrototype}; | 2784 const V8DOMConfiguration::MethodConfiguration implements2VoidMethodMethodC
onfiguration = {"implements2VoidMethod", TestInterfaceImplementationV8Internal::
implements2VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Exposed
ToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2770 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, implements2VoidMethodMethodConfigurat
ion); | 2785 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, implements2VoidMethodMethodConfigurat
ion); |
2771 } | 2786 } |
2772 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2787 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
2773 const V8DOMConfiguration::MethodConfiguration partialVoidMethodMethodConfi
guration = {"partialVoidMethod", TestInterfaceImplementationV8Internal::partialV
oidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnPrototype}; | 2788 const V8DOMConfiguration::MethodConfiguration partialVoidMethodMethodConfi
guration = {"partialVoidMethod", TestInterfaceImplementationV8Internal::partialV
oidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2774 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, partialVoidMethodMethodConfiguration)
; | 2789 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, partialVoidMethodMethodConfiguration)
; |
2775 } | 2790 } |
2776 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2791 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
2777 const V8DOMConfiguration::MethodConfiguration partialStaticVoidMethodMetho
dConfiguration = {"partialStaticVoidMethod", TestInterfaceImplementationV8Intern
al::partialStaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::E
xposedToAllScripts, V8DOMConfiguration::OnInterface}; | 2792 const V8DOMConfiguration::MethodConfiguration partialStaticVoidMethodMetho
dConfiguration = {"partialStaticVoidMethod", TestInterfaceImplementationV8Intern
al::partialStaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::E
xposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHo
lder}; |
2778 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, partialStaticVoidMethodMethodConfigur
ation); | 2793 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, partialStaticVoidMethodMethodConfigur
ation); |
2779 } | 2794 } |
2780 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2795 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
2781 const V8DOMConfiguration::MethodConfiguration partialVoidMethodLongArgMeth
odConfiguration = {"partialVoidMethodLongArg", TestInterfaceImplementationV8Inte
rnal::partialVoidMethodLongArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}; | 2796 const V8DOMConfiguration::MethodConfiguration partialVoidMethodLongArgMeth
odConfiguration = {"partialVoidMethodLongArg", TestInterfaceImplementationV8Inte
rnal::partialVoidMethodLongArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec
kHolder}; |
2782 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, partialVoidMethodLongArgMethodConfigu
ration); | 2797 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, partialVoidMethodLongArgMethodConfigu
ration); |
2783 } | 2798 } |
2784 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2799 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
2785 const V8DOMConfiguration::MethodConfiguration partialCallWithExecutionCont
extRaisesExceptionVoidMethodMethodConfiguration = {"partialCallWithExecutionCont
extRaisesExceptionVoidMethod", TestInterfaceImplementationV8Internal::partialCal
lWithExecutionContextRaisesExceptionVoidMethodMethodCallback, 0, 0, v8::None, V8
DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}; | 2800 const V8DOMConfiguration::MethodConfiguration partialCallWithExecutionCont
extRaisesExceptionVoidMethodMethodConfiguration = {"partialCallWithExecutionCont
extRaisesExceptionVoidMethod", TestInterfaceImplementationV8Internal::partialCal
lWithExecutionContextRaisesExceptionVoidMethodMethodCallback, 0, 0, v8::None, V8
DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMCon
figuration::CheckHolder}; |
2786 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, partialCallWithExecutionContextRaises
ExceptionVoidMethodMethodConfiguration); | 2801 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, partialCallWithExecutionContextRaises
ExceptionVoidMethodMethodConfiguration); |
2787 } | 2802 } |
2788 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2803 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
2789 const V8DOMConfiguration::MethodConfiguration partialVoidMethodPartialCall
backTypeArgMethodConfiguration = {"partialVoidMethodPartialCallbackTypeArg", Tes
tInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeArgMetho
dCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu
ration::OnPrototype}; | 2804 const V8DOMConfiguration::MethodConfiguration partialVoidMethodPartialCall
backTypeArgMethodConfiguration = {"partialVoidMethodPartialCallbackTypeArg", Tes
tInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeArgMetho
dCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu
ration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2790 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, partialVoidMethodPartialCallbackTypeA
rgMethodConfiguration); | 2805 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, partialVoidMethodPartialCallbackTypeA
rgMethodConfiguration); |
2791 } | 2806 } |
2792 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2807 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
2793 const V8DOMConfiguration::MethodConfiguration shortMethodWithShortArgument
ImplementedInPrivateScriptMethodConfiguration = {"shortMethodWithShortArgumentIm
plementedInPrivateScript", TestInterfaceImplementationV8Internal::shortMethodWit
hShortArgumentImplementedInPrivateScriptMethodCallback, 0, 1, v8::None, V8DOMCon
figuration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}; | 2808 const V8DOMConfiguration::MethodConfiguration shortMethodWithShortArgument
ImplementedInPrivateScriptMethodConfiguration = {"shortMethodWithShortArgumentIm
plementedInPrivateScript", TestInterfaceImplementationV8Internal::shortMethodWit
hShortArgumentImplementedInPrivateScriptMethodCallback, 0, 1, v8::None, V8DOMCon
figuration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigura
tion::CheckHolder}; |
2794 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, shortMethodWithShortArgumentImplement
edInPrivateScriptMethodConfiguration); | 2809 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, shortMethodWithShortArgumentImplement
edInPrivateScriptMethodConfiguration); |
2795 } | 2810 } |
2796 } | 2811 } |
2797 | 2812 |
2798 v8::Local<v8::FunctionTemplate> V8TestInterface::domTemplate(v8::Isolate* isolat
e, const DOMWrapperWorld& world) { | 2813 v8::Local<v8::FunctionTemplate> V8TestInterface::domTemplate(v8::Isolate* isolat
e, const DOMWrapperWorld& world) { |
2799 return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<Wrapper
TypeInfo*>(&wrapperTypeInfo), V8TestInterface::installV8TestInterfaceTemplateFun
ction); | 2814 return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<Wrapper
TypeInfo*>(&wrapperTypeInfo), V8TestInterface::installV8TestInterfaceTemplateFun
ction); |
2800 } | 2815 } |
2801 | 2816 |
2802 bool V8TestInterface::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* iso
late) { | 2817 bool V8TestInterface::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* iso
late) { |
2803 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Value)
; | 2818 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Value)
; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2900 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { | 2915 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { |
2901 const V8DOMConfiguration::AccessorConfiguration accessorConfigurat
ion = {"partialSecureContextWorkerExposedRuntimeEnabledAttribute", TestInterface
ImplementationV8Internal::partialSecureContextWorkerExposedRuntimeEnabledAttribu
teAttributeGetterCallback, TestInterfaceImplementationV8Internal::partialSecureC
ontextWorkerExposedRuntimeEnabledAttributeAttributeSetterCallback, 0, 0, nullptr
, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Ch
eckHolder}; | 2916 const V8DOMConfiguration::AccessorConfiguration accessorConfigurat
ion = {"partialSecureContextWorkerExposedRuntimeEnabledAttribute", TestInterface
ImplementationV8Internal::partialSecureContextWorkerExposedRuntimeEnabledAttribu
teAttributeGetterCallback, TestInterfaceImplementationV8Internal::partialSecureC
ontextWorkerExposedRuntimeEnabledAttributeAttributeSetterCallback, 0, 0, nullptr
, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Ch
eckHolder}; |
2902 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::
Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration); | 2917 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::
Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration); |
2903 } | 2918 } |
2904 } | 2919 } |
2905 } | 2920 } |
2906 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 2921 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
2907 ExecutionContext* executionContext = toExecutionContext(prototypeObject->Creat
ionContext()); | 2922 ExecutionContext* executionContext = toExecutionContext(prototypeObject->Creat
ionContext()); |
2908 DCHECK(executionContext); | 2923 DCHECK(executionContext); |
2909 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 2924 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
2910 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodCon
figuration = {"workerExposedMethod", TestInterfaceImplementationV8Internal::work
erExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllS
cripts, V8DOMConfiguration::OnPrototype}; | 2925 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodCon
figuration = {"workerExposedMethod", TestInterfaceImplementationV8Internal::work
erExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllS
cripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2911 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, workerExposedMethodMethodConfigura
tion); | 2926 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, workerExposedMethodMethodConfigura
tion); |
2912 } | 2927 } |
2913 if (executionContext && (executionContext->isDocument())) { | 2928 if (executionContext && (executionContext->isDocument())) { |
2914 const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodCon
figuration = {"windowExposedMethod", TestInterfaceImplementationV8Internal::wind
owExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllS
cripts, V8DOMConfiguration::OnPrototype}; | 2929 const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodCon
figuration = {"windowExposedMethod", TestInterfaceImplementationV8Internal::wind
owExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllS
cripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2915 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, windowExposedMethodMethodConfigura
tion); | 2930 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, windowExposedMethodMethodConfigura
tion); |
2916 } | 2931 } |
2917 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 2932 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
2918 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodMet
hodConfiguration = {"workerExposedStaticMethod", TestInterfaceImplementationV8In
ternal::workerExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; | 2933 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodMet
hodConfiguration = {"workerExposedStaticMethod", TestInterfaceImplementationV8In
ternal::workerExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::C
heckHolder}; |
2919 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, workerExposedStaticMethodMethodCon
figuration); | 2934 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, workerExposedStaticMethodMethodCon
figuration); |
2920 } | 2935 } |
2921 if (executionContext && (executionContext->isDocument())) { | 2936 if (executionContext && (executionContext->isDocument())) { |
2922 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMet
hodConfiguration = {"windowExposedStaticMethod", TestInterfaceImplementationV8In
ternal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; | 2937 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMet
hodConfiguration = {"windowExposedStaticMethod", TestInterfaceImplementationV8In
ternal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::C
heckHolder}; |
2923 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodCon
figuration); | 2938 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodCon
figuration); |
2924 } | 2939 } |
2925 if (executionContext && (executionContext->isDocument())) { | 2940 if (executionContext && (executionContext->isDocument())) { |
2926 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 2941 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
2927 const V8DOMConfiguration::MethodConfiguration methodWithExposedAndRunt
imeEnabledFlagMethodConfiguration = {"methodWithExposedAndRuntimeEnabledFlag", T
estInterfaceImplementationV8Internal::methodWithExposedAndRuntimeEnabledFlagMeth
odCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig
uration::OnPrototype}; | 2942 const V8DOMConfiguration::MethodConfiguration methodWithExposedAndRunt
imeEnabledFlagMethodConfiguration = {"methodWithExposedAndRuntimeEnabledFlag", T
estInterfaceImplementationV8Internal::methodWithExposedAndRuntimeEnabledFlagMeth
odCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig
uration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2928 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, methodWithExposedAndRuntimeEna
bledFlagMethodConfiguration); | 2943 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, methodWithExposedAndRuntimeEna
bledFlagMethodConfiguration); |
2929 } | 2944 } |
2930 } | 2945 } |
2931 if (executionContext && (executionContext->isDocument())) { | 2946 if (executionContext && (executionContext->isDocument())) { |
2932 const V8DOMConfiguration::MethodConfiguration overloadMethodWithExposedAnd
RuntimeEnabledFlagMethodConfiguration = {"overloadMethodWithExposedAndRuntimeEna
bledFlag", TestInterfaceImplementationV8Internal::overloadMethodWithExposedAndRu
ntimeEnabledFlagMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnPrototype}; | 2947 const V8DOMConfiguration::MethodConfiguration overloadMethodWithExposedAnd
RuntimeEnabledFlagMethodConfiguration = {"overloadMethodWithExposedAndRuntimeEna
bledFlag", TestInterfaceImplementationV8Internal::overloadMethodWithExposedAndRu
ntimeEnabledFlagMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2933 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, overloadMethodWithExposedAndRuntim
eEnabledFlagMethodConfiguration); | 2948 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, overloadMethodWithExposedAndRuntim
eEnabledFlagMethodConfiguration); |
2934 } | 2949 } |
2935 if (executionContext && ((executionContext->isDocument() && RuntimeEnabledFeat
ures::featureNameEnabled()) || (executionContext->isWorkerGlobalScope() && Runti
meEnabledFeatures::featureName2Enabled()))) { | 2950 if (executionContext && ((executionContext->isDocument() && RuntimeEnabledFeat
ures::featureNameEnabled()) || (executionContext->isWorkerGlobalScope() && Runti
meEnabledFeatures::featureName2Enabled()))) { |
2936 const V8DOMConfiguration::MethodConfiguration methodWithExposedHavingRunti
meEnabldFlagMethodConfiguration = {"methodWithExposedHavingRuntimeEnabldFlag", T
estInterfaceImplementationV8Internal::methodWithExposedHavingRuntimeEnabldFlagMe
thodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConf
iguration::OnPrototype}; | 2951 const V8DOMConfiguration::MethodConfiguration methodWithExposedHavingRunti
meEnabldFlagMethodConfiguration = {"methodWithExposedHavingRuntimeEnabldFlag", T
estInterfaceImplementationV8Internal::methodWithExposedHavingRuntimeEnabldFlagMe
thodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConf
iguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2937 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, methodWithExposedHavingRuntimeEnab
ldFlagMethodConfiguration); | 2952 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, methodWithExposedHavingRuntimeEnab
ldFlagMethodConfiguration); |
2938 } | 2953 } |
2939 if (executionContext && (executionContext->isDocument() || executionContext->i
sServiceWorkerGlobalScope())) { | 2954 if (executionContext && (executionContext->isDocument() || executionContext->i
sServiceWorkerGlobalScope())) { |
2940 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpose
dMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInterfa
ceImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback, 0
, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr
ototype}; | 2955 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpose
dMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInterfa
ceImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback, 0
, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr
ototype, V8DOMConfiguration::CheckHolder}; |
2941 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMetho
dMethodConfiguration); | 2956 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMetho
dMethodConfiguration); |
2942 } | 2957 } |
2943 if (executionContext && (executionContext->isSecureContext())) { | 2958 if (executionContext && (executionContext->isSecureContext())) { |
2944 const V8DOMConfiguration::MethodConfiguration secureContextMethodMethodCon
figuration = {"secureContextMethod", TestInterfaceImplementationV8Internal::secu
reContextMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllS
cripts, V8DOMConfiguration::OnPrototype}; | 2959 const V8DOMConfiguration::MethodConfiguration secureContextMethodMethodCon
figuration = {"secureContextMethod", TestInterfaceImplementationV8Internal::secu
reContextMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllS
cripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2945 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, secureContextMethodMethodConfigura
tion); | 2960 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, secureContextMethodMethodConfigura
tion); |
2946 } | 2961 } |
2947 if (executionContext && (executionContext->isSecureContext())) { | 2962 if (executionContext && (executionContext->isSecureContext())) { |
2948 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { | 2963 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { |
2949 const V8DOMConfiguration::MethodConfiguration secureContextRuntimeEnab
ledMethodMethodConfiguration = {"secureContextRuntimeEnabledMethod", TestInterfa
ceImplementationV8Internal::secureContextRuntimeEnabledMethodMethodCallback, 0,
0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProt
otype}; | 2964 const V8DOMConfiguration::MethodConfiguration secureContextRuntimeEnab
ledMethodMethodConfiguration = {"secureContextRuntimeEnabledMethod", TestInterfa
ceImplementationV8Internal::secureContextRuntimeEnabledMethodMethodCallback, 0,
0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProt
otype, V8DOMConfiguration::CheckHolder}; |
2950 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, secureContextRuntimeEnabledMet
hodMethodConfiguration); | 2965 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, secureContextRuntimeEnabledMet
hodMethodConfiguration); |
2951 } | 2966 } |
2952 } | 2967 } |
2953 if (executionContext && (executionContext->isSecureContext())) { | 2968 if (executionContext && (executionContext->isSecureContext())) { |
2954 if (executionContext && (executionContext->isDocument())) { | 2969 if (executionContext && (executionContext->isDocument())) { |
2955 const V8DOMConfiguration::MethodConfiguration secureContextWindowExpos
edMethodMethodConfiguration = {"secureContextWindowExposedMethod", TestInterface
ImplementationV8Internal::secureContextWindowExposedMethodMethodCallback, 0, 0,
v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy
pe}; | 2970 const V8DOMConfiguration::MethodConfiguration secureContextWindowExpos
edMethodMethodConfiguration = {"secureContextWindowExposedMethod", TestInterface
ImplementationV8Internal::secureContextWindowExposedMethodMethodCallback, 0, 0,
v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy
pe, V8DOMConfiguration::CheckHolder}; |
2956 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, secureContextWindowExposedMeth
odMethodConfiguration); | 2971 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, secureContextWindowExposedMeth
odMethodConfiguration); |
2957 } | 2972 } |
2958 } | 2973 } |
2959 if (executionContext && (executionContext->isSecureContext())) { | 2974 if (executionContext && (executionContext->isSecureContext())) { |
2960 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 2975 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
2961 const V8DOMConfiguration::MethodConfiguration secureContextWorkerExpos
edMethodMethodConfiguration = {"secureContextWorkerExposedMethod", TestInterface
ImplementationV8Internal::secureContextWorkerExposedMethodMethodCallback, 0, 0,
v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy
pe}; | 2976 const V8DOMConfiguration::MethodConfiguration secureContextWorkerExpos
edMethodMethodConfiguration = {"secureContextWorkerExposedMethod", TestInterface
ImplementationV8Internal::secureContextWorkerExposedMethodMethodCallback, 0, 0,
v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy
pe, V8DOMConfiguration::CheckHolder}; |
2962 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, secureContextWorkerExposedMeth
odMethodConfiguration); | 2977 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, secureContextWorkerExposedMeth
odMethodConfiguration); |
2963 } | 2978 } |
2964 } | 2979 } |
2965 if (executionContext && (executionContext->isSecureContext())) { | 2980 if (executionContext && (executionContext->isSecureContext())) { |
2966 if (executionContext && (executionContext->isDocument())) { | 2981 if (executionContext && (executionContext->isDocument())) { |
2967 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { | 2982 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { |
2968 const V8DOMConfiguration::MethodConfiguration secureContextWindowE
xposedRuntimeEnabledMethodMethodConfiguration = {"secureContextWindowExposedRunt
imeEnabledMethod", TestInterfaceImplementationV8Internal::secureContextWindowExp
osedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expo
sedToAllScripts, V8DOMConfiguration::OnPrototype}; | 2983 const V8DOMConfiguration::MethodConfiguration secureContextWindowE
xposedRuntimeEnabledMethodMethodConfiguration = {"secureContextWindowExposedRunt
imeEnabledMethod", TestInterfaceImplementationV8Internal::secureContextWindowExp
osedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expo
sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde
r}; |
2969 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob
ject>(), prototypeObject, interfaceObject, signature, secureContextWindowExposed
RuntimeEnabledMethodMethodConfiguration); | 2984 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob
ject>(), prototypeObject, interfaceObject, signature, secureContextWindowExposed
RuntimeEnabledMethodMethodConfiguration); |
2970 } | 2985 } |
2971 } | 2986 } |
2972 } | 2987 } |
2973 if (executionContext && (executionContext->isSecureContext())) { | 2988 if (executionContext && (executionContext->isSecureContext())) { |
2974 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 2989 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
2975 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { | 2990 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { |
2976 const V8DOMConfiguration::MethodConfiguration secureContextWorkerE
xposedRuntimeEnabledMethodMethodConfiguration = {"secureContextWorkerExposedRunt
imeEnabledMethod", TestInterfaceImplementationV8Internal::secureContextWorkerExp
osedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expo
sedToAllScripts, V8DOMConfiguration::OnPrototype}; | 2991 const V8DOMConfiguration::MethodConfiguration secureContextWorkerE
xposedRuntimeEnabledMethodMethodConfiguration = {"secureContextWorkerExposedRunt
imeEnabledMethod", TestInterfaceImplementationV8Internal::secureContextWorkerExp
osedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expo
sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde
r}; |
2977 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob
ject>(), prototypeObject, interfaceObject, signature, secureContextWorkerExposed
RuntimeEnabledMethodMethodConfiguration); | 2992 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob
ject>(), prototypeObject, interfaceObject, signature, secureContextWorkerExposed
RuntimeEnabledMethodMethodConfiguration); |
2978 } | 2993 } |
2979 } | 2994 } |
2980 } | 2995 } |
2981 if (executionContext && (executionContext->isSecureContext())) { | 2996 if (executionContext && (executionContext->isSecureContext())) { |
2982 const V8DOMConfiguration::MethodConfiguration partial2SecureContextMethodM
ethodConfiguration = {"partial2SecureContextMethod", TestInterfaceImplementation
V8Internal::partial2SecureContextMethodMethodCallback, 0, 0, v8::None, V8DOMConf
iguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}; | 2997 const V8DOMConfiguration::MethodConfiguration partial2SecureContextMethodM
ethodConfiguration = {"partial2SecureContextMethod", TestInterfaceImplementation
V8Internal::partial2SecureContextMethodMethodCallback, 0, 0, v8::None, V8DOMConf
iguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurat
ion::CheckHolder}; |
2983 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, partial2SecureContextMethodMethodC
onfiguration); | 2998 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, partial2SecureContextMethodMethodC
onfiguration); |
2984 } | 2999 } |
2985 if (executionContext && (executionContext->isSecureContext())) { | 3000 if (executionContext && (executionContext->isSecureContext())) { |
2986 const V8DOMConfiguration::MethodConfiguration partialSecureContextMethodMe
thodConfiguration = {"partialSecureContextMethod", TestInterfaceImplementationV8
Internal::partialSecureContextMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}; | 3001 const V8DOMConfiguration::MethodConfiguration partialSecureContextMethodMe
thodConfiguration = {"partialSecureContextMethod", TestInterfaceImplementationV8
Internal::partialSecureContextMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration
::CheckHolder}; |
2987 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, partialSecureContextMethodMethodCo
nfiguration); | 3002 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, partialSecureContextMethodMethodCo
nfiguration); |
2988 } | 3003 } |
2989 if (executionContext && (executionContext->isSecureContext())) { | 3004 if (executionContext && (executionContext->isSecureContext())) { |
2990 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { | 3005 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { |
2991 const V8DOMConfiguration::MethodConfiguration partialSecureContextRunt
imeEnabledMethodMethodConfiguration = {"partialSecureContextRuntimeEnabledMethod
", TestInterfaceImplementationV8Internal::partialSecureContextRuntimeEnabledMeth
odMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOM
Configuration::OnPrototype}; | 3006 const V8DOMConfiguration::MethodConfiguration partialSecureContextRunt
imeEnabledMethodMethodConfiguration = {"partialSecureContextRuntimeEnabledMethod
", TestInterfaceImplementationV8Internal::partialSecureContextRuntimeEnabledMeth
odMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2992 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, partialSecureContextRuntimeEna
bledMethodMethodConfiguration); | 3007 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, partialSecureContextRuntimeEna
bledMethodMethodConfiguration); |
2993 } | 3008 } |
2994 } | 3009 } |
2995 if (executionContext && (executionContext->isSecureContext())) { | 3010 if (executionContext && (executionContext->isSecureContext())) { |
2996 if (executionContext && (executionContext->isDocument())) { | 3011 if (executionContext && (executionContext->isDocument())) { |
2997 const V8DOMConfiguration::MethodConfiguration partialSecureContextWind
owExposedMethodMethodConfiguration = {"partialSecureContextWindowExposedMethod",
TestInterfaceImplementationV8Internal::partialSecureContextWindowExposedMethodM
ethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMCon
figuration::OnPrototype}; | 3012 const V8DOMConfiguration::MethodConfiguration partialSecureContextWind
owExposedMethodMethodConfiguration = {"partialSecureContextWindowExposedMethod",
TestInterfaceImplementationV8Internal::partialSecureContextWindowExposedMethodM
ethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMCon
figuration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2998 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, partialSecureContextWindowExpo
sedMethodMethodConfiguration); | 3013 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, partialSecureContextWindowExpo
sedMethodMethodConfiguration); |
2999 } | 3014 } |
3000 } | 3015 } |
3001 if (executionContext && (executionContext->isSecureContext())) { | 3016 if (executionContext && (executionContext->isSecureContext())) { |
3002 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 3017 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
3003 const V8DOMConfiguration::MethodConfiguration partialSecureContextWork
erExposedMethodMethodConfiguration = {"partialSecureContextWorkerExposedMethod",
TestInterfaceImplementationV8Internal::partialSecureContextWorkerExposedMethodM
ethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMCon
figuration::OnPrototype}; | 3018 const V8DOMConfiguration::MethodConfiguration partialSecureContextWork
erExposedMethodMethodConfiguration = {"partialSecureContextWorkerExposedMethod",
TestInterfaceImplementationV8Internal::partialSecureContextWorkerExposedMethodM
ethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMCon
figuration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
3004 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, partialSecureContextWorkerExpo
sedMethodMethodConfiguration); | 3019 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, partialSecureContextWorkerExpo
sedMethodMethodConfiguration); |
3005 } | 3020 } |
3006 } | 3021 } |
3007 if (executionContext && (executionContext->isSecureContext())) { | 3022 if (executionContext && (executionContext->isSecureContext())) { |
3008 if (executionContext && (executionContext->isDocument())) { | 3023 if (executionContext && (executionContext->isDocument())) { |
3009 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { | 3024 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { |
3010 const V8DOMConfiguration::MethodConfiguration partialSecureContext
WindowExposedRuntimeEnabledMethodMethodConfiguration = {"partialSecureContextWin
dowExposedRuntimeEnabledMethod", TestInterfaceImplementationV8Internal::partialS
ecureContextWindowExposedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}; | 3025 const V8DOMConfiguration::MethodConfiguration partialSecureContext
WindowExposedRuntimeEnabledMethodMethodConfiguration = {"partialSecureContextWin
dowExposedRuntimeEnabledMethod", TestInterfaceImplementationV8Internal::partialS
ecureContextWindowExposedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConf
iguration::CheckHolder}; |
3011 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob
ject>(), prototypeObject, interfaceObject, signature, partialSecureContextWindow
ExposedRuntimeEnabledMethodMethodConfiguration); | 3026 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob
ject>(), prototypeObject, interfaceObject, signature, partialSecureContextWindow
ExposedRuntimeEnabledMethodMethodConfiguration); |
3012 } | 3027 } |
3013 } | 3028 } |
3014 } | 3029 } |
3015 if (executionContext && (executionContext->isSecureContext())) { | 3030 if (executionContext && (executionContext->isSecureContext())) { |
3016 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 3031 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
3017 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { | 3032 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { |
3018 const V8DOMConfiguration::MethodConfiguration partialSecureContext
WorkerExposedRuntimeEnabledMethodMethodConfiguration = {"partialSecureContextWor
kerExposedRuntimeEnabledMethod", TestInterfaceImplementationV8Internal::partialS
ecureContextWorkerExposedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}; | 3033 const V8DOMConfiguration::MethodConfiguration partialSecureContext
WorkerExposedRuntimeEnabledMethodMethodConfiguration = {"partialSecureContextWor
kerExposedRuntimeEnabledMethod", TestInterfaceImplementationV8Internal::partialS
ecureContextWorkerExposedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConf
iguration::CheckHolder}; |
3019 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob
ject>(), prototypeObject, interfaceObject, signature, partialSecureContextWorker
ExposedRuntimeEnabledMethodMethodConfiguration); | 3034 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob
ject>(), prototypeObject, interfaceObject, signature, partialSecureContextWorker
ExposedRuntimeEnabledMethodMethodConfiguration); |
3020 } | 3035 } |
3021 } | 3036 } |
3022 } | 3037 } |
3023 } | 3038 } |
3024 | 3039 |
3025 bool V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplementedInPr
ivateScriptMethod(LocalFrame* frame, TestInterface* holderImpl, int value, int*
result) { | 3040 bool V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplementedInPr
ivateScriptMethod(LocalFrame* frame, TestInterface* holderImpl, int value, int*
result) { |
3026 if (!frame) | 3041 if (!frame) |
3027 return false; | 3042 return false; |
3028 v8::HandleScope handleScope(toIsolate(frame)); | 3043 v8::HandleScope handleScope(toIsolate(frame)); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3120 | 3135 |
3121 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { | 3136 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { |
3122 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInter
face = method; | 3137 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInter
face = method; |
3123 } | 3138 } |
3124 | 3139 |
3125 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { | 3140 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { |
3126 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPartia
lInterface = method; | 3141 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPartia
lInterface = method; |
3127 } | 3142 } |
3128 | 3143 |
3129 } // namespace blink | 3144 } // namespace blink |
OLD | NEW |