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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp

Issue 2571063002: Remove Blink-in-JS (Closed)
Patch Set: Created 4 years 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. 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
11 #include "bindings/core/v8/ExceptionState.h" 11 #include "bindings/core/v8/ExceptionState.h"
12 #include "bindings/core/v8/GeneratedCodeHelper.h" 12 #include "bindings/core/v8/GeneratedCodeHelper.h"
13 #include "bindings/core/v8/PrivateScriptRunner.h"
14 #include "bindings/core/v8/ScriptPromise.h" 13 #include "bindings/core/v8/ScriptPromise.h"
15 #include "bindings/core/v8/ScriptState.h" 14 #include "bindings/core/v8/ScriptState.h"
16 #include "bindings/core/v8/ScriptValue.h" 15 #include "bindings/core/v8/ScriptValue.h"
17 #include "bindings/core/v8/V8AbstractEventListener.h" 16 #include "bindings/core/v8/V8AbstractEventListener.h"
18 #include "bindings/core/v8/V8DOMConfiguration.h" 17 #include "bindings/core/v8/V8DOMConfiguration.h"
19 #include "bindings/core/v8/V8EventListenerHelper.h" 18 #include "bindings/core/v8/V8EventListenerHelper.h"
20 #include "bindings/core/v8/V8HiddenValue.h" 19 #include "bindings/core/v8/V8HiddenValue.h"
21 #include "bindings/core/v8/V8Iterator.h" 20 #include "bindings/core/v8/V8Iterator.h"
22 #include "bindings/core/v8/V8Node.h" 21 #include "bindings/core/v8/V8Node.h"
23 #include "bindings/core/v8/V8ObjectConstructor.h" 22 #include "bindings/core/v8/V8ObjectConstructor.h"
24 #include "bindings/core/v8/V8TestInterface.h" 23 #include "bindings/core/v8/V8TestInterface.h"
25 #include "bindings/core/v8/V8TestInterface2.h" 24 #include "bindings/core/v8/V8TestInterface2.h"
26 #include "bindings/core/v8/V8TestInterfaceEmpty.h" 25 #include "bindings/core/v8/V8TestInterfaceEmpty.h"
27 #include "bindings/core/v8/V8Window.h" 26 #include "bindings/core/v8/V8Window.h"
28 #include "bindings/tests/idls/core/TestImplements2.h" 27 #include "bindings/tests/idls/core/TestImplements2.h"
29 #include "bindings/tests/idls/core/TestImplements3Implementation.h" 28 #include "bindings/tests/idls/core/TestImplements3Implementation.h"
30 #include "bindings/tests/idls/core/TestInterfacePartial.h" 29 #include "bindings/tests/idls/core/TestInterfacePartial.h"
31 #include "bindings/tests/idls/core/TestInterfacePartial2Implementation.h" 30 #include "bindings/tests/idls/core/TestInterfacePartial2Implementation.h"
32 #include "bindings/tests/idls/core/TestInterfacePartialSecureContext.h" 31 #include "bindings/tests/idls/core/TestInterfacePartialSecureContext.h"
33 #include "core/dom/Document.h" 32 #include "core/dom/Document.h"
34 #include "core/frame/LocalFrame.h"
35 #include "core/frame/UseCounter.h" 33 #include "core/frame/UseCounter.h"
36 #include "core/inspector/ConsoleMessage.h" 34 #include "core/inspector/ConsoleMessage.h"
37 #include "platform/RuntimeEnabledFeatures.h" 35 #include "platform/RuntimeEnabledFeatures.h"
38 #include "platform/ScriptForbiddenScope.h"
39 #include "wtf/GetPtr.h" 36 #include "wtf/GetPtr.h"
40 #include "wtf/RefPtr.h" 37 #include "wtf/RefPtr.h"
41 38
42 namespace blink { 39 namespace blink {
43 40
44 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial 41 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial
45 // and does not depend on another global objects. 42 // and does not depend on another global objects.
46 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 43 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
47 #pragma clang diagnostic push 44 #pragma clang diagnostic push
48 #pragma clang diagnostic ignored "-Wglobal-constructors" 45 #pragma clang diagnostic ignored "-Wglobal-constructors"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 77
81 static void testInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info) { 78 static void testInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info) {
82 v8::Local<v8::Object> holder = info.Holder(); 79 v8::Local<v8::Object> holder = info.Holder();
83 80
84 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 81 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
85 82
86 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl); 83 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl);
87 } 84 }
88 85
89 void testInterfaceAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info) { 86 void testInterfaceAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info) {
90 UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionContext (info.GetIsolate()), UseCounter::V8TestInterface_TestInterfaceAttribute_Attribut eGetter); 87 UseCounter::count(currentExecutionContext(info.GetIsolate()), UseCounter::V8Te stInterface_TestInterfaceAttribute_AttributeGetter);
91 88
92 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeGetter(i nfo); 89 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeGetter(i nfo);
93 } 90 }
94 91
95 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) { 92 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) {
96 v8::Local<v8::Object> holder = info.Holder(); 93 v8::Local<v8::Object> holder = info.Holder();
97 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 94 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
98 95
99 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface", "testInterfaceAttribute"); 96 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface", "testInterfaceAttribute");
100 97
101 // Prepare the value to be set. 98 // Prepare the value to be set.
102 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck(i nfo.GetIsolate(), v8Value); 99 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck(i nfo.GetIsolate(), v8Value);
103 100
104 // Type check per: http://heycam.github.io/webidl/#es-interface 101 // Type check per: http://heycam.github.io/webidl/#es-interface
105 if (!cppValue) { 102 if (!cppValue) {
106 exceptionState.throwTypeError("The provided value is not of type 'TestInterf ace'."); 103 exceptionState.throwTypeError("The provided value is not of type 'TestInterf ace'.");
107 return; 104 return;
108 } 105 }
109 106
110 impl->setTestInterfaceAttribute(cppValue); 107 impl->setTestInterfaceAttribute(cppValue);
111 } 108 }
112 109
113 void testInterfaceAttributeAttributeSetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info) { 110 void testInterfaceAttributeAttributeSetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info) {
114 v8::Local<v8::Value> v8Value = info[0]; 111 v8::Local<v8::Value> v8Value = info[0];
115 112
116 UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionContext (info.GetIsolate()), UseCounter::V8TestInterface_TestInterfaceAttribute_Attribut eSetter); 113 UseCounter::count(currentExecutionContext(info.GetIsolate()), UseCounter::V8Te stInterface_TestInterfaceAttribute_AttributeSetter);
117 114
118 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeSetter(v 8Value, info); 115 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeSetter(v 8Value, info);
119 } 116 }
120 117
121 static void doubleAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va lue>& info) { 118 static void doubleAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va lue>& info) {
122 v8::Local<v8::Object> holder = info.Holder(); 119 v8::Local<v8::Object> holder = info.Holder();
123 120
124 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 121 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
125 122
126 v8SetReturnValue(info, impl->doubleAttribute()); 123 v8SetReturnValue(info, impl->doubleAttribute());
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 1244
1248 TestInterfacePartial::setPartialPartialEnumTypeAttribute(*impl, cppValue); 1245 TestInterfacePartial::setPartialPartialEnumTypeAttribute(*impl, cppValue);
1249 } 1246 }
1250 1247
1251 void partialPartialEnumTypeAttributeAttributeSetterCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) { 1248 void partialPartialEnumTypeAttributeAttributeSetterCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) {
1252 v8::Local<v8::Value> v8Value = info[0]; 1249 v8::Local<v8::Value> v8Value = info[0];
1253 1250
1254 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttribut eSetter(v8Value, info); 1251 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttribut eSetter(v8Value, info);
1255 } 1252 }
1256 1253
1257 static void stringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va lue>& info) {
1258 v8::Local<v8::Object> holder = info.Holder();
1259
1260 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
1261
1262 String result;
1263 if (!V8TestInterface::PrivateScript::stringAttributeAttributeGetter(toLocalFra me(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result) )
1264 return;
1265
1266 v8SetReturnValueString(info, result, info.GetIsolate());
1267 }
1268
1269 void stringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) {
1270 TestInterfaceImplementationV8Internal::stringAttributeAttributeGetter(info);
1271 }
1272
1273 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::FunctionCallbackInfo<v8::Value>& info) {
1274 v8::Local<v8::Object> holder = info.Holder();
1275 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
1276
1277 // Prepare the value to be set.
1278 V8StringResource<> cppValue = v8Value;
1279 if (!cppValue.prepare())
1280 return;
1281
1282 V8TestInterface::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(to FrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue);
1283 }
1284
1285 void stringAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) {
1286 v8::Local<v8::Value> v8Value = info[0];
1287
1288 TestInterfaceImplementationV8Internal::stringAttributeAttributeSetter(v8Value, info);
1289 }
1290
1291 static void partial2LongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) { 1254 static void partial2LongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) {
1292 v8::Local<v8::Object> holder = info.Holder(); 1255 v8::Local<v8::Object> holder = info.Holder();
1293 1256
1294 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 1257 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
1295 1258
1296 v8SetReturnValueInt(info, TestInterfacePartial2Implementation::partial2LongAtt ribute(*impl)); 1259 v8SetReturnValueInt(info, TestInterfacePartial2Implementation::partial2LongAtt ribute(*impl));
1297 } 1260 }
1298 1261
1299 void partial2LongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) { 1262 void partial2LongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) {
1300 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeGetter(in fo); 1263 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeGetter(in fo);
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
2199 } 2162 }
2200 partialCallbackTypeArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]); 2163 partialCallbackTypeArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]);
2201 2164
2202 TestInterfacePartial::partialVoidMethodPartialCallbackTypeArg(*impl, partialCa llbackTypeArg); 2165 TestInterfacePartial::partialVoidMethodPartialCallbackTypeArg(*impl, partialCa llbackTypeArg);
2203 } 2166 }
2204 2167
2205 void partialVoidMethodPartialCallbackTypeArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) { 2168 void partialVoidMethodPartialCallbackTypeArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) {
2206 TestInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeArg Method(info); 2169 TestInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeArg Method(info);
2207 } 2170 }
2208 2171
2209 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethod(const v 8::FunctionCallbackInfo<v8::Value>& info) {
2210 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCont ext, "TestInterface", "shortMethodWithShortArgumentImplementedInPrivateScript");
2211
2212 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2213
2214 if (UNLIKELY(info.Length() < 1)) {
2215 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info. Length()));
2216 return;
2217 }
2218
2219 int value;
2220 value = toInt16(info.GetIsolate(), info[0], NormalConversion, exceptionState);
2221 if (exceptionState.hadException())
2222 return;
2223
2224 int result = 0;
2225 if (!V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplementedIn PrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurr entContext())), impl, value, &result))
2226 return;
2227 v8SetReturnValueInt(info, result);
2228 }
2229
2230 void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
2231 TestInterfaceImplementationV8Internal::shortMethodWithShortArgumentImplemented InPrivateScriptMethod(info);
2232 }
2233
2234 static void partial2VoidMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { 2172 static void partial2VoidMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) {
2235 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2173 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2236 2174
2237 TestInterfacePartial2Implementation::partial2VoidMethod(*impl); 2175 TestInterfacePartial2Implementation::partial2VoidMethod(*impl);
2238 } 2176 }
2239 2177
2240 static void partial2StaticVoidMethod1Method(const v8::FunctionCallbackInfo<v8::V alue>& info) { 2178 static void partial2StaticVoidMethod1Method(const v8::FunctionCallbackInfo<v8::V alue>& info) {
2241 TestInterfacePartial2Implementation::partial2StaticVoidMethod(); 2179 TestInterfacePartial2Implementation::partial2StaticVoidMethod();
2242 } 2180 }
2243 2181
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
2635 } 2573 }
2636 } 2574 }
2637 2575
2638 // Suppress warning: global constructors, because AttributeConfiguration is triv ial 2576 // Suppress warning: global constructors, because AttributeConfiguration is triv ial
2639 // and does not depend on another global objects. 2577 // and does not depend on another global objects.
2640 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 2578 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
2641 #pragma clang diagnostic push 2579 #pragma clang diagnostic push
2642 #pragma clang diagnostic ignored "-Wglobal-constructors" 2580 #pragma clang diagnostic ignored "-Wglobal-constructors"
2643 #endif 2581 #endif
2644 const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceLazyDataAttribut es[] = { 2582 const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceLazyDataAttribut es[] = {
2645 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, 0, 0, 0, nullptr, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), stati c_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::D ontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstanc e, V8DOMConfiguration::CheckHolder}, 2583 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, 0, 0, 0, nullptr, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), stati c_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::D ontEnum), V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder},
2646 {"TestInterface", v8ConstructorAttributeGetter, 0, 0, 0, nullptr, const_cast <WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfi guration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguratio n::CheckHolder}, 2584 {"TestInterface", v8ConstructorAttributeGetter, 0, 0, 0, nullptr, const_cast <WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfi guration::OnInstance, V8DOMConfiguration::CheckHolder},
2647 {"TestInterface2", v8ConstructorAttributeGetter, 0, 0, 0, nullptr, const_cas t<WrapperTypeInfo*>(&V8TestInterface2::wrapperTypeInfo), static_cast<v8::AccessC ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMCon figuration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfigurat ion::CheckHolder}, 2585 {"TestInterface2", v8ConstructorAttributeGetter, 0, 0, 0, nullptr, const_cas t<WrapperTypeInfo*>(&V8TestInterface2::wrapperTypeInfo), static_cast<v8::AccessC ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMCon figuration::OnInstance, V8DOMConfiguration::CheckHolder},
2648 }; 2586 };
2649 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 2587 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
2650 #pragma clang diagnostic pop 2588 #pragma clang diagnostic pop
2651 #endif 2589 #endif
2652 2590
2653 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceAccessors[] = { 2591 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceAccessors[] = {
2654 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test InterfaceAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static _cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2592 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test InterfaceAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static _cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMCo nfiguration::CheckHolder},
2655 {"doubleAttribute", TestInterfaceImplementationV8Internal::doubleAttributeAt tributeGetterCallback, TestInterfaceImplementationV8Internal::doubleAttributeAtt ributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAtt ribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:: OnPrototype, V8DOMConfiguration::CheckHolder}, 2593 {"doubleAttribute", TestInterfaceImplementationV8Internal::doubleAttributeAt tributeGetterCallback, TestInterfaceImplementationV8Internal::doubleAttributeAtt ributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAtt ribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol der},
2656 {"floatAttribute", TestInterfaceImplementationV8Internal::floatAttributeAttr ibuteGetterCallback, TestInterfaceImplementationV8Internal::floatAttributeAttrib uteSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP rototype, V8DOMConfiguration::CheckHolder}, 2594 {"floatAttribute", TestInterfaceImplementationV8Internal::floatAttributeAttr ibuteGetterCallback, TestInterfaceImplementationV8Internal::floatAttributeAttrib uteSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder },
2657 {"unrestrictedDoubleAttribute", TestInterfaceImplementationV8Internal::unres trictedDoubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte rnal::unrestrictedDoubleAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8:: DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos edToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder }, 2595 {"unrestrictedDoubleAttribute", TestInterfaceImplementationV8Internal::unres trictedDoubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte rnal::unrestrictedDoubleAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8:: DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPro totype, V8DOMConfiguration::CheckHolder},
2658 {"unrestrictedFloatAttribute", TestInterfaceImplementationV8Internal::unrest rictedFloatAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern al::unrestrictedFloatAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEF AULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedT oAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2596 {"unrestrictedFloatAttribute", TestInterfaceImplementationV8Internal::unrest rictedFloatAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern al::unrestrictedFloatAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEF AULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnProtot ype, V8DOMConfiguration::CheckHolder},
2659 {"testEnumAttribute", TestInterfaceImplementationV8Internal::testEnumAttribu teAttributeGetterCallback, TestInterfaceImplementationV8Internal::testEnumAttrib uteAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::Prope rtyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigura tion::OnPrototype, V8DOMConfiguration::CheckHolder}, 2597 {"testEnumAttribute", TestInterfaceImplementationV8Internal::testEnumAttribu teAttributeGetterCallback, TestInterfaceImplementationV8Internal::testEnumAttrib uteAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::Prope rtyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Ch eckHolder},
2660 {"stringOrDoubleAttribute", TestInterfaceImplementationV8Internal::stringOrD oubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::st ringOrDoubleAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, sta tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2598 {"stringOrDoubleAttribute", TestInterfaceImplementationV8Internal::stringOrD oubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::st ringOrDoubleAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, sta tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DO MConfiguration::CheckHolder},
2661 {"staticStringAttribute", TestInterfaceImplementationV8Internal::staticStrin gAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::static StringAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_ca st<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8 DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, 2599 {"staticStringAttribute", TestInterfaceImplementationV8Internal::staticStrin gAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::static StringAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_ca st<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfi guration::CheckHolder},
2662 {"staticReturnDOMWrapperAttribute", TestInterfaceImplementationV8Internal::s taticReturnDOMWrapperAttributeAttributeGetterCallback, TestInterfaceImplementati onV8Internal::staticReturnDOMWrapperAttributeAttributeSetterCallback, 0, 0, null ptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration: :CheckHolder}, 2600 {"staticReturnDOMWrapperAttribute", TestInterfaceImplementationV8Internal::s taticReturnDOMWrapperAttributeAttributeGetterCallback, TestInterfaceImplementati onV8Internal::staticReturnDOMWrapperAttributeAttributeSetterCallback, 0, 0, null ptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::OnInterface, V8DOMConfiguration::CheckHolder},
2663 {"staticReadOnlyStringAttribute", TestInterfaceImplementationV8Internal::sta ticReadOnlyStringAttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFA ULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::Expos edToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder }, 2601 {"staticReadOnlyStringAttribute", TestInterfaceImplementationV8Internal::sta ticReadOnlyStringAttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFA ULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnInt erface, V8DOMConfiguration::CheckHolder},
2664 {"staticReadOnlyReturnDOMWrapperAttribute", TestInterfaceImplementationV8Int ernal::staticReadOnlyReturnDOMWrapperAttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOM Configuration::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfig uration::CheckHolder}, 2602 {"staticReadOnlyReturnDOMWrapperAttribute", TestInterfaceImplementationV8Int ernal::staticReadOnlyReturnDOMWrapperAttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOM Configuration::OnInterface, V8DOMConfiguration::CheckHolder},
2665 {"legacyInterfaceTypeCheckingAttribute", TestInterfaceImplementationV8Intern al::legacyInterfaceTypeCheckingAttributeAttributeGetterCallback, TestInterfaceIm plementationV8Internal::legacyInterfaceTypeCheckingAttributeAttributeSetterCallb ack, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DO MConfiguration::CheckHolder}, 2603 {"legacyInterfaceTypeCheckingAttribute", TestInterfaceImplementationV8Intern al::legacyInterfaceTypeCheckingAttributeAttributeGetterCallback, TestInterfaceIm plementationV8Internal::legacyInterfaceTypeCheckingAttributeAttributeSetterCallb ack, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
2666 {"alwaysExposedAttribute", TestInterfaceImplementationV8Internal::alwaysExpo sedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::alwa ysExposedAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static _cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2604 {"alwaysExposedAttribute", TestInterfaceImplementationV8Internal::alwaysExpo sedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::alwa ysExposedAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static _cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMCo nfiguration::CheckHolder},
2667 {"lenientThisAttribute", TestInterfaceImplementationV8Internal::lenientThisA ttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::lenientT hisAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM Configuration::OnPrototype, V8DOMConfiguration::DoNotCheckHolder}, 2605 {"lenientThisAttribute", TestInterfaceImplementationV8Internal::lenientThisA ttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::lenientT hisAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfigur ation::DoNotCheckHolder},
2668 {"implementsStaticReadOnlyLongAttribute", TestInterfaceImplementationV8Inter nal::implementsStaticReadOnlyLongAttributeAttributeGetterCallback, 0, 0, 0, null ptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfigurat ion::CheckHolder}, 2606 {"implementsStaticReadOnlyLongAttribute", TestInterfaceImplementationV8Inter nal::implementsStaticReadOnlyLongAttributeAttributeGetterCallback, 0, 0, 0, null ptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConf iguration::OnInterface, V8DOMConfiguration::CheckHolder},
2669 {"implementsStaticStringAttribute", TestInterfaceImplementationV8Internal::i mplementsStaticStringAttributeAttributeGetterCallback, TestInterfaceImplementati onV8Internal::implementsStaticStringAttributeAttributeSetterCallback, 0, 0, null ptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration: :CheckHolder}, 2607 {"implementsStaticStringAttribute", TestInterfaceImplementationV8Internal::i mplementsStaticStringAttributeAttributeGetterCallback, TestInterfaceImplementati onV8Internal::implementsStaticStringAttributeAttributeSetterCallback, 0, 0, null ptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::OnInterface, V8DOMConfiguration::CheckHolder},
2670 {"implementsReadonlyStringAttribute", TestInterfaceImplementationV8Internal: :implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Che ckHolder}, 2608 {"implementsReadonlyStringAttribute", TestInterfaceImplementationV8Internal: :implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguratio n::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}, 2609 {"implementsStringAttribute", TestInterfaceImplementationV8Internal::impleme ntsStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal ::implementsStringAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAUL T, static_cast<v8::PropertyAttribute>(v8::None), 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}, 2610 {"implementsNodeAttribute", TestInterfaceImplementationV8Internal::implement sNodeAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im plementsNodeAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, sta tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DO MConfiguration::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}, 2611 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, null ptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::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}, 2612 {"implements3StringAttribute", TestInterfaceImplementationV8Internal::implem ents3StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern al::implements3StringAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEF AULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnProtot ype, V8DOMConfiguration::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}, 2613 {"implements3StaticStringAttribute", TestInterfaceImplementationV8Internal:: implements3StaticStringAttributeAttributeGetterCallback, TestInterfaceImplementa tionV8Internal::implements3StaticStringAttributeAttributeSetterCallback, 0, 0, n ullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi guration::OnInterface, 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}, 2614 {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partial2Lon gAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partia l2LongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_ca st<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfi guration::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 }, 2615 {"partial2StaticLongAttribute", TestInterfaceImplementationV8Internal::parti al2StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte rnal::partial2StaticLongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8:: DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnInt erface, V8DOMConfiguration::CheckHolder},
2678 }; 2616 };
2679 2617
2680 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { 2618 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = {
2681 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration ::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec kHolder}, 2619 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration ::OnPrototype, V8DOMConfiguration::CheckHolder},
2682 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM ethodDoubleArgFloatArgMethodCallback, 0, 2, v8::None, V8DOMConfiguration::Expose dToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder} , 2620 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM ethodDoubleArgFloatArgMethodCallback, 0, 2, v8::None, V8DOMConfiguration::OnProt otype, V8DOMConfiguration::CheckHolder},
2683 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall back, 0, 2, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguratio n::OnPrototype, V8DOMConfiguration::CheckHolder}, 2621 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall back, 0, 2, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Check Holder},
2684 {"voidMethodTestEnumArg", TestInterfaceImplementationV8Internal::voidMethodT estEnumArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScript s, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2622 {"voidMethodTestEnumArg", TestInterfaceImplementationV8Internal::voidMethodT estEnumArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOM Configuration::CheckHolder},
2685 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPro totype, V8DOMConfiguration::CheckHolder}, 2623 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
2686 {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed MethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2624 {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed MethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConf iguration::CheckHolder},
2687 {"alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwaysE xposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, 2625 {"alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwaysE xposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnInterfac e, V8DOMConfiguration::CheckHolder},
2688 {"staticReturnDOMWrapperMethod", TestInterfaceImplementationV8Internal::stat icReturnDOMWrapperMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolde r}, 2626 {"staticReturnDOMWrapperMethod", TestInterfaceImplementationV8Internal::stat icReturnDOMWrapperMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnIn terface, V8DOMConfiguration::CheckHolder},
2689 {"legacyInterfaceTypeCheckingMethod", TestInterfaceImplementationV8Internal: :legacyInterfaceTypeCheckingMethodMethodCallback, 0, 1, v8::None, V8DOMConfigura tion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration:: CheckHolder}, 2627 {"legacyInterfaceTypeCheckingMethod", TestInterfaceImplementationV8Internal: :legacyInterfaceTypeCheckingMethodMethodCallback, 0, 1, v8::None, V8DOMConfigura tion::OnPrototype, V8DOMConfiguration::CheckHolder},
2690 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo idMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2628 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo idMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMCo nfiguration::CheckHolder},
2691 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement sComplexMethodMethodCallback, 0, 2, v8::None, V8DOMConfiguration::ExposedToAllSc ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2629 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement sComplexMethodMethodCallback, 0, 2, v8::None, V8DOMConfiguration::OnPrototype, V 8DOMConfiguration::CheckHolder},
2692 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem entsCustomVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedT oAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2630 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem entsCustomVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnProtot ype, V8DOMConfiguration::CheckHolder},
2693 {"implementsStaticVoidMethod", TestInterfaceImplementationV8Internal::implem entsStaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedT oAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, 2631 {"implementsStaticVoidMethod", TestInterfaceImplementationV8Internal::implem entsStaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnInterf ace, V8DOMConfiguration::CheckHolder},
2694 {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3 VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScript s, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2632 {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3 VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOM Configuration::CheckHolder},
2695 {"implements3StaticVoidMethod", TestInterfaceImplementationV8Internal::imple ments3StaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expose dToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder} , 2633 {"implements3StaticVoidMethod", TestInterfaceImplementationV8Internal::imple ments3StaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnInte rface, V8DOMConfiguration::CheckHolder},
2696 {"voidMethodPartialOverload", TestInterfaceImplementationV8Internal::voidMet hodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2634 {"voidMethodPartialOverload", TestInterfaceImplementationV8Internal::voidMet hodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototyp e, V8DOMConfiguration::CheckHolder},
2697 {"staticVoidMethodPartialOverload", TestInterfaceImplementationV8Internal::s taticVoidMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration ::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Chec kHolder}, 2635 {"staticVoidMethodPartialOverload", TestInterfaceImplementationV8Internal::s taticVoidMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration ::OnInterface, V8DOMConfiguration::CheckHolder},
2698 {"promiseMethodPartialOverload", TestInterfaceImplementationV8Internal::prom iseMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::DoNotCheck Holder}, 2636 {"promiseMethodPartialOverload", TestInterfaceImplementationV8Internal::prom iseMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPr ototype, V8DOMConfiguration::DoNotCheckHolder},
2699 {"staticPromiseMethodPartialOverload", TestInterfaceImplementationV8Internal ::staticPromiseMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration ::DoNotCheckHolder}, 2637 {"staticPromiseMethodPartialOverload", TestInterfaceImplementationV8Internal ::staticPromiseMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfigu ration::OnInterface, V8DOMConfiguration::DoNotCheckHolder},
2700 {"partial2VoidMethod", TestInterfaceImplementationV8Internal::partial2VoidMe thodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8D OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2638 {"partial2VoidMethod", TestInterfaceImplementationV8Internal::partial2VoidMe thodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfig uration::CheckHolder},
2701 {"partial2StaticVoidMethod", TestInterfaceImplementationV8Internal::partial2 StaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAll Scripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, 2639 {"partial2StaticVoidMethod", TestInterfaceImplementationV8Internal::partial2 StaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder},
2702 {"toJSON", TestInterfaceImplementationV8Internal::toJSONMethodCallback, 0, 0 , static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedT oAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2640 {"toJSON", TestInterfaceImplementationV8Internal::toJSONMethodCallback, 0, 0 , static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::OnProtot ype, V8DOMConfiguration::CheckHolder},
2703 {"toString", TestInterfaceImplementationV8Internal::toStringMethodCallback, 0, 0, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r}, 2641 {"toString", TestInterfaceImplementationV8Internal::toStringMethodCallback, 0, 0, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::OnPr ototype, V8DOMConfiguration::CheckHolder},
2704 }; 2642 };
2705 2643
2706 void V8TestInterface::installV8TestInterfaceTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { 2644 void V8TestInterface::installV8TestInterfaceTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) {
2707 // Initialize the interface object's template. 2645 // Initialize the interface object's template.
2708 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestInterface::wrapperTypeInfo.interfaceName, V8TestInterfaceEmpty::domTempla te(isolate, world), V8TestInterface::internalFieldCount); 2646 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestInterface::wrapperTypeInfo.interfaceName, V8TestInterfaceEmpty::domTempla te(isolate, world), V8TestInterface::internalFieldCount);
2709 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 2647 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
2710 ALLOW_UNUSED_LOCAL(signature); 2648 ALLOW_UNUSED_LOCAL(signature);
2711 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 2649 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
2712 ALLOW_UNUSED_LOCAL(instanceTemplate); 2650 ALLOW_UNUSED_LOCAL(instanceTemplate);
2713 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template(); 2651 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template();
(...skipping 14 matching lines...) Expand all
2728 V8DOMConfiguration::installConstant(isolate, interfaceTemplate, protot ypeTemplate, constantPartialUnsignedShortConfiguration); 2666 V8DOMConfiguration::installConstant(isolate, interfaceTemplate, protot ypeTemplate, constantPartialUnsignedShortConfiguration);
2729 const V8DOMConfiguration::ConstantConfiguration constantPartialDoubleC onfiguration = {"PARTIAL_DOUBLE", 0, 3.14, V8DOMConfiguration::ConstantTypeDoubl e}; 2667 const V8DOMConfiguration::ConstantConfiguration constantPartialDoubleC onfiguration = {"PARTIAL_DOUBLE", 0, 3.14, V8DOMConfiguration::ConstantTypeDoubl e};
2730 V8DOMConfiguration::installConstant(isolate, interfaceTemplate, protot ypeTemplate, constantPartialDoubleConfiguration); 2668 V8DOMConfiguration::installConstant(isolate, interfaceTemplate, protot ypeTemplate, constantPartialDoubleConfiguration);
2731 } 2669 }
2732 V8DOMConfiguration::installLazyDataAttributes(isolate, world, instanceTemp late, prototypeTemplate, V8TestInterfaceLazyDataAttributes, WTF_ARRAY_LENGTH(V8T estInterfaceLazyDataAttributes)); 2670 V8DOMConfiguration::installLazyDataAttributes(isolate, world, instanceTemp late, prototypeTemplate, V8TestInterfaceLazyDataAttributes, WTF_ARRAY_LENGTH(V8T estInterfaceLazyDataAttributes));
2733 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, pro totypeTemplate, interfaceTemplate, signature, V8TestInterfaceAccessors, WTF_ARRA Y_LENGTH(V8TestInterfaceAccessors)); 2671 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, pro totypeTemplate, interfaceTemplate, signature, V8TestInterfaceAccessors, WTF_ARRA Y_LENGTH(V8TestInterfaceAccessors));
2734 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, proto typeTemplate, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LE NGTH(V8TestInterfaceMethods)); 2672 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, proto typeTemplate, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LE NGTH(V8TestInterfaceMethods));
2735 } 2673 }
2736 2674
2737 if (RuntimeEnabledFeatures::featureNameEnabled()) { 2675 if (RuntimeEnabledFeatures::featureNameEnabled()) {
2738 const V8DOMConfiguration::AccessorConfiguration accessorconditionalReadOnlyL ongAttributeConfiguration = {"conditionalReadOnlyLongAttribute", TestInterfaceIm plementationV8Internal::conditionalReadOnlyLongAttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::ReadOn ly), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V 8DOMConfiguration::CheckHolder}; 2676 const V8DOMConfiguration::AccessorConfiguration accessorconditionalReadOnlyL ongAttributeConfiguration = {"conditionalReadOnlyLongAttribute", TestInterfaceIm plementationV8Internal::conditionalReadOnlyLongAttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::ReadOn ly), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
2739 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorconditionalReadOnlyLongAttrib uteConfiguration); 2677 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorconditionalReadOnlyLongAttrib uteConfiguration);
2740 const V8DOMConfiguration::AccessorConfiguration accessorstaticConditionalRea dOnlyLongAttributeConfiguration = {"staticConditionalReadOnlyLongAttribute", Tes tInterfaceImplementationV8Internal::staticConditionalReadOnlyLongAttributeAttrib uteGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAtt ribute>(v8::ReadOnly), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInterface, V8DOMConfiguration::CheckHolder}; 2678 const V8DOMConfiguration::AccessorConfiguration accessorstaticConditionalRea dOnlyLongAttributeConfiguration = {"staticConditionalReadOnlyLongAttribute", Tes tInterfaceImplementationV8Internal::staticConditionalReadOnlyLongAttributeAttrib uteGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAtt ribute>(v8::ReadOnly), V8DOMConfiguration::OnInterface, V8DOMConfiguration::Chec kHolder};
2741 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorstaticConditionalReadOnlyLong AttributeConfiguration); 2679 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorstaticConditionalReadOnlyLong AttributeConfiguration);
2742 const V8DOMConfiguration::AccessorConfiguration accessorconditionalLongAttri buteConfiguration = {"conditionalLongAttribute", TestInterfaceImplementationV8In ternal::conditionalLongAttributeAttributeGetterCallback, TestInterfaceImplementa tionV8Internal::conditionalLongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration ::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec kHolder}; 2680 const V8DOMConfiguration::AccessorConfiguration accessorconditionalLongAttri buteConfiguration = {"conditionalLongAttribute", TestInterfaceImplementationV8In ternal::conditionalLongAttributeAttributeGetterCallback, TestInterfaceImplementa tionV8Internal::conditionalLongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration ::OnPrototype, V8DOMConfiguration::CheckHolder};
2743 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorconditionalLongAttributeConfi guration); 2681 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorconditionalLongAttributeConfi guration);
2744 } 2682 }
2745 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { 2683 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) {
2746 const V8DOMConfiguration::AccessorConfiguration accessorimplements2StaticStr ingAttributeConfiguration = {"implements2StaticStringAttribute", TestInterfaceIm plementationV8Internal::implements2StaticStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttribut eSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInt erface, V8DOMConfiguration::CheckHolder}; 2684 const V8DOMConfiguration::AccessorConfiguration accessorimplements2StaticStr ingAttributeConfiguration = {"implements2StaticStringAttribute", TestInterfaceIm plementationV8Internal::implements2StaticStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttribut eSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder};
2747 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorimplements2StaticStringAttrib uteConfiguration); 2685 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorimplements2StaticStringAttrib uteConfiguration);
2748 const V8DOMConfiguration::AccessorConfiguration accessorimplements2StringAtt ributeConfiguration = {"implements2StringAttribute", TestInterfaceImplementation V8Internal::implements2StringAttributeAttributeGetterCallback, TestInterfaceImpl ementationV8Internal::implements2StringAttributeAttributeSetterCallback, 0, 0, n ullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi guration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurati on::CheckHolder}; 2686 const V8DOMConfiguration::AccessorConfiguration accessorimplements2StringAtt ributeConfiguration = {"implements2StringAttribute", TestInterfaceImplementation V8Internal::implements2StringAttributeAttributeGetterCallback, TestInterfaceImpl ementationV8Internal::implements2StringAttributeAttributeSetterCallback, 0, 0, n ullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi guration::OnPrototype, V8DOMConfiguration::CheckHolder};
2749 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorimplements2StringAttributeCon figuration); 2687 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorimplements2StringAttributeCon figuration);
2750 } 2688 }
2751 if (RuntimeEnabledFeatures::implementsFeatureNameEnabled()) { 2689 if (RuntimeEnabledFeatures::implementsFeatureNameEnabled()) {
2752 const V8DOMConfiguration::AccessorConfiguration accessorimplementsRuntimeEna bledNodeAttributeConfiguration = {"implementsRuntimeEnabledNodeAttribute", TestI nterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttributeAttribute GetterCallback, TestInterfaceImplementationV8Internal::implementsRuntimeEnabledN odeAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2690 const V8DOMConfiguration::AccessorConfiguration accessorimplementsRuntimeEna bledNodeAttributeConfiguration = {"implementsRuntimeEnabledNodeAttribute", TestI nterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttributeAttribute GetterCallback, TestInterfaceImplementationV8Internal::implementsRuntimeEnabledN odeAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfigur ation::CheckHolder};
2753 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorimplementsRuntimeEnabledNodeA ttributeConfiguration); 2691 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorimplementsRuntimeEnabledNodeA ttributeConfiguration);
2754 } 2692 }
2755 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2693 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2756 const V8DOMConfiguration::AccessorConfiguration accessorpartialPartialEnumTy peAttributeConfiguration = {"partialPartialEnumTypeAttribute", TestInterfaceImpl ementationV8Internal::partialPartialEnumTypeAttributeAttributeGetterCallback, Te stInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttributeSet terCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy pe, V8DOMConfiguration::CheckHolder}; 2694 const V8DOMConfiguration::AccessorConfiguration accessorpartialCallWithExecu tionContextLongAttributeConfiguration = {"partialCallWithExecutionContextLongAtt ribute", TestInterfaceImplementationV8Internal::partialCallWithExecutionContextL ongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::part ialCallWithExecutionContextLongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration ::OnPrototype, V8DOMConfiguration::CheckHolder};
2695 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorpartialCallWithExecutionConte xtLongAttributeConfiguration);
2696 const V8DOMConfiguration::AccessorConfiguration accessorpartialLongAttribute Configuration = {"partialLongAttribute", TestInterfaceImplementationV8Internal:: partialLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern al::partialLongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V 8DOMConfiguration::CheckHolder};
2697 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorpartialLongAttributeConfigura tion);
2698 const V8DOMConfiguration::AccessorConfiguration accessorpartialPartialEnumTy peAttributeConfiguration = {"partialPartialEnumTypeAttribute", TestInterfaceImpl ementationV8Internal::partialPartialEnumTypeAttributeAttributeGetterCallback, Te stInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttributeSet terCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
2757 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorpartialPartialEnumTypeAttribu teConfiguration); 2699 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorpartialPartialEnumTypeAttribu teConfiguration);
2758 const V8DOMConfiguration::AccessorConfiguration accessorpartialCallWithExecu tionContextLongAttributeConfiguration = {"partialCallWithExecutionContextLongAtt ribute", TestInterfaceImplementationV8Internal::partialCallWithExecutionContextL ongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::part ialCallWithExecutionContextLongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration ::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec kHolder}; 2700 const V8DOMConfiguration::AccessorConfiguration accessorpartialStaticLongAtt ributeConfiguration = {"partialStaticLongAttribute", TestInterfaceImplementation V8Internal::partialStaticLongAttributeAttributeGetterCallback, TestInterfaceImpl ementationV8Internal::partialStaticLongAttributeAttributeSetterCallback, 0, 0, n ullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi guration::OnInterface, V8DOMConfiguration::CheckHolder};
2759 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorpartialCallWithExecutionConte xtLongAttributeConfiguration);
2760 const V8DOMConfiguration::AccessorConfiguration accessorpartialLongAttribute Configuration = {"partialLongAttribute", TestInterfaceImplementationV8Internal:: partialLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern al::partialLongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
2761 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorpartialLongAttributeConfigura tion);
2762 const V8DOMConfiguration::AccessorConfiguration accessorpartialStaticLongAtt ributeConfiguration = {"partialStaticLongAttribute", TestInterfaceImplementation V8Internal::partialStaticLongAttributeAttributeGetterCallback, TestInterfaceImpl ementationV8Internal::partialStaticLongAttributeAttributeSetterCallback, 0, 0, n ullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi guration::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfigurati on::CheckHolder};
2763 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorpartialStaticLongAttributeCon figuration); 2701 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorpartialStaticLongAttributeCon figuration);
2764 const V8DOMConfiguration::AccessorConfiguration accessorstringAttributeConfi guration = {"stringAttribute", TestInterfaceImplementationV8Internal::stringAttr ibuteAttributeGetterCallback, TestInterfaceImplementationV8Internal::stringAttri buteAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnPrototype, V8DOMConfiguration::CheckHolder};
2765 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorstringAttributeConfiguration) ;
2766 } 2702 }
2767 2703
2768 // Indexed properties 2704 // Indexed properties
2769 v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(TestInter faceImplementationV8Internal::indexedPropertyGetterCallback, TestInterfaceImplem entationV8Internal::indexedPropertySetterCallback, 0, TestInterfaceImplementatio nV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInter faceImplementation>, v8::Local<v8::Value>(), v8::PropertyHandlerFlags::kNone); 2705 v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(TestInter faceImplementationV8Internal::indexedPropertyGetterCallback, TestInterfaceImplem entationV8Internal::indexedPropertySetterCallback, 0, TestInterfaceImplementatio nV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInter faceImplementation>, v8::Local<v8::Value>(), v8::PropertyHandlerFlags::kNone);
2770 instanceTemplate->SetHandler(indexedPropertyHandlerConfig); 2706 instanceTemplate->SetHandler(indexedPropertyHandlerConfig);
2771 // Named properties 2707 // Named properties
2772 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::kN onMasking))); 2708 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::kN onMasking)));
2773 instanceTemplate->SetHandler(namedPropertyHandlerConfig); 2709 instanceTemplate->SetHandler(namedPropertyHandlerConfig);
2774 2710
2775 // Iterator (@@iterator) 2711 // Iterator (@@iterator)
2776 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorCo nfiguration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8Internal:: iteratorMethodCallback, 0, v8::DontEnum, V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnPrototype }; 2712 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorCo nfiguration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8Internal:: iteratorMethodCallback, 0, v8::DontEnum, V8DOMConfiguration::OnPrototype };
2777 V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signature , symbolKeyedIteratorConfiguration); 2713 V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signature , symbolKeyedIteratorConfiguration);
2778 2714
2779 instanceTemplate->SetCallAsFunctionHandler(V8TestInterface::legacyCallCustom); 2715 instanceTemplate->SetCallAsFunctionHandler(V8TestInterface::legacyCallCustom);
2780 2716
2781 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { 2717 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) {
2782 const V8DOMConfiguration::MethodConfiguration implements2VoidMethodMethodC onfiguration = {"implements2VoidMethod", TestInterfaceImplementationV8Internal:: implements2VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Exposed ToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2718 const V8DOMConfiguration::MethodConfiguration implements2VoidMethodMethodC onfiguration = {"implements2VoidMethod", TestInterfaceImplementationV8Internal:: implements2VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnProto type, V8DOMConfiguration::CheckHolder};
2783 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, implements2VoidMethodMethodConfigurat ion); 2719 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, implements2VoidMethodMethodConfigurat ion);
2784 } 2720 }
2785 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2721 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2786 const V8DOMConfiguration::MethodConfiguration partialVoidMethodMethodConfi guration = {"partialVoidMethod", TestInterfaceImplementationV8Internal::partialV oidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2722 const V8DOMConfiguration::MethodConfiguration partialVoidMethodMethodConfi guration = {"partialVoidMethod", TestInterfaceImplementationV8Internal::partialV oidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMC onfiguration::CheckHolder};
2787 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, partialVoidMethodMethodConfiguration) ; 2723 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, partialVoidMethodMethodConfiguration) ;
2788 } 2724 }
2789 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2725 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2790 const V8DOMConfiguration::MethodConfiguration partialStaticVoidMethodMetho dConfiguration = {"partialStaticVoidMethod", TestInterfaceImplementationV8Intern al::partialStaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::E xposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHo lder}; 2726 const V8DOMConfiguration::MethodConfiguration partialStaticVoidMethodMetho dConfiguration = {"partialStaticVoidMethod", TestInterfaceImplementationV8Intern al::partialStaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::O nInterface, V8DOMConfiguration::CheckHolder};
2791 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, partialStaticVoidMethodMethodConfigur ation); 2727 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, partialStaticVoidMethodMethodConfigur ation);
2792 } 2728 }
2793 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2729 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2794 const V8DOMConfiguration::MethodConfiguration partialVoidMethodLongArgMeth odConfiguration = {"partialVoidMethodLongArg", TestInterfaceImplementationV8Inte rnal::partialVoidMethodLongArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration ::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec kHolder}; 2730 const V8DOMConfiguration::MethodConfiguration partialVoidMethodLongArgMeth odConfiguration = {"partialVoidMethodLongArg", TestInterfaceImplementationV8Inte rnal::partialVoidMethodLongArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration ::OnPrototype, V8DOMConfiguration::CheckHolder};
2795 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, partialVoidMethodLongArgMethodConfigu ration); 2731 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, partialVoidMethodLongArgMethodConfigu ration);
2796 } 2732 }
2797 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2733 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2798 const V8DOMConfiguration::MethodConfiguration partialCallWithExecutionCont extRaisesExceptionVoidMethodMethodConfiguration = {"partialCallWithExecutionCont extRaisesExceptionVoidMethod", TestInterfaceImplementationV8Internal::partialCal lWithExecutionContextRaisesExceptionVoidMethodMethodCallback, 0, 0, v8::None, V8 DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMCon figuration::CheckHolder}; 2734 const V8DOMConfiguration::MethodConfiguration partialCallWithExecutionCont extRaisesExceptionVoidMethodMethodConfiguration = {"partialCallWithExecutionCont extRaisesExceptionVoidMethod", TestInterfaceImplementationV8Internal::partialCal lWithExecutionContextRaisesExceptionVoidMethodMethodCallback, 0, 0, v8::None, V8 DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
2799 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, partialCallWithExecutionContextRaises ExceptionVoidMethodMethodConfiguration); 2735 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, partialCallWithExecutionContextRaises ExceptionVoidMethodMethodConfiguration);
2800 } 2736 }
2801 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2737 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2802 const V8DOMConfiguration::MethodConfiguration partialVoidMethodPartialCall backTypeArgMethodConfiguration = {"partialVoidMethodPartialCallbackTypeArg", Tes tInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeArgMetho dCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu ration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2738 const V8DOMConfiguration::MethodConfiguration partialVoidMethodPartialCall backTypeArgMethodConfiguration = {"partialVoidMethodPartialCallbackTypeArg", Tes tInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeArgMetho dCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration:: CheckHolder};
2803 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, partialVoidMethodPartialCallbackTypeA rgMethodConfiguration); 2739 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, partialVoidMethodPartialCallbackTypeA rgMethodConfiguration);
2804 } 2740 }
2805 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2806 const V8DOMConfiguration::MethodConfiguration shortMethodWithShortArgument ImplementedInPrivateScriptMethodConfiguration = {"shortMethodWithShortArgumentIm plementedInPrivateScript", TestInterfaceImplementationV8Internal::shortMethodWit hShortArgumentImplementedInPrivateScriptMethodCallback, 0, 1, v8::None, V8DOMCon figuration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigura tion::CheckHolder};
2807 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, shortMethodWithShortArgumentImplement edInPrivateScriptMethodConfiguration);
2808 }
2809 } 2741 }
2810 2742
2811 v8::Local<v8::FunctionTemplate> V8TestInterface::domTemplate(v8::Isolate* isolat e, const DOMWrapperWorld& world) { 2743 v8::Local<v8::FunctionTemplate> V8TestInterface::domTemplate(v8::Isolate* isolat e, const DOMWrapperWorld& world) {
2812 return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<Wrapper TypeInfo*>(&wrapperTypeInfo), V8TestInterface::installV8TestInterfaceTemplateFun ction); 2744 return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<Wrapper TypeInfo*>(&wrapperTypeInfo), V8TestInterface::installV8TestInterfaceTemplateFun ction);
2813 } 2745 }
2814 2746
2815 bool V8TestInterface::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* iso late) { 2747 bool V8TestInterface::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* iso late) {
2816 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Value) ; 2748 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Value) ;
2817 } 2749 }
2818 2750
2819 v8::Local<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Local<v8 ::Value> v8Value, v8::Isolate* isolate) { 2751 v8::Local<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Local<v8 ::Value> v8Value, v8::Isolate* isolate) {
2820 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value); 2752 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value);
2821 } 2753 }
2822 2754
2823 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i solate, v8::Local<v8::Value> value) { 2755 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i solate, v8::Local<v8::Value> value) {
2824 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr; 2756 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr;
2825 } 2757 }
2826 2758
2827 void V8TestInterface::preparePrototypeAndInterfaceObject(v8::Local<v8::Context> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v8 ::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interface Template) { 2759 void V8TestInterface::preparePrototypeAndInterfaceObject(v8::Local<v8::Context> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v8 ::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interface Template) {
2828 v8::Isolate* isolate = context->GetIsolate(); 2760 v8::Isolate* isolate = context->GetIsolate();
2829 ExecutionContext* executionContext = toExecutionContext(context); 2761 ExecutionContext* executionContext = toExecutionContext(context);
2830 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 2762 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
2831 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2763 if (executionContext && (executionContext->isWorkerGlobalScope())) {
2832 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" workerExposedAttribute", TestInterfaceImplementationV8Internal::workerExposedAtt ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::workerExpo sedAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2764 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" workerExposedAttribute", TestInterfaceImplementationV8Internal::workerExposedAtt ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::workerExpo sedAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfigur ation::CheckHolder};
2833 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration); 2765 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration);
2834 } 2766 }
2835 if (executionContext && (executionContext->isDocument())) { 2767 if (executionContext && (executionContext->isDocument())) {
2836 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" windowExposedAttribute", TestInterfaceImplementationV8Internal::windowExposedAtt ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::windowExpo sedAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2768 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" windowExposedAttribute", TestInterfaceImplementationV8Internal::windowExposedAtt ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::windowExpo sedAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfigur ation::CheckHolder};
2837 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration); 2769 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration);
2838 } 2770 }
2839 if (executionContext && (executionContext->isSecureContext())) { 2771 if (executionContext && (executionContext->isSecureContext())) {
2840 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" secureContextAttribute", TestInterfaceImplementationV8Internal::secureContextAtt ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::secureCont extAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2772 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" secureContextAttribute", TestInterfaceImplementationV8Internal::secureContextAtt ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::secureCont extAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfigur ation::CheckHolder};
2841 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration); 2773 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration);
2842 } 2774 }
2843 if (executionContext && (executionContext->isSecureContext())) { 2775 if (executionContext && (executionContext->isSecureContext())) {
2844 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2776 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
2845 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextRuntimeEnabledAttribute", TestInterfaceImplementationV8Internal ::secureContextRuntimeEnabledAttributeAttributeGetterCallback, TestInterfaceImpl ementationV8Internal::secureContextRuntimeEnabledAttributeAttributeSetterCallbac k, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMC onfiguration::CheckHolder}; 2777 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextRuntimeEnabledAttribute", TestInterfaceImplementationV8Internal ::secureContextRuntimeEnabledAttributeAttributeGetterCallback, TestInterfaceImpl ementationV8Internal::secureContextRuntimeEnabledAttributeAttributeSetterCallbac k, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
2846 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2778 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
2847 } 2779 }
2848 } 2780 }
2849 if (executionContext && (executionContext->isDocument())) { 2781 if (executionContext && (executionContext->isDocument())) {
2850 if (executionContext && (executionContext->isSecureContext())) { 2782 if (executionContext && (executionContext->isSecureContext())) {
2851 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextWindowExposedAttribute", TestInterfaceImplementationV8Internal: :secureContextWindowExposedAttributeAttributeGetterCallback, TestInterfaceImplem entationV8Internal::secureContextWindowExposedAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConf iguration::CheckHolder}; 2783 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextWindowExposedAttribute", TestInterfaceImplementationV8Internal: :secureContextWindowExposedAttributeAttributeGetterCallback, TestInterfaceImplem entationV8Internal::secureContextWindowExposedAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
2852 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2784 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
2853 } 2785 }
2854 } 2786 }
2855 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2787 if (executionContext && (executionContext->isWorkerGlobalScope())) {
2856 if (executionContext && (executionContext->isSecureContext())) { 2788 if (executionContext && (executionContext->isSecureContext())) {
2857 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextWorkerExposedAttribute", TestInterfaceImplementationV8Internal: :secureContextWorkerExposedAttributeAttributeGetterCallback, TestInterfaceImplem entationV8Internal::secureContextWorkerExposedAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConf iguration::CheckHolder}; 2789 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextWorkerExposedAttribute", TestInterfaceImplementationV8Internal: :secureContextWorkerExposedAttributeAttributeGetterCallback, TestInterfaceImplem entationV8Internal::secureContextWorkerExposedAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
2858 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2790 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
2859 } 2791 }
2860 } 2792 }
2861 if (executionContext && (executionContext->isDocument())) { 2793 if (executionContext && (executionContext->isDocument())) {
2862 if (executionContext && (executionContext->isSecureContext())) { 2794 if (executionContext && (executionContext->isSecureContext())) {
2863 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2795 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
2864 const V8DOMConfiguration::AccessorConfiguration accessorConfigurat ion = {"secureContextWindowExposedRuntimeEnabledAttribute", TestInterfaceImpleme ntationV8Internal::secureContextWindowExposedRuntimeEnabledAttributeAttributeGet terCallback, TestInterfaceImplementationV8Internal::secureContextWindowExposedRu ntimeEnabledAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, sta tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2796 const V8DOMConfiguration::AccessorConfiguration accessorConfigurat ion = {"secureContextWindowExposedRuntimeEnabledAttribute", TestInterfaceImpleme ntationV8Internal::secureContextWindowExposedRuntimeEnabledAttributeAttributeGet terCallback, TestInterfaceImplementationV8Internal::secureContextWindowExposedRu ntimeEnabledAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, sta tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DO MConfiguration::CheckHolder};
2865 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8:: Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2797 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8:: Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
2866 } 2798 }
2867 } 2799 }
2868 } 2800 }
2869 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2801 if (executionContext && (executionContext->isWorkerGlobalScope())) {
2870 if (executionContext && (executionContext->isSecureContext())) { 2802 if (executionContext && (executionContext->isSecureContext())) {
2871 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2803 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
2872 const V8DOMConfiguration::AccessorConfiguration accessorConfigurat ion = {"secureContextWorkerExposedRuntimeEnabledAttribute", TestInterfaceImpleme ntationV8Internal::secureContextWorkerExposedRuntimeEnabledAttributeAttributeGet terCallback, TestInterfaceImplementationV8Internal::secureContextWorkerExposedRu ntimeEnabledAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, sta tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2804 const V8DOMConfiguration::AccessorConfiguration accessorConfigurat ion = {"secureContextWorkerExposedRuntimeEnabledAttribute", TestInterfaceImpleme ntationV8Internal::secureContextWorkerExposedRuntimeEnabledAttributeAttributeGet terCallback, TestInterfaceImplementationV8Internal::secureContextWorkerExposedRu ntimeEnabledAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, sta tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DO MConfiguration::CheckHolder};
2873 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8:: Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2805 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8:: Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
2874 } 2806 }
2875 } 2807 }
2876 } 2808 }
2877 if (executionContext && (executionContext->isSecureContext())) { 2809 if (executionContext && (executionContext->isSecureContext())) {
2878 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" partial2SecureContextAttribute", TestInterfaceImplementationV8Internal::partial2 SecureContextAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte rnal::partial2SecureContextAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v 8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol der}; 2810 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" partial2SecureContextAttribute", TestInterfaceImplementationV8Internal::partial2 SecureContextAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte rnal::partial2SecureContextAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v 8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::On Prototype, V8DOMConfiguration::CheckHolder};
2879 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration); 2811 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration);
2880 } 2812 }
2881 if (executionContext && (executionContext->isSecureContext())) { 2813 if (executionContext && (executionContext->isSecureContext())) {
2882 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" partialSecureContextAttribute", TestInterfaceImplementationV8Internal::partialSe cureContextAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern al::partialSecureContextAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8:: DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos edToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder }; 2814 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" partialSecureContextAttribute", TestInterfaceImplementationV8Internal::partialSe cureContextAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern al::partialSecureContextAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8:: DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPro totype, V8DOMConfiguration::CheckHolder};
2883 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration); 2815 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration);
2884 } 2816 }
2885 if (executionContext && (executionContext->isSecureContext())) { 2817 if (executionContext && (executionContext->isSecureContext())) {
2886 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2818 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
2887 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"partialSecureContextRuntimeEnabledAttribute", TestInterfaceImplementationV8I nternal::partialSecureContextRuntimeEnabledAttributeAttributeGetterCallback, Tes tInterfaceImplementationV8Internal::partialSecureContextRuntimeEnabledAttributeA ttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration ::OnPrototype, V8DOMConfiguration::CheckHolder}; 2819 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"partialSecureContextRuntimeEnabledAttribute", TestInterfaceImplementationV8I nternal::partialSecureContextRuntimeEnabledAttributeAttributeGetterCallback, Tes tInterfaceImplementationV8Internal::partialSecureContextRuntimeEnabledAttributeA ttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckH older};
2888 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2820 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
2889 } 2821 }
2890 } 2822 }
2891 if (executionContext && (executionContext->isDocument())) { 2823 if (executionContext && (executionContext->isDocument())) {
2892 if (executionContext && (executionContext->isSecureContext())) { 2824 if (executionContext && (executionContext->isSecureContext())) {
2893 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"partialSecureContextWindowExposedAttribute", TestInterfaceImplementationV8In ternal::partialSecureContextWindowExposedAttributeAttributeGetterCallback, TestI nterfaceImplementationV8Internal::partialSecureContextWindowExposedAttributeAttr ibuteSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttr ibute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O nPrototype, V8DOMConfiguration::CheckHolder}; 2825 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"partialSecureContextWindowExposedAttribute", TestInterfaceImplementationV8In ternal::partialSecureContextWindowExposedAttributeAttributeGetterCallback, TestI nterfaceImplementationV8Internal::partialSecureContextWindowExposedAttributeAttr ibuteSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttr ibute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHold er};
2894 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2826 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
2895 } 2827 }
2896 } 2828 }
2897 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2829 if (executionContext && (executionContext->isWorkerGlobalScope())) {
2898 if (executionContext && (executionContext->isSecureContext())) { 2830 if (executionContext && (executionContext->isSecureContext())) {
2899 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"partialSecureContextWorkerExposedAttribute", TestInterfaceImplementationV8In ternal::partialSecureContextWorkerExposedAttributeAttributeGetterCallback, TestI nterfaceImplementationV8Internal::partialSecureContextWorkerExposedAttributeAttr ibuteSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttr ibute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O nPrototype, V8DOMConfiguration::CheckHolder}; 2831 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"partialSecureContextWorkerExposedAttribute", TestInterfaceImplementationV8In ternal::partialSecureContextWorkerExposedAttributeAttributeGetterCallback, TestI nterfaceImplementationV8Internal::partialSecureContextWorkerExposedAttributeAttr ibuteSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttr ibute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHold er};
2900 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2832 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
2901 } 2833 }
2902 } 2834 }
2903 if (executionContext && (executionContext->isDocument())) { 2835 if (executionContext && (executionContext->isDocument())) {
2904 if (executionContext && (executionContext->isSecureContext())) { 2836 if (executionContext && (executionContext->isSecureContext())) {
2905 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2837 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
2906 const V8DOMConfiguration::AccessorConfiguration accessorConfigurat ion = {"partialSecureContextWindowExposedRuntimeEnabledAttribute", TestInterface ImplementationV8Internal::partialSecureContextWindowExposedRuntimeEnabledAttribu teAttributeGetterCallback, TestInterfaceImplementationV8Internal::partialSecureC ontextWindowExposedRuntimeEnabledAttributeAttributeSetterCallback, 0, 0, nullptr , 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati on::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Ch eckHolder}; 2838 const V8DOMConfiguration::AccessorConfiguration accessorConfigurat ion = {"partialSecureContextWindowExposedRuntimeEnabledAttribute", TestInterface ImplementationV8Internal::partialSecureContextWindowExposedRuntimeEnabledAttribu teAttributeGetterCallback, TestInterfaceImplementationV8Internal::partialSecureC ontextWindowExposedRuntimeEnabledAttributeAttributeSetterCallback, 0, 0, nullptr , 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati on::OnPrototype, V8DOMConfiguration::CheckHolder};
2907 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8:: Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2839 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8:: Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
2908 } 2840 }
2909 } 2841 }
2910 } 2842 }
2911 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2843 if (executionContext && (executionContext->isWorkerGlobalScope())) {
2912 if (executionContext && (executionContext->isSecureContext())) { 2844 if (executionContext && (executionContext->isSecureContext())) {
2913 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2845 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
2914 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}; 2846 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::OnPrototype, V8DOMConfiguration::CheckHolder};
2915 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8:: Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2847 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8:: Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
2916 } 2848 }
2917 } 2849 }
2918 } 2850 }
2919 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 2851 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
2920 ExecutionContext* executionContext = toExecutionContext(prototypeObject->Creat ionContext()); 2852 ExecutionContext* executionContext = toExecutionContext(prototypeObject->Creat ionContext());
2921 DCHECK(executionContext); 2853 DCHECK(executionContext);
2922 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2854 if (executionContext && (executionContext->isWorkerGlobalScope())) {
2923 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodCon figuration = {"workerExposedMethod", TestInterfaceImplementationV8Internal::work erExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllS cripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2855 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodCon figuration = {"workerExposedMethod", TestInterfaceImplementationV8Internal::work erExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
2924 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, workerExposedMethodMethodConfigura tion); 2856 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, workerExposedMethodMethodConfigura tion);
2925 } 2857 }
2926 if (executionContext && (executionContext->isDocument())) { 2858 if (executionContext && (executionContext->isDocument())) {
2927 const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodCon figuration = {"windowExposedMethod", TestInterfaceImplementationV8Internal::wind owExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllS cripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2859 const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodCon figuration = {"windowExposedMethod", TestInterfaceImplementationV8Internal::wind owExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
2928 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, windowExposedMethodMethodConfigura tion); 2860 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, windowExposedMethodMethodConfigura tion);
2929 } 2861 }
2930 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2862 if (executionContext && (executionContext->isWorkerGlobalScope())) {
2931 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodMet hodConfiguration = {"workerExposedStaticMethod", TestInterfaceImplementationV8In ternal::workerExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigurat ion::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::C heckHolder}; 2863 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodMet hodConfiguration = {"workerExposedStaticMethod", TestInterfaceImplementationV8In ternal::workerExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigurat ion::OnInterface, V8DOMConfiguration::CheckHolder};
2932 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, workerExposedStaticMethodMethodCon figuration); 2864 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, workerExposedStaticMethodMethodCon figuration);
2933 } 2865 }
2934 if (executionContext && (executionContext->isDocument())) { 2866 if (executionContext && (executionContext->isDocument())) {
2935 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMet hodConfiguration = {"windowExposedStaticMethod", TestInterfaceImplementationV8In ternal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigurat ion::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::C heckHolder}; 2867 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMet hodConfiguration = {"windowExposedStaticMethod", TestInterfaceImplementationV8In ternal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigurat ion::OnInterface, V8DOMConfiguration::CheckHolder};
2936 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodCon figuration); 2868 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodCon figuration);
2937 } 2869 }
2938 if (executionContext && (executionContext->isDocument())) { 2870 if (executionContext && (executionContext->isDocument())) {
2939 if (RuntimeEnabledFeatures::featureNameEnabled()) { 2871 if (RuntimeEnabledFeatures::featureNameEnabled()) {
2940 const V8DOMConfiguration::MethodConfiguration methodWithExposedAndRunt imeEnabledFlagMethodConfiguration = {"methodWithExposedAndRuntimeEnabledFlag", T estInterfaceImplementationV8Internal::methodWithExposedAndRuntimeEnabledFlagMeth odCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig uration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2872 const V8DOMConfiguration::MethodConfiguration methodWithExposedAndRunt imeEnabledFlagMethodConfiguration = {"methodWithExposedAndRuntimeEnabledFlag", T estInterfaceImplementationV8Internal::methodWithExposedAndRuntimeEnabledFlagMeth odCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration: :CheckHolder};
2941 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, methodWithExposedAndRuntimeEna bledFlagMethodConfiguration); 2873 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, methodWithExposedAndRuntimeEna bledFlagMethodConfiguration);
2942 } 2874 }
2943 } 2875 }
2944 if (executionContext && (executionContext->isDocument())) { 2876 if (executionContext && (executionContext->isDocument())) {
2945 const V8DOMConfiguration::MethodConfiguration overloadMethodWithExposedAnd RuntimeEnabledFlagMethodConfiguration = {"overloadMethodWithExposedAndRuntimeEna bledFlag", TestInterfaceImplementationV8Internal::overloadMethodWithExposedAndRu ntimeEnabledFlagMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAll Scripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2877 const V8DOMConfiguration::MethodConfiguration overloadMethodWithExposedAnd RuntimeEnabledFlagMethodConfiguration = {"overloadMethodWithExposedAndRuntimeEna bledFlag", TestInterfaceImplementationV8Internal::overloadMethodWithExposedAndRu ntimeEnabledFlagMethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
2946 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, overloadMethodWithExposedAndRuntim eEnabledFlagMethodConfiguration); 2878 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, overloadMethodWithExposedAndRuntim eEnabledFlagMethodConfiguration);
2947 } 2879 }
2948 if (executionContext && ((executionContext->isDocument() && RuntimeEnabledFeat ures::featureNameEnabled()) || (executionContext->isWorkerGlobalScope() && Runti meEnabledFeatures::featureName2Enabled()))) { 2880 if (executionContext && ((executionContext->isDocument() && RuntimeEnabledFeat ures::featureNameEnabled()) || (executionContext->isWorkerGlobalScope() && Runti meEnabledFeatures::featureName2Enabled()))) {
2949 const V8DOMConfiguration::MethodConfiguration methodWithExposedHavingRunti meEnabldFlagMethodConfiguration = {"methodWithExposedHavingRuntimeEnabldFlag", T estInterfaceImplementationV8Internal::methodWithExposedHavingRuntimeEnabldFlagMe thodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConf iguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2881 const V8DOMConfiguration::MethodConfiguration methodWithExposedHavingRunti meEnabldFlagMethodConfiguration = {"methodWithExposedHavingRuntimeEnabldFlag", T estInterfaceImplementationV8Internal::methodWithExposedHavingRuntimeEnabldFlagMe thodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio n::CheckHolder};
2950 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, methodWithExposedHavingRuntimeEnab ldFlagMethodConfiguration); 2882 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, methodWithExposedHavingRuntimeEnab ldFlagMethodConfiguration);
2951 } 2883 }
2952 if (executionContext && (executionContext->isDocument() || executionContext->i sServiceWorkerGlobalScope())) { 2884 if (executionContext && (executionContext->isDocument() || executionContext->i sServiceWorkerGlobalScope())) {
2953 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpose dMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInterfa ceImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback, 0 , 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr ototype, V8DOMConfiguration::CheckHolder}; 2885 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpose dMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInterfa ceImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback, 0 , 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder} ;
2954 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMetho dMethodConfiguration); 2886 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMetho dMethodConfiguration);
2955 } 2887 }
2956 if (executionContext && (executionContext->isSecureContext())) { 2888 if (executionContext && (executionContext->isSecureContext())) {
2957 const V8DOMConfiguration::MethodConfiguration secureContextMethodMethodCon figuration = {"secureContextMethod", TestInterfaceImplementationV8Internal::secu reContextMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllS cripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2889 const V8DOMConfiguration::MethodConfiguration secureContextMethodMethodCon figuration = {"secureContextMethod", TestInterfaceImplementationV8Internal::secu reContextMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
2958 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, secureContextMethodMethodConfigura tion); 2890 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, secureContextMethodMethodConfigura tion);
2959 } 2891 }
2960 if (executionContext && (executionContext->isSecureContext())) { 2892 if (executionContext && (executionContext->isSecureContext())) {
2961 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2893 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
2962 const V8DOMConfiguration::MethodConfiguration secureContextRuntimeEnab ledMethodMethodConfiguration = {"secureContextRuntimeEnabledMethod", TestInterfa ceImplementationV8Internal::secureContextRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProt otype, V8DOMConfiguration::CheckHolder}; 2894 const V8DOMConfiguration::MethodConfiguration secureContextRuntimeEnab ledMethodMethodConfiguration = {"secureContextRuntimeEnabledMethod", TestInterfa ceImplementationV8Internal::secureContextRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
2963 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, secureContextRuntimeEnabledMet hodMethodConfiguration); 2895 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, secureContextRuntimeEnabledMet hodMethodConfiguration);
2964 } 2896 }
2965 } 2897 }
2966 if (executionContext && (executionContext->isSecureContext())) { 2898 if (executionContext && (executionContext->isSecureContext())) {
2967 if (executionContext && (executionContext->isDocument())) { 2899 if (executionContext && (executionContext->isDocument())) {
2968 const V8DOMConfiguration::MethodConfiguration secureContextWindowExpos edMethodMethodConfiguration = {"secureContextWindowExposedMethod", TestInterface ImplementationV8Internal::secureContextWindowExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy pe, V8DOMConfiguration::CheckHolder}; 2900 const V8DOMConfiguration::MethodConfiguration secureContextWindowExpos edMethodMethodConfiguration = {"secureContextWindowExposedMethod", TestInterface ImplementationV8Internal::secureContextWindowExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
2969 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, secureContextWindowExposedMeth odMethodConfiguration); 2901 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, secureContextWindowExposedMeth odMethodConfiguration);
2970 } 2902 }
2971 } 2903 }
2972 if (executionContext && (executionContext->isSecureContext())) { 2904 if (executionContext && (executionContext->isSecureContext())) {
2973 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2905 if (executionContext && (executionContext->isWorkerGlobalScope())) {
2974 const V8DOMConfiguration::MethodConfiguration secureContextWorkerExpos edMethodMethodConfiguration = {"secureContextWorkerExposedMethod", TestInterface ImplementationV8Internal::secureContextWorkerExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy pe, V8DOMConfiguration::CheckHolder}; 2906 const V8DOMConfiguration::MethodConfiguration secureContextWorkerExpos edMethodMethodConfiguration = {"secureContextWorkerExposedMethod", TestInterface ImplementationV8Internal::secureContextWorkerExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
2975 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, secureContextWorkerExposedMeth odMethodConfiguration); 2907 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, secureContextWorkerExposedMeth odMethodConfiguration);
2976 } 2908 }
2977 } 2909 }
2978 if (executionContext && (executionContext->isSecureContext())) { 2910 if (executionContext && (executionContext->isSecureContext())) {
2979 if (executionContext && (executionContext->isDocument())) { 2911 if (executionContext && (executionContext->isDocument())) {
2980 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2912 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
2981 const V8DOMConfiguration::MethodConfiguration secureContextWindowE xposedRuntimeEnabledMethodMethodConfiguration = {"secureContextWindowExposedRunt imeEnabledMethod", TestInterfaceImplementationV8Internal::secureContextWindowExp osedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r}; 2913 const V8DOMConfiguration::MethodConfiguration secureContextWindowE xposedRuntimeEnabledMethodMethodConfiguration = {"secureContextWindowExposedRunt imeEnabledMethod", TestInterfaceImplementationV8Internal::secureContextWindowExp osedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPr ototype, V8DOMConfiguration::CheckHolder};
2982 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob ject>(), prototypeObject, interfaceObject, signature, secureContextWindowExposed RuntimeEnabledMethodMethodConfiguration); 2914 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob ject>(), prototypeObject, interfaceObject, signature, secureContextWindowExposed RuntimeEnabledMethodMethodConfiguration);
2983 } 2915 }
2984 } 2916 }
2985 } 2917 }
2986 if (executionContext && (executionContext->isSecureContext())) { 2918 if (executionContext && (executionContext->isSecureContext())) {
2987 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2919 if (executionContext && (executionContext->isWorkerGlobalScope())) {
2988 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2920 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
2989 const V8DOMConfiguration::MethodConfiguration secureContextWorkerE xposedRuntimeEnabledMethodMethodConfiguration = {"secureContextWorkerExposedRunt imeEnabledMethod", TestInterfaceImplementationV8Internal::secureContextWorkerExp osedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r}; 2921 const V8DOMConfiguration::MethodConfiguration secureContextWorkerE xposedRuntimeEnabledMethodMethodConfiguration = {"secureContextWorkerExposedRunt imeEnabledMethod", TestInterfaceImplementationV8Internal::secureContextWorkerExp osedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPr ototype, V8DOMConfiguration::CheckHolder};
2990 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob ject>(), prototypeObject, interfaceObject, signature, secureContextWorkerExposed RuntimeEnabledMethodMethodConfiguration); 2922 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob ject>(), prototypeObject, interfaceObject, signature, secureContextWorkerExposed RuntimeEnabledMethodMethodConfiguration);
2991 } 2923 }
2992 } 2924 }
2993 } 2925 }
2994 if (executionContext && (executionContext->isSecureContext())) { 2926 if (executionContext && (executionContext->isSecureContext())) {
2995 const V8DOMConfiguration::MethodConfiguration partial2SecureContextMethodM ethodConfiguration = {"partial2SecureContextMethod", TestInterfaceImplementation V8Internal::partial2SecureContextMethodMethodCallback, 0, 0, v8::None, V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurat ion::CheckHolder}; 2927 const V8DOMConfiguration::MethodConfiguration partial2SecureContextMethodM ethodConfiguration = {"partial2SecureContextMethod", TestInterfaceImplementation V8Internal::partial2SecureContextMethodMethodCallback, 0, 0, v8::None, V8DOMConf iguration::OnPrototype, V8DOMConfiguration::CheckHolder};
2996 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, partial2SecureContextMethodMethodC onfiguration); 2928 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, partial2SecureContextMethodMethodC onfiguration);
2997 } 2929 }
2998 if (executionContext && (executionContext->isSecureContext())) { 2930 if (executionContext && (executionContext->isSecureContext())) {
2999 const V8DOMConfiguration::MethodConfiguration partialSecureContextMethodMe thodConfiguration = {"partialSecureContextMethod", TestInterfaceImplementationV8 Internal::partialSecureContextMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration ::CheckHolder}; 2931 const V8DOMConfiguration::MethodConfiguration partialSecureContextMethodMe thodConfiguration = {"partialSecureContextMethod", TestInterfaceImplementationV8 Internal::partialSecureContextMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu ration::OnPrototype, V8DOMConfiguration::CheckHolder};
3000 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, partialSecureContextMethodMethodCo nfiguration); 2932 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, partialSecureContextMethodMethodCo nfiguration);
3001 } 2933 }
3002 if (executionContext && (executionContext->isSecureContext())) { 2934 if (executionContext && (executionContext->isSecureContext())) {
3003 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2935 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
3004 const V8DOMConfiguration::MethodConfiguration partialSecureContextRunt imeEnabledMethodMethodConfiguration = {"partialSecureContextRuntimeEnabledMethod ", TestInterfaceImplementationV8Internal::partialSecureContextRuntimeEnabledMeth odMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOM Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2936 const V8DOMConfiguration::MethodConfiguration partialSecureContextRunt imeEnabledMethodMethodConfiguration = {"partialSecureContextRuntimeEnabledMethod ", TestInterfaceImplementationV8Internal::partialSecureContextRuntimeEnabledMeth odMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigur ation::CheckHolder};
3005 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, partialSecureContextRuntimeEna bledMethodMethodConfiguration); 2937 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, partialSecureContextRuntimeEna bledMethodMethodConfiguration);
3006 } 2938 }
3007 } 2939 }
3008 if (executionContext && (executionContext->isSecureContext())) { 2940 if (executionContext && (executionContext->isSecureContext())) {
3009 if (executionContext && (executionContext->isDocument())) { 2941 if (executionContext && (executionContext->isDocument())) {
3010 const V8DOMConfiguration::MethodConfiguration partialSecureContextWind owExposedMethodMethodConfiguration = {"partialSecureContextWindowExposedMethod", TestInterfaceImplementationV8Internal::partialSecureContextWindowExposedMethodM ethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMCon figuration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2942 const V8DOMConfiguration::MethodConfiguration partialSecureContextWind owExposedMethodMethodConfiguration = {"partialSecureContextWindowExposedMethod", TestInterfaceImplementationV8Internal::partialSecureContextWindowExposedMethodM ethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigurati on::CheckHolder};
3011 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, partialSecureContextWindowExpo sedMethodMethodConfiguration); 2943 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, partialSecureContextWindowExpo sedMethodMethodConfiguration);
3012 } 2944 }
3013 } 2945 }
3014 if (executionContext && (executionContext->isSecureContext())) { 2946 if (executionContext && (executionContext->isSecureContext())) {
3015 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2947 if (executionContext && (executionContext->isWorkerGlobalScope())) {
3016 const V8DOMConfiguration::MethodConfiguration partialSecureContextWork erExposedMethodMethodConfiguration = {"partialSecureContextWorkerExposedMethod", TestInterfaceImplementationV8Internal::partialSecureContextWorkerExposedMethodM ethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMCon figuration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2948 const V8DOMConfiguration::MethodConfiguration partialSecureContextWork erExposedMethodMethodConfiguration = {"partialSecureContextWorkerExposedMethod", TestInterfaceImplementationV8Internal::partialSecureContextWorkerExposedMethodM ethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigurati on::CheckHolder};
3017 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, partialSecureContextWorkerExpo sedMethodMethodConfiguration); 2949 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, partialSecureContextWorkerExpo sedMethodMethodConfiguration);
3018 } 2950 }
3019 } 2951 }
3020 if (executionContext && (executionContext->isSecureContext())) { 2952 if (executionContext && (executionContext->isSecureContext())) {
3021 if (executionContext && (executionContext->isDocument())) { 2953 if (executionContext && (executionContext->isDocument())) {
3022 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2954 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
3023 const V8DOMConfiguration::MethodConfiguration partialSecureContext WindowExposedRuntimeEnabledMethodMethodConfiguration = {"partialSecureContextWin dowExposedRuntimeEnabledMethod", TestInterfaceImplementationV8Internal::partialS ecureContextWindowExposedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConf iguration::CheckHolder}; 2955 const V8DOMConfiguration::MethodConfiguration partialSecureContext WindowExposedRuntimeEnabledMethodMethodConfiguration = {"partialSecureContextWin dowExposedRuntimeEnabledMethod", TestInterfaceImplementationV8Internal::partialS ecureContextWindowExposedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8D OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
3024 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob ject>(), prototypeObject, interfaceObject, signature, partialSecureContextWindow ExposedRuntimeEnabledMethodMethodConfiguration); 2956 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob ject>(), prototypeObject, interfaceObject, signature, partialSecureContextWindow ExposedRuntimeEnabledMethodMethodConfiguration);
3025 } 2957 }
3026 } 2958 }
3027 } 2959 }
3028 if (executionContext && (executionContext->isSecureContext())) { 2960 if (executionContext && (executionContext->isSecureContext())) {
3029 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2961 if (executionContext && (executionContext->isWorkerGlobalScope())) {
3030 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2962 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
3031 const V8DOMConfiguration::MethodConfiguration partialSecureContext WorkerExposedRuntimeEnabledMethodMethodConfiguration = {"partialSecureContextWor kerExposedRuntimeEnabledMethod", TestInterfaceImplementationV8Internal::partialS ecureContextWorkerExposedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConf iguration::CheckHolder}; 2963 const V8DOMConfiguration::MethodConfiguration partialSecureContext WorkerExposedRuntimeEnabledMethodMethodConfiguration = {"partialSecureContextWor kerExposedRuntimeEnabledMethod", TestInterfaceImplementationV8Internal::partialS ecureContextWorkerExposedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8D OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
3032 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob ject>(), prototypeObject, interfaceObject, signature, partialSecureContextWorker ExposedRuntimeEnabledMethodMethodConfiguration); 2964 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Ob ject>(), prototypeObject, interfaceObject, signature, partialSecureContextWorker ExposedRuntimeEnabledMethodMethodConfiguration);
3033 } 2965 }
3034 } 2966 }
3035 } 2967 }
3036 } 2968 }
3037 2969
3038 bool V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplementedInPr ivateScriptMethod(LocalFrame* frame, TestInterface* holderImpl, int value, int* result) {
3039 if (!frame)
3040 return false;
3041 v8::HandleScope handleScope(toIsolate(frame));
3042 ScriptForbiddenScope::AllowUserAgentScript script;
3043 ScriptState* scriptState = ScriptState::forWorld(frame, DOMWrapperWorld::priva teScriptIsolatedWorld());
3044 if (!scriptState)
3045 return false;
3046 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
3047 if (!scriptStateInUserScript)
3048 return false;
3049
3050 ScriptState::Scope scope(scriptState);
3051 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Global( ), scriptState->isolate());
3052 v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(), va lue);
3053 v8::Local<v8::Value> argv[] = { valueHandle };
3054 ExceptionState exceptionState(scriptState->isolate(), ExceptionState::Executio nContext, "TestInterfaceImplementation", "shortMethodWithShortArgumentImplemente dInPrivateScript");
3055 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState, scriptStateInUserScript, "TestInterfaceImplementation", "shortMethodWithShortArg umentImplementedInPrivateScript", holder, 1, argv);
3056 if (v8Value.IsEmpty())
3057 return false;
3058 int cppValue = toInt16(scriptState->isolate(), v8Value, NormalConversion, exce ptionState);
3059 if (exceptionState.hadException())
3060 return false;
3061 *result = cppValue;
3062 CHECK(!exceptionState.hadException());
3063 return true;
3064 }
3065
3066 bool V8TestInterface::PrivateScript::stringAttributeAttributeGetter(LocalFrame* frame, TestInterfaceImplementation* holderImpl, String* result) {
3067 if (!frame)
3068 return false;
3069 v8::HandleScope handleScope(toIsolate(frame));
3070 ScriptForbiddenScope::AllowUserAgentScript script;
3071 ScriptState* scriptState = ScriptState::forWorld(frame, DOMWrapperWorld::priva teScriptIsolatedWorld());
3072 if (!scriptState)
3073 return false;
3074 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
3075 if (!scriptStateInUserScript)
3076 return false;
3077
3078 ScriptState::Scope scope(scriptState);
3079 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Global( ), scriptState->isolate());
3080 ExceptionState exceptionState(scriptState->isolate(), ExceptionState::GetterCo ntext, "TestInterfaceImplementation", "stringAttribute");
3081 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(scri ptState, scriptStateInUserScript, "TestInterfaceImplementation", "stringAttribut e", holder);
3082 if (v8Value.IsEmpty())
3083 return false;
3084 V8StringResource<> cppValue = v8Value;
3085 if (!cppValue.prepare())
3086 return false;
3087 CHECK(!exceptionState.hadException());
3088 *result = cppValue;
3089 return true;
3090 }
3091
3092 bool V8TestInterface::PrivateScript::stringAttributeAttributeSetter(LocalFrame* frame, TestInterfaceImplementation* holderImpl, String cppValue) {
3093 if (!frame)
3094 return false;
3095 v8::HandleScope handleScope(toIsolate(frame));
3096 ScriptForbiddenScope::AllowUserAgentScript script;
3097 ScriptState* scriptState = ScriptState::forWorld(frame, DOMWrapperWorld::priva teScriptIsolatedWorld());
3098 if (!scriptState)
3099 return false;
3100 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
3101 if (!scriptStateInUserScript)
3102 return false;
3103
3104 ScriptState::Scope scope(scriptState);
3105 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Global( ), scriptState->isolate());
3106 ExceptionState exceptionState(scriptState->isolate(), ExceptionState::SetterCo ntext, "TestInterfaceImplementation", "stringAttribute");
3107 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateInUs erScript, "TestInterfaceImplementation", "stringAttribute", holder, v8String(scr iptState->isolate(), cppValue));
3108 }
3109
3110 InstallTemplateFunction V8TestInterface::installV8TestInterfaceTemplateFunction = (InstallTemplateFunction)&V8TestInterface::installV8TestInterfaceTemplate; 2970 InstallTemplateFunction V8TestInterface::installV8TestInterfaceTemplateFunction = (InstallTemplateFunction)&V8TestInterface::installV8TestInterfaceTemplate;
3111 2971
3112 void V8TestInterface::updateWrapperTypeInfo(InstallTemplateFunction installTempl ateFunction, PreparePrototypeAndInterfaceObjectFunction preparePrototypeAndInter faceObjectFunction) { 2972 void V8TestInterface::updateWrapperTypeInfo(InstallTemplateFunction installTempl ateFunction, PreparePrototypeAndInterfaceObjectFunction preparePrototypeAndInter faceObjectFunction) {
3113 V8TestInterface::installV8TestInterfaceTemplateFunction = installTemplateFunct ion; 2973 V8TestInterface::installV8TestInterfaceTemplateFunction = installTemplateFunct ion;
3114 if (preparePrototypeAndInterfaceObjectFunction) 2974 if (preparePrototypeAndInterfaceObjectFunction)
3115 V8TestInterface::wrapperTypeInfo.preparePrototypeAndInterfaceObjectFunction = preparePrototypeAndInterfaceObjectFunction; 2975 V8TestInterface::wrapperTypeInfo.preparePrototypeAndInterfaceObjectFunction = preparePrototypeAndInterfaceObjectFunction;
3116 } 2976 }
3117 2977
3118 void V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface (void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { 2978 void V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface (void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) {
3119 TestInterfaceImplementationV8Internal::voidMethodPartialOverloadMethodForParti alInterface = method; 2979 TestInterfaceImplementationV8Internal::voidMethodPartialOverloadMethodForParti alInterface = method;
(...skipping 13 matching lines...) Expand all
3133 2993
3134 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) { 2994 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) {
3135 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInter face = method; 2995 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInter face = method;
3136 } 2996 }
3137 2997
3138 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { 2998 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) {
3139 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPartia lInterface = method; 2999 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPartia lInterface = method;
3140 } 3000 }
3141 3001
3142 } // namespace blink 3002 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698