| 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 { | 310 { |
| 311 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 311 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 312 TestInterfacePartial3Implementation::unscopeableVoidMethod(*impl); | 312 TestInterfacePartial3Implementation::unscopeableVoidMethod(*impl); |
| 313 } | 313 } |
| 314 | 314 |
| 315 static void unscopeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 315 static void unscopeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 316 { | 316 { |
| 317 TestInterfaceImplementationPartialV8Internal::unscopeableVoidMethodMethod(in
fo); | 317 TestInterfaceImplementationPartialV8Internal::unscopeableVoidMethodMethod(in
fo); |
| 318 } | 318 } |
| 319 | 319 |
| 320 static void partial4VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 321 { |
| 322 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 323 TestInterfacePartial4::partial4VoidMethod(*impl); |
| 324 } |
| 325 |
| 326 static void partial4VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 327 { |
| 328 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info)
; |
| 329 } |
| 330 |
| 320 } // namespace TestInterfaceImplementationPartialV8Internal | 331 } // namespace TestInterfaceImplementationPartialV8Internal |
| 321 | 332 |
| 322 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { | 333 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { |
| 323 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8
Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, | 334 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8
Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
| 324 {"unscopeableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsc
opeableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype}, | 335 {"unscopeableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsc
opeableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype}, |
| 325 }; | 336 }; |
| 326 | 337 |
| 327 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate
, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat
e) | 338 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate
, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat
e) |
| 328 { | 339 { |
| 329 // Initialize the interface object's template. | 340 // Initialize the interface object's template. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 341 }; | 352 }; |
| 342 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototy
peTemplate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)
); | 353 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototy
peTemplate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)
); |
| 343 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, pro
totypeTemplate, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_
LENGTH(V8TestInterfaceMethods)); | 354 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, pro
totypeTemplate, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_
LENGTH(V8TestInterfaceMethods)); |
| 344 } | 355 } |
| 345 } | 356 } |
| 346 | 357 |
| 347 | 358 |
| 348 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip
tState, v8::Local<v8::Object> instance) | 359 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip
tState, v8::Local<v8::Object> instance) |
| 349 { | 360 { |
| 350 v8::Local<v8::Object> prototype = instance->GetPrototype()->ToObject(scriptS
tate->isolate()); | 361 v8::Local<v8::Object> prototype = instance->GetPrototype()->ToObject(scriptS
tate->isolate()); |
| 362 |
| 351 V8PerIsolateData* perIsolateData = V8PerIsolateData::from(scriptState->isola
te()); | 363 V8PerIsolateData* perIsolateData = V8PerIsolateData::from(scriptState->isola
te()); |
| 352 v8::Local<v8::FunctionTemplate> interfaceTemplate = perIsolateData->findInte
rfaceTemplate(scriptState->world(), &V8TestInterface::wrapperTypeInfo); | 364 v8::Local<v8::FunctionTemplate> interfaceTemplate = perIsolateData->findInte
rfaceTemplate(scriptState->world(), &V8TestInterface::wrapperTypeInfo); |
| 353 v8::Local<v8::Signature> signature = v8::Signature::New(scriptState->isolate
(), interfaceTemplate); | 365 v8::Local<v8::Signature> signature = v8::Signature::New(scriptState->isolate
(), interfaceTemplate); |
| 354 ALLOW_UNUSED_LOCAL(signature); | 366 ALLOW_UNUSED_LOCAL(signature); |
| 367 V8PerContextData* perContextData = V8PerContextData::from(scriptState->conte
xt()); |
| 368 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Te
stInterface::wrapperTypeInfo); |
| 355 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttribut
eConfiguration = \ | 369 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttribut
eConfiguration = \ |
| 356 {"partial4LongAttribute", TestInterfaceImplementationPartialV8Internal::
partial4LongAttributeAttributeGetterCallback, TestInterfaceImplementationPartial
V8Internal::partial4LongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 370 {"partial4LongAttribute", TestInterfaceImplementationPartialV8Internal::
partial4LongAttributeAttributeGetterCallback, TestInterfaceImplementationPartial
V8Internal::partial4LongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
| 357 V8DOMConfiguration::installAccessor(scriptState->isolate(), scriptState->wor
ld(), instance, prototype, v8::Local<v8::Function>(), signature, accessorpartial
4LongAttributeConfiguration); | 371 V8DOMConfiguration::installAccessor(scriptState->isolate(), scriptState->wor
ld(), instance, prototype, v8::Local<v8::Function>(), signature, accessorpartial
4LongAttributeConfiguration); |
| 358 | |
| 359 V8PerContextData* perContextData = V8PerContextData::from(scriptState->conte
xt()); | |
| 360 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Te
stInterface::wrapperTypeInfo); | |
| 361 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShor
tConfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantT
ypeUnsignedShort}; | 372 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShor
tConfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantT
ypeUnsignedShort}; |
| 362 V8DOMConfiguration::installConstant(scriptState->isolate(), interface, proto
type, constantPartial4UnsignedShortConfiguration); | 373 V8DOMConfiguration::installConstant(scriptState->isolate(), interface, proto
type, constantPartial4UnsignedShortConfiguration); |
| 374 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfig
uration = {"partial4VoidMethod", TestInterfaceImplementationPartialV8Internal::p
artial4VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype}; |
| 375 V8DOMConfiguration::installMethod(scriptState->isolate(), scriptState->world
(), instance, prototype, interface, signature, methodPartial4VoidmethodConfigura
tion); |
| 363 } | 376 } |
| 364 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) | 377 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) |
| 365 { | 378 { |
| 366 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototyp
eObject, interfaceObject, interfaceTemplate); | 379 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototyp
eObject, interfaceObject, interfaceTemplate); |
| 367 v8::Isolate* isolate = context->GetIsolate(); | 380 v8::Isolate* isolate = context->GetIsolate(); |
| 368 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); | 381 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); |
| 369 v8::Local<v8::Object> unscopeables; | 382 v8::Local<v8::Object> unscopeables; |
| 370 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol
))) | 383 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol
))) |
| 371 unscopeables = prototypeObject->Get(context, unscopablesSymbol).ToLocalC
hecked().As<v8::Object>(); | 384 unscopeables = prototypeObject->Get(context, unscopablesSymbol).ToLocalC
hecked().As<v8::Object>(); |
| 372 else | 385 else |
| (...skipping 10 matching lines...) Expand all Loading... |
| 383 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 396 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
| 384 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 397 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 385 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); | 398 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); |
| 386 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); | 399 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); |
| 387 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); | 400 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); |
| 388 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 401 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 389 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 402 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 390 } | 403 } |
| 391 | 404 |
| 392 } // namespace blink | 405 } // namespace blink |
| OLD | NEW |