OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
9 #include "V8TestInterfacePartial.h" | 9 #include "V8TestInterfacePartial.h" |
10 | 10 |
11 #include "bindings/core/v8/ExceptionState.h" | 11 #include "bindings/core/v8/ExceptionState.h" |
12 #include "bindings/core/v8/PrivateScriptRunner.h" | 12 #include "bindings/core/v8/PrivateScriptRunner.h" |
13 #include "bindings/core/v8/ScriptPromise.h" | 13 #include "bindings/core/v8/ScriptPromise.h" |
14 #include "bindings/core/v8/V8DOMConfiguration.h" | 14 #include "bindings/core/v8/V8DOMConfiguration.h" |
15 #include "bindings/core/v8/V8Document.h" | 15 #include "bindings/core/v8/V8Document.h" |
16 #include "bindings/core/v8/V8Node.h" | 16 #include "bindings/core/v8/V8Node.h" |
17 #include "bindings/core/v8/V8ObjectConstructor.h" | 17 #include "bindings/core/v8/V8ObjectConstructor.h" |
18 #include "bindings/core/v8/V8TestInterface.h" | 18 #include "bindings/core/v8/V8TestInterface.h" |
19 #include "bindings/tests/idls/modules/TestPartialInterfaceImplementation3.h" | 19 #include "bindings/tests/idls/modules/TestPartialInterfaceImplementation3.h" |
20 #include "core/dom/ContextFeatures.h" | 20 #include "core/dom/ContextFeatures.h" |
21 #include "core/dom/Document.h" | 21 #include "core/dom/Document.h" |
| 22 #include "core/experiments/Experiments.h" |
22 #include "core/frame/LocalFrame.h" | 23 #include "core/frame/LocalFrame.h" |
23 #include "platform/RuntimeEnabledFeatures.h" | 24 #include "platform/RuntimeEnabledFeatures.h" |
24 #include "platform/ScriptForbiddenScope.h" | 25 #include "platform/ScriptForbiddenScope.h" |
25 #include "platform/TraceEvent.h" | 26 #include "platform/TraceEvent.h" |
26 #include "wtf/GetPtr.h" | 27 #include "wtf/GetPtr.h" |
27 #include "wtf/RefPtr.h" | 28 #include "wtf/RefPtr.h" |
28 | 29 |
29 namespace blink { | 30 namespace blink { |
30 | 31 |
31 namespace TestInterfaceImplementationPartialV8Internal { | 32 namespace TestInterfaceImplementationPartialV8Internal { |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 {"unscopeableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsc
opeableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype}, | 301 {"unscopeableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsc
opeableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype}, |
301 }; | 302 }; |
302 | 303 |
303 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Local<v8::Functi
onTemplate> functionTemplate, v8::Isolate* isolate) | 304 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Local<v8::Functi
onTemplate> functionTemplate, v8::Isolate* isolate) |
304 { | 305 { |
305 V8TestInterface::installV8TestInterfaceTemplate(functionTemplate, isolate); | 306 V8TestInterface::installV8TestInterfaceTemplate(functionTemplate, isolate); |
306 | 307 |
307 v8::Local<v8::Signature> defaultSignature; | 308 v8::Local<v8::Signature> defaultSignature; |
308 if (!RuntimeEnabledFeatures::featureNameEnabled()) | 309 if (!RuntimeEnabledFeatures::featureNameEnabled()) |
309 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate,
functionTemplate, "TestInterface", v8::Local<v8::FunctionTemplate>(), V8TestInte
rface::internalFieldCount, 0, 0, 0, 0, 0, 0); | 310 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate,
functionTemplate, "TestInterface", v8::Local<v8::FunctionTemplate>(), V8TestInte
rface::internalFieldCount, 0, 0, 0, 0, 0, 0); |
310 else | 311 else { |
311 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate,
functionTemplate, "TestInterface", v8::Local<v8::FunctionTemplate>(), V8TestInte
rface::internalFieldCount, | 312 ExecutionContext* ec = currentExecutionContext(isolate); |
312 0, 0, | 313 ALLOW_UNUSED_LOCAL(ec); |
313 0, 0, | 314 if (!Experiments::isApiEnabledWithoutMessage(ec, "ExperimentName")) { |
314 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods)); | 315 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isola
te, functionTemplate, "TestInterface", v8::Local<v8::FunctionTemplate>(), V8Test
Interface::internalFieldCount, 0, 0, 0, 0, 0, 0); |
| 316 } |
| 317 else |
| 318 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isola
te, functionTemplate, "TestInterface", v8::Local<v8::FunctionTemplate>(), V8Test
Interface::internalFieldCount, |
| 319 0, 0, |
| 320 0, 0, |
| 321 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods)
); |
| 322 } |
| 323 |
315 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 324 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
316 ALLOW_UNUSED_LOCAL(instanceTemplate); | 325 ALLOW_UNUSED_LOCAL(instanceTemplate); |
317 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 326 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
318 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 327 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
319 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] =
{ | 328 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] =
{ |
320 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsign
edShort}, | 329 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsign
edShort}, |
321 }; | 330 }; |
322 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); | 331 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); |
| 332 ExecutionContext* ec = currentExecutionContext(isolate); |
| 333 ALLOW_UNUSED_LOCAL(ec); |
323 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce::legacyCallCustom); | 334 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce::legacyCallCustom); |
324 } | 335 } |
325 | 336 |
326 void V8TestInterfacePartial::preparePrototypeAndInterfaceObject(v8::Local<v8::Co
ntext> context, v8::Local<v8::Object> prototypeObject, v8::Local<v8::Function> i
nterfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate) | 337 void V8TestInterfacePartial::preparePrototypeAndInterfaceObject(v8::Local<v8::Co
ntext> context, v8::Local<v8::Object> prototypeObject, v8::Local<v8::Function> i
nterfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate) |
327 { | 338 { |
328 V8TestInterface::preparePrototypeAndInterfaceObject(context, prototypeObject
, interfaceObject, interfaceTemplate); | 339 V8TestInterface::preparePrototypeAndInterfaceObject(context, prototypeObject
, interfaceObject, interfaceTemplate); |
329 v8::Isolate* isolate = context->GetIsolate(); | 340 v8::Isolate* isolate = context->GetIsolate(); |
330 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); | 341 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); |
331 v8::Local<v8::Object> unscopeables; | 342 v8::Local<v8::Object> unscopeables; |
332 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol
))) | 343 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol
))) |
(...skipping 13 matching lines...) Expand all Loading... |
346 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 357 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
347 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); | 358 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); |
348 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); | 359 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); |
349 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); | 360 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); |
350 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 361 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
351 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 362 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
352 } | 363 } |
353 | 364 |
354 } // namespace blink | 365 } // namespace blink |
355 #endif // ENABLE(CONDITION) | 366 #endif // ENABLE(CONDITION) |
OLD | NEW |