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 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Test
Interface::wrapperTypeInfo); | 422 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Test
Interface::wrapperTypeInfo); |
423 ALLOW_UNUSED_LOCAL(interface); | 423 ALLOW_UNUSED_LOCAL(interface); |
424 installOriginTrialPartialFeature(scriptState->isolate(), scriptState->world(),
instance, prototype, interface); | 424 installOriginTrialPartialFeature(scriptState->isolate(), scriptState->world(),
instance, prototype, interface); |
425 } | 425 } |
426 | 426 |
427 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip
tState) { | 427 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip
tState) { |
428 installOriginTrialPartialFeature(scriptState, v8::Local<v8::Object>()); | 428 installOriginTrialPartialFeature(scriptState, v8::Local<v8::Object>()); |
429 } | 429 } |
430 | 430 |
431 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) { | 431 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) { |
432 #error No one is currently using a partial interface with context-dependent prop
erties. If you\'re planning to use it, please consult with the binding team: <b
link-reviews-bindings@chromium.org> | |
433 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototypeO
bject, interfaceObject, interfaceTemplate); | 432 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototypeO
bject, interfaceObject, interfaceTemplate); |
434 v8::Isolate* isolate = context->GetIsolate(); | 433 v8::Isolate* isolate = context->GetIsolate(); |
435 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); | 434 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); |
436 v8::Local<v8::Object> unscopables; | 435 v8::Local<v8::Object> unscopables; |
437 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol))
) | 436 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol))
) |
438 unscopables = prototypeObject->Get(context, unscopablesSymbol).ToLocalChecke
d().As<v8::Object>(); | 437 unscopables = prototypeObject->Get(context, unscopablesSymbol).ToLocalChecke
d().As<v8::Object>(); |
439 else | 438 else |
440 unscopables = v8::Object::New(isolate); | 439 unscopables = v8::Object::New(isolate); |
441 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo
idMethod"), v8::True(isolate)).FromJust(); | 440 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo
idMethod"), v8::True(isolate)).FromJust(); |
442 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F
romJust(); | 441 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F
romJust(); |
443 } | 442 } |
444 | 443 |
445 void V8TestInterfacePartial::initialize() { | 444 void V8TestInterfacePartial::initialize() { |
446 // Should be invoked from ModulesInitializer. | 445 // Should be invoked from ModulesInitializer. |
447 V8TestInterface::updateWrapperTypeInfo( | 446 V8TestInterface::updateWrapperTypeInfo( |
448 &V8TestInterfacePartial::installV8TestInterfaceTemplate, | 447 &V8TestInterfacePartial::installV8TestInterfaceTemplate, |
449 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 448 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
450 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 449 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
451 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); | 450 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); |
452 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); | 451 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); |
453 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); | 452 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); |
454 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 453 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
455 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 454 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
456 } | 455 } |
457 | 456 |
458 } // namespace blink | 457 } // namespace blink |
OLD | NEW |