| 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 v8::Isolate* isolate = context->GetIsolate(); | 435 v8::Isolate* isolate = context->GetIsolate(); |
| 436 |
| 436 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); | 437 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); |
| 437 v8::Local<v8::Object> unscopables; | 438 v8::Local<v8::Object> unscopables; |
| 438 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol))
) | 439 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol))
) |
| 439 unscopables = prototypeObject->Get(context, unscopablesSymbol).ToLocalChecke
d().As<v8::Object>(); | 440 unscopables = prototypeObject->Get(context, unscopablesSymbol).ToLocalChecke
d().As<v8::Object>(); |
| 440 else | 441 else |
| 441 unscopables = v8::Object::New(isolate); | 442 unscopables = v8::Object::New(isolate); |
| 442 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo
idMethod"), v8::True(isolate)).FromJust(); | 443 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo
idMethod"), v8::True(isolate)).FromJust(); |
| 443 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F
romJust(); | 444 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F
romJust(); |
| 444 } | 445 } |
| 445 | 446 |
| 446 void V8TestInterfacePartial::initialize() { | 447 void V8TestInterfacePartial::initialize() { |
| 447 // Should be invoked from ModulesInitializer. | 448 // Should be invoked from ModulesInitializer. |
| 448 V8TestInterface::updateWrapperTypeInfo( | 449 V8TestInterface::updateWrapperTypeInfo( |
| 449 &V8TestInterfacePartial::installV8TestInterfaceTemplate, | 450 &V8TestInterfacePartial::installV8TestInterfaceTemplate, |
| 450 nullptr, | 451 nullptr, |
| 451 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 452 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
| 452 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 453 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 453 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); | 454 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); |
| 454 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); | 455 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); |
| 455 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); | 456 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); |
| 456 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 457 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 457 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 458 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 458 } | 459 } |
| 459 | 460 |
| 460 } // namespace blink | 461 } // namespace blink |
| OLD | NEW |