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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 ALLOW_UNUSED_LOCAL(interface); | 425 ALLOW_UNUSED_LOCAL(interface); |
426 installOriginTrialPartialFeature(scriptState->isolate(), scriptState->world(),
instance, prototype, interface); | 426 installOriginTrialPartialFeature(scriptState->isolate(), scriptState->world(),
instance, prototype, interface); |
427 } | 427 } |
428 | 428 |
429 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip
tState) { | 429 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip
tState) { |
430 installOriginTrialPartialFeature(scriptState, v8::Local<v8::Object>()); | 430 installOriginTrialPartialFeature(scriptState, v8::Local<v8::Object>()); |
431 } | 431 } |
432 | 432 |
433 void V8TestInterfacePartial::preparePrototypeAndInterfaceObject(v8::Local<v8::Co
ntext> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObj
ect, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> in
terfaceTemplate) { | 433 void V8TestInterfacePartial::preparePrototypeAndInterfaceObject(v8::Local<v8::Co
ntext> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObj
ect, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> in
terfaceTemplate) { |
434 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototypeO
bject, interfaceObject, interfaceTemplate); | 434 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototypeO
bject, interfaceObject, interfaceTemplate); |
| 435 |
435 v8::Isolate* isolate = context->GetIsolate(); | 436 v8::Isolate* isolate = context->GetIsolate(); |
436 | 437 |
437 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); | 438 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); |
438 v8::Local<v8::Object> unscopables; | 439 v8::Local<v8::Object> unscopables; |
439 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol))
) | 440 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol))
) |
440 unscopables = prototypeObject->Get(context, unscopablesSymbol).ToLocalChecke
d().As<v8::Object>(); | 441 unscopables = prototypeObject->Get(context, unscopablesSymbol).ToLocalChecke
d().As<v8::Object>(); |
441 else | 442 else |
442 unscopables = v8::Object::New(isolate); | 443 unscopables = v8::Object::New(isolate); |
443 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo
idMethod"), v8::True(isolate)).FromJust(); | 444 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo
idMethod"), v8::True(isolate)).FromJust(); |
444 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F
romJust(); | 445 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F
romJust(); |
445 } | 446 } |
446 | 447 |
447 void V8TestInterfacePartial::initialize() { | 448 void V8TestInterfacePartial::initialize() { |
448 // Should be invoked from ModulesInitializer. | 449 // Should be invoked from ModulesInitializer. |
449 V8TestInterface::updateWrapperTypeInfo( | 450 V8TestInterface::updateWrapperTypeInfo( |
450 &V8TestInterfacePartial::installV8TestInterfaceTemplate, | 451 &V8TestInterfacePartial::installV8TestInterfaceTemplate, |
451 nullptr, | 452 nullptr, |
452 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 453 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
453 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 454 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
454 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); | 455 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); |
455 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); | 456 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); |
456 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); | 457 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); |
457 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 458 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
458 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 459 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
459 } | 460 } |
460 | 461 |
461 } // namespace blink | 462 } // namespace blink |
OLD | NEW |