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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfig
uration = {"partial4VoidMethod", TestInterfaceImplementationPartialV8Internal::p
artial4VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype}; | 407 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfig
uration = {"partial4VoidMethod", TestInterfaceImplementationPartialV8Internal::p
artial4VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype}; |
408 V8DOMConfiguration::installMethod(scriptState->isolate(), scriptState->world
(), instance, prototype, interface, signature, methodPartial4VoidmethodConfigura
tion); | 408 V8DOMConfiguration::installMethod(scriptState->isolate(), scriptState->world
(), instance, prototype, interface, signature, methodPartial4VoidmethodConfigura
tion); |
409 } | 409 } |
410 | 410 |
411 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip
tState) | 411 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip
tState) |
412 { | 412 { |
413 installOriginTrialPartialFeature(scriptState, v8::Local<v8::Object>()); | 413 installOriginTrialPartialFeature(scriptState, v8::Local<v8::Object>()); |
414 } | 414 } |
415 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) | 415 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) |
416 { | 416 { |
| 417 #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> |
417 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototyp
eObject, interfaceObject, interfaceTemplate); | 418 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototyp
eObject, interfaceObject, interfaceTemplate); |
418 v8::Isolate* isolate = context->GetIsolate(); | 419 v8::Isolate* isolate = context->GetIsolate(); |
419 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); | 420 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); |
420 v8::Local<v8::Object> unscopeables; | 421 v8::Local<v8::Object> unscopeables; |
421 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol
))) | 422 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol
))) |
422 unscopeables = prototypeObject->Get(context, unscopablesSymbol).ToLocalC
hecked().As<v8::Object>(); | 423 unscopeables = prototypeObject->Get(context, unscopablesSymbol).ToLocalC
hecked().As<v8::Object>(); |
423 else | 424 else |
424 unscopeables = v8::Object::New(isolate); | 425 unscopeables = v8::Object::New(isolate); |
425 unscopeables->CreateDataProperty(context, v8AtomicString(isolate, "unscopeab
leVoidMethod"), v8::True(isolate)).FromJust(); | 426 unscopeables->CreateDataProperty(context, v8AtomicString(isolate, "unscopeab
leVoidMethod"), v8::True(isolate)).FromJust(); |
426 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopeables
).FromJust(); | 427 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopeables
).FromJust(); |
427 } | 428 } |
428 | 429 |
429 void V8TestInterfacePartial::initialize() | 430 void V8TestInterfacePartial::initialize() |
430 { | 431 { |
431 // Should be invoked from ModulesInitializer. | 432 // Should be invoked from ModulesInitializer. |
432 V8TestInterface::updateWrapperTypeInfo( | 433 V8TestInterface::updateWrapperTypeInfo( |
433 &V8TestInterfacePartial::installV8TestInterfaceTemplate, | 434 &V8TestInterfacePartial::installV8TestInterfaceTemplate, |
434 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 435 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
435 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 436 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
436 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); | 437 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); |
437 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); | 438 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); |
438 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); | 439 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); |
439 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 440 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
440 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 441 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
441 } | 442 } |
442 | 443 |
443 } // namespace blink | 444 } // namespace blink |
OLD | NEW |