| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file has been auto-generated by code_generator_v8.py. | 5 // This file has been auto-generated by code_generator_v8.py. |
| 6 // DO NOT MODIFY! | 6 // DO NOT MODIFY! |
| 7 | 7 |
| 8 // This file has been generated from the Jinja2 template in | 8 // This file has been generated from the Jinja2 template in |
| 9 // third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl |
| 10 | 10 |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i
nfo); | 422 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i
nfo); |
| 423 } | 423 } |
| 424 | 424 |
| 425 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] =
{ | 425 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] =
{ |
| 426 {"partialVoidTestEnumModulesArgMethod", V8TestInterfacePartial::partialVoidT
estEnumModulesArgMethodMethodCallback, 1, v8::None, V8DOMConfiguration::kOnProto
type, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V
8DOMConfiguration::kAllWorlds}, | 426 {"partialVoidTestEnumModulesArgMethod", V8TestInterfacePartial::partialVoidT
estEnumModulesArgMethodMethodCallback, 1, v8::None, V8DOMConfiguration::kOnProto
type, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V
8DOMConfiguration::kAllWorlds}, |
| 427 {"partial2VoidTestEnumModulesRecordMethod", V8TestInterfacePartial::partial2
VoidTestEnumModulesRecordMethodMethodCallback, 1, v8::None, V8DOMConfiguration::
kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckA
ccess, V8DOMConfiguration::kAllWorlds}, | 427 {"partial2VoidTestEnumModulesRecordMethod", V8TestInterfacePartial::partial2
VoidTestEnumModulesRecordMethodMethodCallback, 1, v8::None, V8DOMConfiguration::
kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckA
ccess, V8DOMConfiguration::kAllWorlds}, |
| 428 {"unscopableVoidMethod", V8TestInterfacePartial::unscopableVoidMethodMethodC
allback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kChe
ckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWorlds}
, | 428 {"unscopableVoidMethod", V8TestInterfacePartial::unscopableVoidMethodMethodC
allback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kChe
ckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWorlds}
, |
| 429 {"unionWithTypedefMethod", V8TestInterfacePartial::unionWithTypedefMethodMet
hodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::
kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWor
lds}, | 429 {"unionWithTypedefMethod", V8TestInterfacePartial::unionWithTypedefMethodMet
hodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::
kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWor
lds}, |
| 430 }; | 430 }; |
| 431 | 431 |
| 432 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate
, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat
e) { | 432 void V8TestInterfacePartial::installV8TestInterfaceTemplate( |
| 433 v8::Isolate* isolate, |
| 434 const DOMWrapperWorld& world, |
| 435 v8::Local<v8::FunctionTemplate> interfaceTemplate) { |
| 433 // Initialize the interface object's template. | 436 // Initialize the interface object's template. |
| 434 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl
ate); | 437 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl
ate); |
| 435 | 438 |
| 436 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 439 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
| 437 ALLOW_UNUSED_LOCAL(signature); | 440 ALLOW_UNUSED_LOCAL(signature); |
| 438 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 441 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
| 439 ALLOW_UNUSED_LOCAL(instanceTemplate); | 442 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 440 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); | 443 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); |
| 441 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 444 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 442 | 445 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 unscopables = v8::Object::New(isolate); | 504 unscopables = v8::Object::New(isolate); |
| 502 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopableVo
idMethod"), v8::True(isolate)).FromJust(); | 505 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopableVo
idMethod"), v8::True(isolate)).FromJust(); |
| 503 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F
romJust(); | 506 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F
romJust(); |
| 504 } | 507 } |
| 505 | 508 |
| 506 void V8TestInterfacePartial::initialize() { | 509 void V8TestInterfacePartial::initialize() { |
| 507 // Should be invoked from ModulesInitializer. | 510 // Should be invoked from ModulesInitializer. |
| 508 V8TestInterface::updateWrapperTypeInfo( | 511 V8TestInterface::updateWrapperTypeInfo( |
| 509 &V8TestInterfacePartial::installV8TestInterfaceTemplate, | 512 &V8TestInterfacePartial::installV8TestInterfaceTemplate, |
| 510 nullptr, | 513 nullptr, |
| 514 nullptr, |
| 511 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 515 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
| 512 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 516 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 513 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); | 517 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); |
| 514 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); | 518 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); |
| 515 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); | 519 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); |
| 516 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 520 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 517 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 521 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 518 } | 522 } |
| 519 | 523 |
| 520 } // namespace blink | 524 } // namespace blink |
| OLD | NEW |