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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 } | 382 } |
383 | 383 |
384 void V8TestInterfacePartial::partial4VoidMethodMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) { | 384 void V8TestInterfacePartial::partial4VoidMethodMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) { |
385 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info); | 385 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info); |
386 } | 386 } |
387 | 387 |
388 void V8TestInterfacePartial::partial4StaticVoidMethodMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) { | 388 void V8TestInterfacePartial::partial4StaticVoidMethodMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) { |
389 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i
nfo); | 389 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i
nfo); |
390 } | 390 } |
391 | 391 |
392 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { | 392 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] =
{ |
393 {"partialVoidTestEnumModulesArgMethod", V8TestInterfacePartial::partialVoidT
estEnumModulesArgMethodMethodCallback, 1, v8::None, V8DOMConfiguration::OnProtot
ype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DO
MConfiguration::AllWorlds}, | 393 {"partialVoidTestEnumModulesArgMethod", V8TestInterfacePartial::partialVoidT
estEnumModulesArgMethodMethodCallback, 1, v8::None, V8DOMConfiguration::OnProtot
ype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DO
MConfiguration::AllWorlds}, |
394 {"unscopableVoidMethod", V8TestInterfacePartial::unscopableVoidMethodMethodC
allback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Check
Holder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 394 {"unscopableVoidMethod", V8TestInterfacePartial::unscopableVoidMethodMethodC
allback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Check
Holder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
395 {"unionWithTypedefMethod", V8TestInterfacePartial::unionWithTypedefMethodMet
hodCallback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::C
heckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}
, | 395 {"unionWithTypedefMethod", V8TestInterfacePartial::unionWithTypedefMethodMet
hodCallback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::C
heckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}
, |
396 }; | 396 }; |
397 | 397 |
398 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate
, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat
e) { | 398 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate
, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat
e) { |
399 // Initialize the interface object's template. | 399 // Initialize the interface object's template. |
400 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl
ate); | 400 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl
ate); |
401 | 401 |
402 if (!RuntimeEnabledFeatures::featureNameEnabled()) { | 402 if (!RuntimeEnabledFeatures::featureNameEnabled()) { |
(...skipping 12 matching lines...) Expand all Loading... |
415 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsigned
Short}, | 415 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsigned
Short}, |
416 }; | 416 }; |
417 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototypeTemp
late, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); | 417 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototypeTemp
late, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); |
418 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype
Template, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LENGTH
(V8TestInterfaceMethods)); | 418 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype
Template, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LENGTH
(V8TestInterfaceMethods)); |
419 } | 419 } |
420 | 420 |
421 void V8TestInterfacePartial::installOriginTrialPartialFeature(v8::Isolate* isola
te, const DOMWrapperWorld& world, v8::Local<v8::Object> instance, v8::Local<v8::
Object> prototype, v8::Local<v8::Function> interface) { | 421 void V8TestInterfacePartial::installOriginTrialPartialFeature(v8::Isolate* isola
te, const DOMWrapperWorld& world, v8::Local<v8::Object> instance, v8::Local<v8::
Object> prototype, v8::Local<v8::Function> interface) { |
422 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy
peInfo.domTemplate(isolate, world); | 422 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy
peInfo.domTemplate(isolate, world); |
423 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 423 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
424 ALLOW_UNUSED_LOCAL(signature); | 424 ALLOW_UNUSED_LOCAL(signature); |
425 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttributeC
onfiguration = {"partial4LongAttribute", V8TestInterfacePartial::partial4LongAtt
ributeAttributeGetterCallback, V8TestInterfacePartial::partial4LongAttributeAttr
ibuteSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec
kHolder}; | 425 static const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAtt
ributeConfiguration[] = { |
426 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter
face, signature, accessorpartial4LongAttributeConfiguration); | 426 {"partial4LongAttribute", V8TestInterfacePartial::partial4LongAttributeAttri
buteGetterCallback, V8TestInterfacePartial::partial4LongAttributeAttributeSetter
Callback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMC
onfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::
AllWorlds} |
427 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAttr
ibuteConfiguration = {"partial4StaticLongAttribute", V8TestInterfacePartial::par
tial4StaticLongAttributeAttributeGetterCallback, V8TestInterfacePartial::partial
4StaticLongAttributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnInterface,
V8DOMConfiguration::CheckHolder}; | 427 }; |
428 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter
face, signature, accessorpartial4StaticLongAttributeConfiguration); | 428 for (const auto& accessorConfig : accessorpartial4LongAttributeConfiguration) |
| 429 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, int
erface, signature, accessorConfig); |
| 430 static const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticL
ongAttributeConfiguration[] = { |
| 431 {"partial4StaticLongAttribute", V8TestInterfacePartial::partial4StaticLongAt
tributeAttributeGetterCallback, V8TestInterfacePartial::partial4StaticLongAttrib
uteAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>
(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder, V8
DOMConfiguration::AllWorlds} |
| 432 }; |
| 433 for (const auto& accessorConfig : accessorpartial4StaticLongAttributeConfigura
tion) |
| 434 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, int
erface, signature, accessorConfig); |
429 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShortC
onfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantTyp
eUnsignedShort}; | 435 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShortC
onfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantTyp
eUnsignedShort}; |
430 V8DOMConfiguration::installConstant(isolate, interface, prototype, constantPar
tial4UnsignedShortConfiguration); | 436 V8DOMConfiguration::installConstant(isolate, interface, prototype, constantPar
tial4UnsignedShortConfiguration); |
431 const V8DOMConfiguration::MethodConfiguration methodPartial4StaticvoidmethodCo
nfiguration[] = { | 437 static const V8DOMConfiguration::MethodConfiguration methodPartial4Staticvoidm
ethodConfiguration[] = { |
432 {"partial4StaticVoidMethod", V8TestInterfacePartial::partial4StaticVoidMetho
dMethodCallback, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfiguratio
n::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWor
lds} | 438 {"partial4StaticVoidMethod", V8TestInterfacePartial::partial4StaticVoidMetho
dMethodCallback, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfiguratio
n::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWor
lds} |
433 }; | 439 }; |
434 for (const auto& methodConfig : methodPartial4StaticvoidmethodConfiguration) | 440 for (const auto& methodConfig : methodPartial4StaticvoidmethodConfiguration) |
435 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, inter
face, signature, methodConfig); | 441 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, inter
face, signature, methodConfig); |
436 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfigur
ation[] = { | 442 static const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodC
onfiguration[] = { |
437 {"partial4VoidMethod", V8TestInterfacePartial::partial4VoidMethodMethodCallb
ack, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHold
er, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds} | 443 {"partial4VoidMethod", V8TestInterfacePartial::partial4VoidMethodMethodCallb
ack, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHold
er, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds} |
438 }; | 444 }; |
439 for (const auto& methodConfig : methodPartial4VoidmethodConfiguration) | 445 for (const auto& methodConfig : methodPartial4VoidmethodConfiguration) |
440 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, inter
face, signature, methodConfig); | 446 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, inter
face, signature, methodConfig); |
441 } | 447 } |
442 | 448 |
443 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip
tState, v8::Local<v8::Object> instance) { | 449 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip
tState, v8::Local<v8::Object> instance) { |
444 V8PerContextData* perContextData = V8PerContextData::from(scriptState->context
()); | 450 V8PerContextData* perContextData = V8PerContextData::from(scriptState->context
()); |
445 v8::Local<v8::Object> prototype = perContextData->prototypeForType(&V8TestInte
rface::wrapperTypeInfo); | 451 v8::Local<v8::Object> prototype = perContextData->prototypeForType(&V8TestInte
rface::wrapperTypeInfo); |
446 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Test
Interface::wrapperTypeInfo); | 452 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Test
Interface::wrapperTypeInfo); |
(...skipping 28 matching lines...) Expand all Loading... |
475 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 481 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
476 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 482 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
477 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); | 483 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); |
478 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); | 484 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); |
479 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); | 485 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); |
480 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 486 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
481 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 487 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
482 } | 488 } |
483 | 489 |
484 } // namespace blink | 490 } // namespace blink |
OLD | NEW |