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 // clang-format off | 7 // clang-format off |
8 #include "V8TestInterfacePartial.h" | 8 #include "V8TestInterfacePartial.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 // Register DOM constants, attributes and operations. | 409 // Register DOM constants, attributes and operations. |
410 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 410 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
411 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants
[] = { | 411 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants
[] = { |
412 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUn
signedShort}, | 412 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUn
signedShort}, |
413 }; | 413 }; |
414 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototy
peTemplate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)
); | 414 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototy
peTemplate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)
); |
415 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, pro
totypeTemplate, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_
LENGTH(V8TestInterfaceMethods)); | 415 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, pro
totypeTemplate, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_
LENGTH(V8TestInterfaceMethods)); |
416 } | 416 } |
417 } | 417 } |
418 | 418 |
| 419 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) |
| 420 { |
| 421 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapper
TypeInfo.domTemplate(isolate, world); |
| 422 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); |
| 423 ALLOW_UNUSED_LOCAL(signature); |
| 424 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttribut
eConfiguration = \ |
| 425 {"partial4LongAttribute", TestInterfaceImplementationPartialV8Internal::
partial4LongAttributeAttributeGetterCallback, TestInterfaceImplementationPartial
V8Internal::partial4LongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
| 426 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, int
erface, signature, accessorpartial4LongAttributeConfiguration); |
| 427 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAt
tributeConfiguration = \ |
| 428 {"partial4StaticLongAttribute", TestInterfaceImplementationPartialV8Inte
rnal::partial4StaticLongAttributeAttributeGetterCallback, TestInterfaceImplement
ationPartialV8Internal::partial4StaticLongAttributeAttributeSetterCallback, 0, 0
, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Ch
eckHolder}; |
| 429 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, int
erface, signature, accessorpartial4StaticLongAttributeConfiguration); |
| 430 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShor
tConfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantT
ypeUnsignedShort}; |
| 431 V8DOMConfiguration::installConstant(isolate, interface, prototype, constantP
artial4UnsignedShortConfiguration); |
| 432 const V8DOMConfiguration::MethodConfiguration methodPartial4Staticvoidmethod
Configuration = {"partial4StaticVoidMethod", TestInterfaceImplementationPartialV
8Internal::partial4StaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfigur
ation::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; |
| 433 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, inter
face, signature, methodPartial4StaticvoidmethodConfiguration); |
| 434 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfig
uration = {"partial4VoidMethod", TestInterfaceImplementationPartialV8Internal::p
artial4VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype}; |
| 435 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, inter
face, signature, methodPartial4VoidmethodConfiguration); |
| 436 } |
| 437 |
419 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip
tState, v8::Local<v8::Object> instance) | 438 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip
tState, v8::Local<v8::Object> instance) |
420 { | 439 { |
421 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapper
TypeInfo.domTemplate(scriptState->isolate(), scriptState->world()); | |
422 v8::Local<v8::Signature> signature = v8::Signature::New(scriptState->isolate
(), interfaceTemplate); | |
423 ALLOW_UNUSED_LOCAL(signature); | |
424 V8PerContextData* perContextData = V8PerContextData::from(scriptState->conte
xt()); | 440 V8PerContextData* perContextData = V8PerContextData::from(scriptState->conte
xt()); |
425 v8::Local<v8::Object> prototype = perContextData->prototypeForType(&V8TestIn
terface::wrapperTypeInfo); | 441 v8::Local<v8::Object> prototype = perContextData->prototypeForType(&V8TestIn
terface::wrapperTypeInfo); |
426 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Te
stInterface::wrapperTypeInfo); | 442 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Te
stInterface::wrapperTypeInfo); |
427 ALLOW_UNUSED_LOCAL(interface); | 443 ALLOW_UNUSED_LOCAL(interface); |
428 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttribut
eConfiguration = \ | 444 installOriginTrialPartialFeature(scriptState->isolate(), scriptState->world(
), instance, prototype, interface); |
429 {"partial4LongAttribute", TestInterfaceImplementationPartialV8Internal::
partial4LongAttributeAttributeGetterCallback, TestInterfaceImplementationPartial
V8Internal::partial4LongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | |
430 V8DOMConfiguration::installAccessor(scriptState->isolate(), scriptState->wor
ld(), instance, prototype, interface, signature, accessorpartial4LongAttributeCo
nfiguration); | |
431 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAt
tributeConfiguration = \ | |
432 {"partial4StaticLongAttribute", TestInterfaceImplementationPartialV8Inte
rnal::partial4StaticLongAttributeAttributeGetterCallback, TestInterfaceImplement
ationPartialV8Internal::partial4StaticLongAttributeAttributeSetterCallback, 0, 0
, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Ch
eckHolder}; | |
433 V8DOMConfiguration::installAccessor(scriptState->isolate(), scriptState->wor
ld(), instance, prototype, interface, signature, accessorpartial4StaticLongAttri
buteConfiguration); | |
434 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShor
tConfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantT
ypeUnsignedShort}; | |
435 V8DOMConfiguration::installConstant(scriptState->isolate(), interface, proto
type, constantPartial4UnsignedShortConfiguration); | |
436 const V8DOMConfiguration::MethodConfiguration methodPartial4Staticvoidmethod
Configuration = {"partial4StaticVoidMethod", TestInterfaceImplementationPartialV
8Internal::partial4StaticVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfigur
ation::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; | |
437 V8DOMConfiguration::installMethod(scriptState->isolate(), scriptState->world
(), instance, prototype, interface, signature, methodPartial4StaticvoidmethodCon
figuration); | |
438 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfig
uration = {"partial4VoidMethod", TestInterfaceImplementationPartialV8Internal::p
artial4VoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype}; | |
439 V8DOMConfiguration::installMethod(scriptState->isolate(), scriptState->world
(), instance, prototype, interface, signature, methodPartial4VoidmethodConfigura
tion); | |
440 } | 445 } |
441 | 446 |
442 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip
tState) | 447 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip
tState) |
443 { | 448 { |
444 installOriginTrialPartialFeature(scriptState, v8::Local<v8::Object>()); | 449 installOriginTrialPartialFeature(scriptState, v8::Local<v8::Object>()); |
445 } | 450 } |
446 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) | 451 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) |
447 { | 452 { |
448 #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> | 453 #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> |
449 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototyp
eObject, interfaceObject, interfaceTemplate); | 454 V8TestInterface::preparePrototypeAndInterfaceObject(context, world, prototyp
eObject, interfaceObject, interfaceTemplate); |
(...skipping 16 matching lines...) Expand all Loading... |
466 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 471 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
467 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 472 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
468 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); | 473 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); |
469 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); | 474 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); |
470 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); | 475 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); |
471 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 476 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
472 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 477 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
473 } | 478 } |
474 | 479 |
475 } // namespace blink | 480 } // namespace blink |
OLD | NEW |