| 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/interface.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
| 10 | 10 |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 {"doubleAttribute", V8TestInterface5::doubleAttributeAttributeGetterCallback
, V8TestInterface5::doubleAttributeAttributeSetterCallback, nullptr, nullptr, nu
llptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::OnPrototype, V8DOMConfiguration::CheckHolder}, | 769 {"doubleAttribute", V8TestInterface5::doubleAttributeAttributeGetterCallback
, V8TestInterface5::doubleAttributeAttributeSetterCallback, nullptr, nullptr, nu
llptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::OnPrototype, V8DOMConfiguration::CheckHolder}, |
| 770 {"floatAttribute", V8TestInterface5::floatAttributeAttributeGetterCallback,
V8TestInterface5::floatAttributeAttributeSetterCallback, nullptr, nullptr, nullp
tr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::O
nPrototype, V8DOMConfiguration::CheckHolder}, | 770 {"floatAttribute", V8TestInterface5::floatAttributeAttributeGetterCallback,
V8TestInterface5::floatAttributeAttributeSetterCallback, nullptr, nullptr, nullp
tr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::O
nPrototype, V8DOMConfiguration::CheckHolder}, |
| 771 {"unrestrictedDoubleAttribute", V8TestInterface5::unrestrictedDoubleAttribut
eAttributeGetterCallback, V8TestInterface5::unrestrictedDoubleAttributeAttribute
SetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttr
ibute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHold
er}, | 771 {"unrestrictedDoubleAttribute", V8TestInterface5::unrestrictedDoubleAttribut
eAttributeGetterCallback, V8TestInterface5::unrestrictedDoubleAttributeAttribute
SetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttr
ibute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHold
er}, |
| 772 {"unrestrictedFloatAttribute", V8TestInterface5::unrestrictedFloatAttributeA
ttributeGetterCallback, V8TestInterface5::unrestrictedFloatAttributeAttributeSet
terCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribu
te>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}
, | 772 {"unrestrictedFloatAttribute", V8TestInterface5::unrestrictedFloatAttributeA
ttributeGetterCallback, V8TestInterface5::unrestrictedFloatAttributeAttributeSet
terCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribu
te>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}
, |
| 773 {"staticStringAttribute", V8TestInterface5::staticStringAttributeAttributeGe
tterCallback, V8TestInterface5::staticStringAttributeAttributeSetterCallback, nu
llptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, | 773 {"staticStringAttribute", V8TestInterface5::staticStringAttributeAttributeGe
tterCallback, V8TestInterface5::staticStringAttributeAttributeSetterCallback, nu
llptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, |
| 774 {"length", V8TestInterface5::lengthAttributeGetterCallback, nullptr, nullptr
, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V
8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 774 {"length", V8TestInterface5::lengthAttributeGetterCallback, nullptr, nullptr
, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V
8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
| 775 {"alwaysExposedAttribute", V8TestInterface5::alwaysExposedAttributeAttribute
GetterCallback, V8TestInterface5::alwaysExposedAttributeAttributeSetterCallback,
nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None
), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 775 {"alwaysExposedAttribute", V8TestInterface5::alwaysExposedAttributeAttribute
GetterCallback, V8TestInterface5::alwaysExposedAttributeAttributeSetterCallback,
nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None
), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
| 776 }; | 776 }; |
| 777 | 777 |
| 778 const V8DOMConfiguration::MethodConfiguration V8TestInterface5Methods[] = { | 778 const V8DOMConfiguration::MethodConfiguration V8TestInterface5Methods[] = { |
| 779 {"voidMethodTestInterfaceEmptyArg", V8TestInterface5::voidMethodTestInterfac
eEmptyArgMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder}, | 779 {"voidMethodTestInterfaceEmptyArg", V8TestInterface5::voidMethodTestInterfac
eEmptyArgMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, |
| 780 {"voidMethodDoubleArgFloatArg", V8TestInterface5::voidMethodDoubleArgFloatAr
gMethodCallback, nullptr, 2, v8::None, V8DOMConfiguration::OnPrototype, V8DOMCon
figuration::CheckHolder}, | 780 {"voidMethodDoubleArgFloatArg", V8TestInterface5::voidMethodDoubleArgFloatAr
gMethodCallback, nullptr, 2, v8::None, V8DOMConfiguration::OnPrototype, V8DOMCon
figuration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, |
| 781 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", V8TestInterface5::vo
idMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback, nullptr, 2, v8:
:None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 781 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", V8TestInterface5::vo
idMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback, nullptr, 2, v8:
:None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMCo
nfiguration::DoNotCheckAccess}, |
| 782 {"voidMethod", V8TestInterface5::voidMethodMethodCallback, V8TestInterface5:
:voidMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::OnProtot
ype, V8DOMConfiguration::CheckHolder}, | 782 {"voidMethod", V8TestInterface5::voidMethodMethodCallback, V8TestInterface5:
:voidMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::OnProtot
ype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, |
| 783 {"alwaysExposedMethod", V8TestInterface5::alwaysExposedMethodMethodCallback,
nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec
kHolder}, | 783 {"alwaysExposedMethod", V8TestInterface5::alwaysExposedMethodMethodCallback,
nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec
kHolder, V8DOMConfiguration::DoNotCheckAccess}, |
| 784 {"alwaysExposedStaticMethod", V8TestInterface5::alwaysExposedStaticMethodMet
hodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfigu
ration::CheckHolder}, | 784 {"alwaysExposedStaticMethod", V8TestInterface5::alwaysExposedStaticMethodMet
hodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfigu
ration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, |
| 785 {"voidMethodBooleanOrDOMStringArg", V8TestInterface5::voidMethodBooleanOrDOM
StringArgMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder}, | 785 {"voidMethodBooleanOrDOMStringArg", V8TestInterface5::voidMethodBooleanOrDOM
StringArgMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, |
| 786 {"voidMethodDoubleOrDOMStringArg", V8TestInterface5::voidMethodDoubleOrDOMSt
ringArgMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype, V8
DOMConfiguration::CheckHolder}, | 786 {"voidMethodDoubleOrDOMStringArg", V8TestInterface5::voidMethodDoubleOrDOMSt
ringArgMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype, V8
DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, |
| 787 {"voidMethodVoidExperimentalCallbackFunction", V8TestInterface5::voidMethodV
oidExperimentalCallbackFunctionMethodCallback, nullptr, 1, v8::None, V8DOMConfig
uration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 787 {"voidMethodVoidExperimentalCallbackFunction", V8TestInterface5::voidMethodV
oidExperimentalCallbackFunctionMethodCallback, nullptr, 1, v8::None, V8DOMConfig
uration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNot
CheckAccess}, |
| 788 {"voidMethodVoidCallbackFunctionModulesArg", V8TestInterface5::voidMethodVoi
dCallbackFunctionModulesArgMethodCallback, nullptr, 1, v8::None, V8DOMConfigurat
ion::OnPrototype, V8DOMConfiguration::CheckHolder}, | 788 {"voidMethodVoidCallbackFunctionModulesArg", V8TestInterface5::voidMethodVoi
dCallbackFunctionModulesArgMethodCallback, nullptr, 1, v8::None, V8DOMConfigurat
ion::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotChec
kAccess}, |
| 789 {"toString", V8TestInterface5::toStringMethodCallback, nullptr, 0, static_ca
st<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::OnPrototype, V8DOMC
onfiguration::CheckHolder}, | 789 {"toString", V8TestInterface5::toStringMethodCallback, nullptr, 0, static_ca
st<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::OnPrototype, V8DOMC
onfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, |
| 790 }; | 790 }; |
| 791 | 791 |
| 792 static void installV8TestInterface5Template(v8::Isolate* isolate, const DOMWrapp
erWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { | 792 static void installV8TestInterface5Template(v8::Isolate* isolate, const DOMWrapp
erWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { |
| 793 // Initialize the interface object's template. | 793 // Initialize the interface object's template. |
| 794 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterface5::wrapperTypeInfo.interfaceName, V8TestInterfaceEmpty::domTempl
ate(isolate, world), V8TestInterface5::internalFieldCount); | 794 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterface5::wrapperTypeInfo.interfaceName, V8TestInterfaceEmpty::domTempl
ate(isolate, world), V8TestInterface5::internalFieldCount); |
| 795 | 795 |
| 796 if (!RuntimeEnabledFeatures::featureNameEnabled()) { | 796 if (!RuntimeEnabledFeatures::featureNameEnabled()) { |
| 797 return; | 797 return; |
| 798 } | 798 } |
| 799 | 799 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 | 857 |
| 858 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 858 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
| 859 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wo
rkerExposedAttribute", V8TestInterface5::workerExposedAttributeAttributeGetterCa
llback, V8TestInterface5::workerExposedAttributeAttributeSetterCallback, nullptr
, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 859 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wo
rkerExposedAttribute", V8TestInterface5::workerExposedAttributeAttributeGetterCa
llback, V8TestInterface5::workerExposedAttributeAttributeSetterCallback, nullptr
, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
| 860 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); | 860 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); |
| 861 } | 861 } |
| 862 if (executionContext && (executionContext->isDocument())) { | 862 if (executionContext && (executionContext->isDocument())) { |
| 863 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wi
ndowExposedAttribute", V8TestInterface5::windowExposedAttributeAttributeGetterCa
llback, V8TestInterface5::windowExposedAttributeAttributeSetterCallback, nullptr
, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 863 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wi
ndowExposedAttribute", V8TestInterface5::windowExposedAttributeAttributeGetterCa
llback, V8TestInterface5::windowExposedAttributeAttributeSetterCallback, nullptr
, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
| 864 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); | 864 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); |
| 865 } | 865 } |
| 866 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 866 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
| 867 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodConfi
guration = {"workerExposedMethod", V8TestInterface5::workerExposedMethodMethodCa
llback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio
n::CheckHolder}; | 867 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodConfi
guration = {"workerExposedMethod", V8TestInterface5::workerExposedMethodMethodCa
llback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio
n::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}; |
| 868 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, workerExposedMethodMethodConfigurati
on); | 868 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, workerExposedMethodMethodConfigurati
on); |
| 869 } | 869 } |
| 870 if (executionContext && (executionContext->isDocument())) { | 870 if (executionContext && (executionContext->isDocument())) { |
| 871 const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodConfi
guration = {"windowExposedMethod", V8TestInterface5::windowExposedMethodMethodCa
llback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio
n::CheckHolder}; | 871 const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodConfi
guration = {"windowExposedMethod", V8TestInterface5::windowExposedMethodMethodCa
llback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio
n::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}; |
| 872 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowExposedMethodMethodConfigurati
on); | 872 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowExposedMethodMethodConfigurati
on); |
| 873 } | 873 } |
| 874 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 874 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
| 875 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodMetho
dConfiguration = {"workerExposedStaticMethod", V8TestInterface5::workerExposedSt
aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface,
V8DOMConfiguration::CheckHolder}; | 875 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodMetho
dConfiguration = {"workerExposedStaticMethod", V8TestInterface5::workerExposedSt
aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface,
V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}; |
| 876 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, workerExposedStaticMethodMethodConfi
guration); | 876 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, workerExposedStaticMethodMethodConfi
guration); |
| 877 } | 877 } |
| 878 if (executionContext && (executionContext->isDocument())) { | 878 if (executionContext && (executionContext->isDocument())) { |
| 879 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMetho
dConfiguration = {"windowExposedStaticMethod", V8TestInterface5::windowExposedSt
aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface,
V8DOMConfiguration::CheckHolder}; | 879 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMetho
dConfiguration = {"windowExposedStaticMethod", V8TestInterface5::windowExposedSt
aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface,
V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}; |
| 880 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodConfi
guration); | 880 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodConfi
guration); |
| 881 } | 881 } |
| 882 if (executionContext && (executionContext->isDocument() || executionContext->i
sServiceWorkerGlobalScope())) { | 882 if (executionContext && (executionContext->isDocument() || executionContext->i
sServiceWorkerGlobalScope())) { |
| 883 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM
ethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", V8TestInterfa
ce5::windowAndServiceWorkerExposedMethodMethodCallback, nullptr, 0, v8::None, V8
DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 883 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM
ethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", V8TestInterfa
ce5::windowAndServiceWorkerExposedMethodMethodCallback, nullptr, 0, v8::None, V8
DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigurati
on::DoNotCheckAccess}; |
| 884 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMethodM
ethodConfiguration); | 884 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMethodM
ethodConfiguration); |
| 885 } | 885 } |
| 886 } | 886 } |
| 887 | 887 |
| 888 } // namespace blink | 888 } // namespace blink |
| OLD | NEW |