| 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 "V8TestInterfacePartial.h" | 7 #include "V8TestInterfacePartial.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 10 #include "bindings/core/v8/PrivateScriptRunner.h" | 10 #include "bindings/core/v8/PrivateScriptRunner.h" |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 } // namespace TestInterfaceImplementationPartialV8Internal | 308 } // namespace TestInterfaceImplementationPartialV8Internal |
| 309 | 309 |
| 310 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { | 310 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { |
| 311 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8
Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, | 311 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8
Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
| 312 {"unscopeableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsc
opeableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype}, | 312 {"unscopeableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsc
opeableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype}, |
| 313 }; | 313 }; |
| 314 | 314 |
| 315 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Local<v8::Functi
onTemplate> interfaceTemplate, v8::Isolate* isolate) | 315 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Local<v8::Functi
onTemplate> interfaceTemplate, v8::Isolate* isolate) |
| 316 { | 316 { |
| 317 // Initialize the interface object's template. | 317 // Initialize the interface object's template. |
| 318 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); |
| 319 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->Instance
Template(); |
| 320 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototy
peTemplate(); |
| 318 V8TestInterface::installV8TestInterfaceTemplate(interfaceTemplate, isolate); | 321 V8TestInterface::installV8TestInterfaceTemplate(interfaceTemplate, isolate); |
| 319 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); | 322 V8DOMConfiguration::installProperties(isolate, instanceTemplate, prototypeTe
mplate, interfaceTemplate, signature, nullptr, 0, nullptr, 0, V8TestInterfaceMet
hods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods)); |
| 320 ALLOW_UNUSED_LOCAL(signature); | |
| 321 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->Instance
Template(); | |
| 322 ALLOW_UNUSED_LOCAL(instanceTemplate); | |
| 323 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototy
peTemplate(); | |
| 324 ALLOW_UNUSED_LOCAL(prototypeTemplate); | |
| 325 // Register DOM constants, attributes and operations. | |
| 326 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] =
{ | 323 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] =
{ |
| 327 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsign
edShort}, | 324 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsign
edShort}, |
| 328 }; | 325 }; |
| 329 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototypeTe
mplate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); | 326 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototypeTe
mplate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); |
| 330 V8DOMConfiguration::installMethods(isolate, instanceTemplate, prototypeTempl
ate, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8Te
stInterfaceMethods)); | |
| 331 | 327 |
| 332 instanceTemplate->SetCallAsFunctionHandler(V8TestInterface::legacyCallCustom
); | 328 instanceTemplate->SetCallAsFunctionHandler(V8TestInterface::legacyCallCustom
); |
| 333 } | 329 } |
| 334 | 330 |
| 335 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) | 331 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) |
| 336 { | 332 { |
| 337 V8TestInterface::preparePrototypeAndInterfaceObject(context, prototypeObject
, interfaceObject, interfaceTemplate); | 333 V8TestInterface::preparePrototypeAndInterfaceObject(context, prototypeObject
, interfaceObject, interfaceTemplate); |
| 338 v8::Isolate* isolate = context->GetIsolate(); | 334 v8::Isolate* isolate = context->GetIsolate(); |
| 339 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); | 335 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); |
| 340 v8::Local<v8::Object> unscopeables; | 336 v8::Local<v8::Object> unscopeables; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 354 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 350 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
| 355 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 351 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 356 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); | 352 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); |
| 357 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); | 353 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); |
| 358 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); | 354 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); |
| 359 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 355 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 360 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 356 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 361 } | 357 } |
| 362 | 358 |
| 363 } // namespace blink | 359 } // namespace blink |
| OLD | NEW |