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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 "bar", | 878 "bar", |
879 }; | 879 }; |
880 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Partia
lEnumType", dummyExceptionState)) { | 880 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Partia
lEnumType", dummyExceptionState)) { |
881 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMessage
::create(JSMessageSource, WarningMessageLevel, dummyExceptionState.message())); | 881 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMessage
::create(JSMessageSource, WarningMessageLevel, dummyExceptionState.message())); |
882 return; | 882 return; |
883 } | 883 } |
884 | 884 |
885 TestInterfacePartial::setPartialPartialEnumTypeAttribute(*impl, cppValue); | 885 TestInterfacePartial::setPartialPartialEnumTypeAttribute(*impl, cppValue); |
886 } | 886 } |
887 | 887 |
| 888 static void partialSecureContextLongAttributeAttributeGetter(const v8::FunctionC
allbackInfo<v8::Value>& info) { |
| 889 v8::Local<v8::Object> holder = info.Holder(); |
| 890 |
| 891 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
| 892 |
| 893 v8SetReturnValueInt(info, TestInterfacePartial::partialSecureContextLongAttrib
ute(*impl)); |
| 894 } |
| 895 |
| 896 static void partialSecureContextLongAttributeAttributeSetter(v8::Local<v8::Value
> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 897 v8::Local<v8::Object> holder = info.Holder(); |
| 898 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
| 899 |
| 900 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext
, "TestInterface", "partialSecureContextLongAttribute"); |
| 901 |
| 902 // Prepare the value to be set. |
| 903 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, exception
State); |
| 904 if (exceptionState.hadException()) |
| 905 return; |
| 906 |
| 907 TestInterfacePartial::setPartialSecureContextLongAttribute(*impl, cppValue); |
| 908 } |
| 909 |
888 static void partial2LongAttributeAttributeGetter(const v8::FunctionCallbackInfo<
v8::Value>& info) { | 910 static void partial2LongAttributeAttributeGetter(const v8::FunctionCallbackInfo<
v8::Value>& info) { |
889 v8::Local<v8::Object> holder = info.Holder(); | 911 v8::Local<v8::Object> holder = info.Holder(); |
890 | 912 |
891 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 913 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
892 | 914 |
893 v8SetReturnValueInt(info, TestInterfacePartial2Implementation::partial2LongAtt
ribute(*impl)); | 915 v8SetReturnValueInt(info, TestInterfacePartial2Implementation::partial2LongAtt
ribute(*impl)); |
894 } | 916 } |
895 | 917 |
896 static void partial2LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::FunctionCallbackInfo<v8::Value>& info) { | 918 static void partial2LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::FunctionCallbackInfo<v8::Value>& info) { |
897 v8::Local<v8::Object> holder = info.Holder(); | 919 v8::Local<v8::Object> holder = info.Holder(); |
(...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2214 void V8TestInterface::partialPartialEnumTypeAttributeAttributeGetterCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) { | 2236 void V8TestInterface::partialPartialEnumTypeAttributeAttributeGetterCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) { |
2215 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttribut
eGetter(info); | 2237 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttribut
eGetter(info); |
2216 } | 2238 } |
2217 | 2239 |
2218 void V8TestInterface::partialPartialEnumTypeAttributeAttributeSetterCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) { | 2240 void V8TestInterface::partialPartialEnumTypeAttributeAttributeSetterCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) { |
2219 v8::Local<v8::Value> v8Value = info[0]; | 2241 v8::Local<v8::Value> v8Value = info[0]; |
2220 | 2242 |
2221 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttribut
eSetter(v8Value, info); | 2243 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttribut
eSetter(v8Value, info); |
2222 } | 2244 } |
2223 | 2245 |
| 2246 void V8TestInterface::partialSecureContextLongAttributeAttributeGetterCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) { |
| 2247 TestInterfaceImplementationV8Internal::partialSecureContextLongAttributeAttrib
uteGetter(info); |
| 2248 } |
| 2249 |
| 2250 void V8TestInterface::partialSecureContextLongAttributeAttributeSetterCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) { |
| 2251 v8::Local<v8::Value> v8Value = info[0]; |
| 2252 |
| 2253 TestInterfaceImplementationV8Internal::partialSecureContextLongAttributeAttrib
uteSetter(v8Value, info); |
| 2254 } |
| 2255 |
2224 void V8TestInterface::partial2LongAttributeAttributeGetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) { | 2256 void V8TestInterface::partial2LongAttributeAttributeGetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) { |
2225 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeGetter(in
fo); | 2257 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeGetter(in
fo); |
2226 } | 2258 } |
2227 | 2259 |
2228 void V8TestInterface::partial2LongAttributeAttributeSetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) { | 2260 void V8TestInterface::partial2LongAttributeAttributeSetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) { |
2229 v8::Local<v8::Value> v8Value = info[0]; | 2261 v8::Local<v8::Value> v8Value = info[0]; |
2230 | 2262 |
2231 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeSetter(v8
Value, info); | 2263 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeSetter(v8
Value, info); |
2232 } | 2264 } |
2233 | 2265 |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2748 v8::Local<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Local<v8
::Value> v8Value, v8::Isolate* isolate) { | 2780 v8::Local<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Local<v8
::Value> v8Value, v8::Isolate* isolate) { |
2749 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 2781 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
2750 } | 2782 } |
2751 | 2783 |
2752 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i
solate, v8::Local<v8::Value> value) { | 2784 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i
solate, v8::Local<v8::Value> value) { |
2753 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 2785 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
2754 } | 2786 } |
2755 | 2787 |
2756 void V8TestInterface::preparePrototypeAndInterfaceObject(v8::Local<v8::Context>
context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v8
::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interface
Template) { | 2788 void V8TestInterface::preparePrototypeAndInterfaceObject(v8::Local<v8::Context>
context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v8
::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interface
Template) { |
2757 v8::Isolate* isolate = context->GetIsolate(); | 2789 v8::Isolate* isolate = context->GetIsolate(); |
| 2790 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
| 2791 ExecutionContext* executionContext = toExecutionContext(context); |
| 2792 DCHECK(executionContext); |
2758 | 2793 |
2759 ExecutionContext* executionContext = toExecutionContext(context); | |
2760 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | |
2761 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 2794 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
2762 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wo
rkerExposedAttribute", V8TestInterface::workerExposedAttributeAttributeGetterCal
lback, V8TestInterface::workerExposedAttributeAttributeSetterCallback, nullptr,
nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo
nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2795 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wo
rkerExposedAttribute", V8TestInterface::workerExposedAttributeAttributeGetterCal
lback, V8TestInterface::workerExposedAttributeAttributeSetterCallback, nullptr,
nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo
nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2763 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); | 2796 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); |
2764 } | 2797 } |
2765 if (executionContext && (executionContext->isDocument())) { | 2798 if (executionContext && (executionContext->isDocument())) { |
2766 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wi
ndowExposedAttribute", V8TestInterface::windowExposedAttributeAttributeGetterCal
lback, V8TestInterface::windowExposedAttributeAttributeSetterCallback, nullptr,
nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo
nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2799 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wi
ndowExposedAttribute", V8TestInterface::windowExposedAttributeAttributeGetterCal
lback, V8TestInterface::windowExposedAttributeAttributeSetterCallback, nullptr,
nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo
nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2767 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); | 2800 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); |
2768 } | 2801 } |
2769 if (executionContext && (executionContext->isSecureContext())) { | 2802 if (executionContext && (executionContext->isSecureContext())) { |
2770 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"se
cureContextAttribute", V8TestInterface::secureContextAttributeAttributeGetterCal
lback, V8TestInterface::secureContextAttributeAttributeSetterCallback, nullptr,
nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo
nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2803 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"se
cureContextAttribute", V8TestInterface::secureContextAttributeAttributeGetterCal
lback, V8TestInterface::secureContextAttributeAttributeSetterCallback, nullptr,
nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo
nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
(...skipping 27 matching lines...) Expand all Loading... |
2798 } | 2831 } |
2799 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 2832 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
2800 if (executionContext && (executionContext->isSecureContext())) { | 2833 if (executionContext && (executionContext->isSecureContext())) { |
2801 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { | 2834 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { |
2802 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
{"secureContextWorkerExposedRuntimeEnabledAttribute", V8TestInterface::secureCon
textWorkerExposedRuntimeEnabledAttributeAttributeGetterCallback, V8TestInterface
::secureContextWorkerExposedRuntimeEnabledAttributeAttributeSetterCallback, null
ptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8
DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2835 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
{"secureContextWorkerExposedRuntimeEnabledAttribute", V8TestInterface::secureCon
textWorkerExposedRuntimeEnabledAttributeAttributeGetterCallback, V8TestInterface
::secureContextWorkerExposedRuntimeEnabledAttributeAttributeSetterCallback, null
ptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8
DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2803 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, accessorConfiguration); | 2836 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, accessorConfiguration); |
2804 } | 2837 } |
2805 } | 2838 } |
2806 } | 2839 } |
2807 if (executionContext && (executionContext->isSecureContext())) { | 2840 if (executionContext && (executionContext->isSecureContext())) { |
| 2841 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
| 2842 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"
partialSecureContextLongAttribute", V8TestInterface::partialSecureContextLongAtt
ributeAttributeGetterCallback, V8TestInterface::partialSecureContextLongAttribut
eAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Pr
opertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration:
:CheckHolder}; |
| 2843 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(
), prototypeObject, interfaceObject, signature, accessorConfiguration); |
| 2844 } |
| 2845 } |
| 2846 if (executionContext && (executionContext->isSecureContext())) { |
2808 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"pa
rtial2SecureContextAttribute", V8TestInterface::partial2SecureContextAttributeAt
tributeGetterCallback, V8TestInterface::partial2SecureContextAttributeAttributeS
etterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde
r}; | 2847 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"pa
rtial2SecureContextAttribute", V8TestInterface::partial2SecureContextAttributeAt
tributeGetterCallback, V8TestInterface::partial2SecureContextAttributeAttributeS
etterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde
r}; |
2809 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); | 2848 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); |
2810 } | 2849 } |
2811 if (executionContext && (executionContext->isSecureContext())) { | 2850 if (executionContext && (executionContext->isSecureContext())) { |
2812 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"pa
rtialSecureContextAttribute", V8TestInterface::partialSecureContextAttributeAttr
ibuteGetterCallback, V8TestInterface::partialSecureContextAttributeAttributeSett
erCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribut
e>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2851 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"pa
rtialSecureContextAttribute", V8TestInterface::partialSecureContextAttributeAttr
ibuteGetterCallback, V8TestInterface::partialSecureContextAttributeAttributeSett
erCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribut
e>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2813 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); | 2852 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); |
2814 } | 2853 } |
2815 if (executionContext && (executionContext->isSecureContext())) { | 2854 if (executionContext && (executionContext->isSecureContext())) { |
2816 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { | 2855 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { |
2817 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"
partialSecureContextRuntimeEnabledAttribute", V8TestInterface::partialSecureCont
extRuntimeEnabledAttributeAttributeGetterCallback, V8TestInterface::partialSecur
eContextRuntimeEnabledAttributeAttributeSetterCallback, nullptr, nullptr, nullpt
r, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::On
Prototype, V8DOMConfiguration::CheckHolder}; | 2856 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"
partialSecureContextRuntimeEnabledAttribute", V8TestInterface::partialSecureCont
extRuntimeEnabledAttributeAttributeGetterCallback, V8TestInterface::partialSecur
eContextRuntimeEnabledAttributeAttributeSetterCallback, nullptr, nullptr, nullpt
r, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::On
Prototype, V8DOMConfiguration::CheckHolder}; |
(...skipping 21 matching lines...) Expand all Loading... |
2839 } | 2878 } |
2840 } | 2879 } |
2841 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 2880 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
2842 if (executionContext && (executionContext->isSecureContext())) { | 2881 if (executionContext && (executionContext->isSecureContext())) { |
2843 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { | 2882 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { |
2844 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
{"partialSecureContextWorkerExposedRuntimeEnabledAttribute", V8TestInterface::pa
rtialSecureContextWorkerExposedRuntimeEnabledAttributeAttributeGetterCallback, V
8TestInterface::partialSecureContextWorkerExposedRuntimeEnabledAttributeAttribut
eSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAtt
ribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol
der}; | 2883 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
{"partialSecureContextWorkerExposedRuntimeEnabledAttribute", V8TestInterface::pa
rtialSecureContextWorkerExposedRuntimeEnabledAttributeAttributeGetterCallback, V
8TestInterface::partialSecureContextWorkerExposedRuntimeEnabledAttributeAttribut
eSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAtt
ribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol
der}; |
2845 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, accessorConfiguration); | 2884 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object
>(), prototypeObject, interfaceObject, signature, accessorConfiguration); |
2846 } | 2885 } |
2847 } | 2886 } |
2848 } | 2887 } |
2849 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | |
2850 ExecutionContext* executionContext = toExecutionContext(prototypeObject->Creat
ionContext()); | |
2851 DCHECK(executionContext); | |
2852 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 2888 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
2853 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodConfi
guration = {"workerExposedMethod", V8TestInterface::workerExposedMethodMethodCal
lback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration
::CheckHolder}; | 2889 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodConfi
guration = {"workerExposedMethod", V8TestInterface::workerExposedMethodMethodCal
lback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration
::CheckHolder}; |
2854 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, workerExposedMethodMethodConfigurati
on); | 2890 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, workerExposedMethodMethodConfigurati
on); |
2855 } | 2891 } |
2856 if (executionContext && (executionContext->isDocument())) { | 2892 if (executionContext && (executionContext->isDocument())) { |
2857 const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodConfi
guration = {"windowExposedMethod", V8TestInterface::windowExposedMethodMethodCal
lback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration
::CheckHolder}; | 2893 const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodConfi
guration = {"windowExposedMethod", V8TestInterface::windowExposedMethodMethodCal
lback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration
::CheckHolder}; |
2858 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowExposedMethodMethodConfigurati
on); | 2894 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowExposedMethodMethodConfigurati
on); |
2859 } | 2895 } |
2860 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 2896 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
2861 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodMetho
dConfiguration = {"workerExposedStaticMethod", V8TestInterface::workerExposedSta
ticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface,
V8DOMConfiguration::CheckHolder}; | 2897 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodMetho
dConfiguration = {"workerExposedStaticMethod", V8TestInterface::workerExposedSta
ticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface,
V8DOMConfiguration::CheckHolder}; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3000 | 3036 |
3001 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { | 3037 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { |
3002 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInter
face = method; | 3038 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInter
face = method; |
3003 } | 3039 } |
3004 | 3040 |
3005 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { | 3041 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { |
3006 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPartia
lInterface = method; | 3042 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPartia
lInterface = method; |
3007 } | 3043 } |
3008 | 3044 |
3009 } // namespace blink | 3045 } // namespace blink |
OLD | NEW |