| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 TestInterfaceImplementationPartialV8Internal::unscopeableVoidMethodMethod(in
fo); | 305 TestInterfaceImplementationPartialV8Internal::unscopeableVoidMethodMethod(in
fo); |
| 306 } | 306 } |
| 307 | 307 |
| 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> functionTemplate, v8::Isolate* isolate) | 315 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Local<v8::Functi
onTemplate> interfaceTemplate, v8::Isolate* isolate) |
| 316 { | 316 { |
| 317 V8TestInterface::installV8TestInterfaceTemplate(functionTemplate, isolate); | 317 // Initialize the interface object's template. |
| 318 | 318 V8TestInterface::installV8TestInterfaceTemplate(interfaceTemplate, isolate); |
| 319 v8::Local<v8::Signature> defaultSignature; | 319 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); |
| 320 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, V8TestInterface::wrapperTypeInfo.interfaceName, v8::Local<v8::Func
tionTemplate>(), V8TestInterface::internalFieldCount, | 320 ALLOW_UNUSED_LOCAL(signature); |
| 321 0, 0, | 321 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->Instance
Template(); |
| 322 0, 0, | |
| 323 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods)); | |
| 324 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | |
| 325 ALLOW_UNUSED_LOCAL(instanceTemplate); | 322 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 326 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 323 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototy
peTemplate(); |
| 327 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 324 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 325 // Register DOM constants, attributes and operations. |
| 328 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] =
{ | 326 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] =
{ |
| 329 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsign
edShort}, | 327 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsign
edShort}, |
| 330 }; | 328 }; |
| 331 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); | 329 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototypeTe
mplate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); |
| 332 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce::legacyCallCustom); | 330 V8DOMConfiguration::installMethods(isolate, instanceTemplate, prototypeTempl
ate, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8Te
stInterfaceMethods)); |
| 331 |
| 332 instanceTemplate->SetCallAsFunctionHandler(V8TestInterface::legacyCallCustom
); |
| 333 } | 333 } |
| 334 | 334 |
| 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) | 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) |
| 336 { | 336 { |
| 337 V8TestInterface::preparePrototypeAndInterfaceObject(context, prototypeObject
, interfaceObject, interfaceTemplate); | 337 V8TestInterface::preparePrototypeAndInterfaceObject(context, prototypeObject
, interfaceObject, interfaceTemplate); |
| 338 v8::Isolate* isolate = context->GetIsolate(); | 338 v8::Isolate* isolate = context->GetIsolate(); |
| 339 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); | 339 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); |
| 340 v8::Local<v8::Object> unscopeables; | 340 v8::Local<v8::Object> unscopeables; |
| 341 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol
))) | 341 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol
))) |
| 342 unscopeables = prototypeObject->Get(context, unscopablesSymbol).ToLocalC
hecked().As<v8::Object>(); | 342 unscopeables = prototypeObject->Get(context, unscopablesSymbol).ToLocalC
hecked().As<v8::Object>(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 354 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 354 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
| 355 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 355 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 356 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); | 356 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); |
| 357 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); | 357 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); |
| 358 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); | 358 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); |
| 359 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 359 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 360 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 360 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 361 } | 361 } |
| 362 | 362 |
| 363 } // namespace blink | 363 } // namespace blink |
| OLD | NEW |