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 "config.h" | 7 #include "config.h" |
8 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
9 #include "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
10 | 10 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); | 81 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); |
82 } | 82 } |
83 | 83 |
84 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 84 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
85 { | 85 { |
86 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 86 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
87 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeSetter
(v8Value, info); | 87 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeSetter
(v8Value, info); |
88 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 88 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
89 } | 89 } |
90 | 90 |
| 91 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
| 92 { |
| 93 v8::Handle<v8::Object> holder = info.Holder(); |
| 94 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 95 v8SetReturnValue(info, impl->doubleAttribute()); |
| 96 } |
| 97 |
| 98 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 99 { |
| 100 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 101 TestInterfaceImplementationV8Internal::doubleAttributeAttributeGetter(info); |
| 102 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 103 } |
| 104 |
| 105 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
| 106 { |
| 107 v8::Handle<v8::Object> holder = info.Holder(); |
| 108 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 109 TONATIVE_VOID(double, cppValue, static_cast<double>(v8Value->NumberValue()))
; |
| 110 impl->setDoubleAttribute(cppValue); |
| 111 } |
| 112 |
| 113 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 114 { |
| 115 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 116 TestInterfaceImplementationV8Internal::doubleAttributeAttributeSetter(v8Valu
e, info); |
| 117 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 118 } |
| 119 |
| 120 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
| 121 { |
| 122 v8::Handle<v8::Object> holder = info.Holder(); |
| 123 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 124 v8SetReturnValue(info, impl->floatAttribute()); |
| 125 } |
| 126 |
| 127 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 128 { |
| 129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 130 TestInterfaceImplementationV8Internal::floatAttributeAttributeGetter(info); |
| 131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 132 } |
| 133 |
| 134 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
| 135 { |
| 136 v8::Handle<v8::Object> holder = info.Holder(); |
| 137 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 138 TONATIVE_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue())); |
| 139 impl->setFloatAttribute(cppValue); |
| 140 } |
| 141 |
| 142 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 143 { |
| 144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 145 TestInterfaceImplementationV8Internal::floatAttributeAttributeSetter(v8Value
, info); |
| 146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 147 } |
| 148 |
| 149 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
| 150 { |
| 151 v8::Handle<v8::Object> holder = info.Holder(); |
| 152 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 153 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); |
| 154 } |
| 155 |
| 156 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 157 { |
| 158 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 159 TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeG
etter(info); |
| 160 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 161 } |
| 162 |
| 163 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
| 164 { |
| 165 v8::Handle<v8::Object> holder = info.Holder(); |
| 166 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 167 TONATIVE_VOID(double, cppValue, static_cast<double>(v8Value->NumberValue()))
; |
| 168 impl->setUnrestrictedDoubleAttribute(cppValue); |
| 169 } |
| 170 |
| 171 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 172 { |
| 173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 174 TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeS
etter(v8Value, info); |
| 175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 176 } |
| 177 |
| 178 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) |
| 179 { |
| 180 v8::Handle<v8::Object> holder = info.Holder(); |
| 181 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 182 v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); |
| 183 } |
| 184 |
| 185 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 186 { |
| 187 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 188 TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeGe
tter(info); |
| 189 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 190 } |
| 191 |
| 192 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
| 193 { |
| 194 v8::Handle<v8::Object> holder = info.Holder(); |
| 195 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 196 TONATIVE_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue())); |
| 197 impl->setUnrestrictedFloatAttribute(cppValue); |
| 198 } |
| 199 |
| 200 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 201 { |
| 202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 203 TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeSe
tter(v8Value, info); |
| 204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 205 } |
| 206 |
91 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 207 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
92 { | 208 { |
93 v8SetReturnValueString(info, TestInterfaceImplementation::staticStringAttrib
ute(), info.GetIsolate()); | 209 v8SetReturnValueString(info, TestInterfaceImplementation::staticStringAttrib
ute(), info.GetIsolate()); |
94 } | 210 } |
95 | 211 |
96 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 212 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
97 { | 213 { |
98 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 214 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
99 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeGetter(
info); | 215 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeGetter(
info); |
100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 216 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 866 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
751 } | 867 } |
752 | 868 |
753 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 869 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
754 { | 870 { |
755 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 871 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
756 TestInterfaceImplementationV8Internal::voidMethodTestInterfaceEmptyArgMethod
(info); | 872 TestInterfaceImplementationV8Internal::voidMethodTestInterfaceEmptyArgMethod
(info); |
757 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 873 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
758 } | 874 } |
759 | 875 |
| 876 static void voidMethodDoubleArgFloatArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 877 { |
| 878 if (UNLIKELY(info.Length() < 2)) { |
| 879 throwArityTypeErrorForMethod("voidMethodDoubleArgFloatArg", "TestInterfa
ce", 2, info.Length(), info.GetIsolate()); |
| 880 return; |
| 881 } |
| 882 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
| 883 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue())
); |
| 884 if (!std::isfinite(doubleArg)) { |
| 885 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArgFl
oatArg", "TestInterface", "double parameter 1 is non-finite."), info.GetIsolate(
)); |
| 886 return; |
| 887 } |
| 888 TONATIVE_VOID(float, floatArg, static_cast<float>(info[1]->NumberValue())); |
| 889 if (!std::isfinite(floatArg)) { |
| 890 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArgFl
oatArg", "TestInterface", "float parameter 2 is non-finite."), info.GetIsolate()
); |
| 891 return; |
| 892 } |
| 893 impl->voidMethodDoubleArgFloatArg(doubleArg, floatArg); |
| 894 } |
| 895 |
| 896 static void voidMethodDoubleArgFloatArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 897 { |
| 898 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 899 TestInterfaceImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(inf
o); |
| 900 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 901 } |
| 902 |
| 903 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& info) |
| 904 { |
| 905 if (UNLIKELY(info.Length() < 2)) { |
| 906 throwArityTypeErrorForMethod("voidMethodUnrestrictedDoubleArgUnrestricte
dFloatArg", "TestInterface", 2, info.Length(), info.GetIsolate()); |
| 907 return; |
| 908 } |
| 909 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
| 910 TONATIVE_VOID(double, unrestrictedDoubleArg, static_cast<double>(info[0]->Nu
mberValue())); |
| 911 TONATIVE_VOID(float, unrestrictedFloatArg, static_cast<float>(info[1]->Numbe
rValue())); |
| 912 impl->voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestrictedDouble
Arg, unrestrictedFloatArg); |
| 913 } |
| 914 |
| 915 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
| 916 { |
| 917 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 918 TestInterfaceImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnrest
rictedFloatArgMethod(info); |
| 919 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 920 } |
| 921 |
760 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 922 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
761 { | 923 { |
762 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; | 924 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
763 impl->voidMethod(); | 925 impl->voidMethod(); |
764 } | 926 } |
765 | 927 |
766 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 928 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
767 { | 929 { |
768 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 930 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
769 TestInterfaceImplementationV8Internal::voidMethodMethod(info); | 931 TestInterfaceImplementationV8Internal::voidMethodMethod(info); |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1177 if (!DOMDataStore::containsWrapper<V8TestInterface>(referencedName, isol
ate)) | 1339 if (!DOMDataStore::containsWrapper<V8TestInterface>(referencedName, isol
ate)) |
1178 wrap(referencedName, creationContext, isolate); | 1340 wrap(referencedName, creationContext, isolate); |
1179 DOMDataStore::setWrapperReference<V8TestInterface>(wrapper, referencedNa
me, isolate); | 1341 DOMDataStore::setWrapperReference<V8TestInterface>(wrapper, referencedNa
me, isolate); |
1180 } | 1342 } |
1181 setObjectGroup(object, wrapper, isolate); | 1343 setObjectGroup(object, wrapper, isolate); |
1182 } | 1344 } |
1183 | 1345 |
1184 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute
s[] = { | 1346 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute
s[] = { |
1185 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf
aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test
InterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, | 1347 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf
aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test
InterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, |
1186 {"testImplementedAsConstructorAttribute", TestInterfaceImplementationV8Inter
nal::TestInterfaceImplementationConstructorGetter, TestInterfaceImplementationV8
Internal::TestInterfaceImplementationReplaceableAttributeSetterCallback, 0, 0, c
onst_cast<WrapperTypeInfo*>(&V8TestImplementedAs::wrapperTypeInfo), static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum
), 0 /* on instance */}, | 1348 {"testImplementedAsConstructorAttribute", TestInterfaceImplementationV8Inter
nal::TestInterfaceImplementationConstructorGetter, TestInterfaceImplementationV8
Internal::TestInterfaceImplementationReplaceableAttributeSetterCallback, 0, 0, c
onst_cast<WrapperTypeInfo*>(&V8TestImplementedAs::wrapperTypeInfo), static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum
), 0 /* on instance */}, |
| 1349 {"doubleAttribute", TestInterfaceImplementationV8Internal::doubleAttributeAt
tributeGetterCallback, TestInterfaceImplementationV8Internal::doubleAttributeAtt
ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 1350 {"floatAttribute", TestInterfaceImplementationV8Internal::floatAttributeAttr
ibuteGetterCallback, TestInterfaceImplementationV8Internal::floatAttributeAttrib
uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 1351 {"unrestrictedDoubleAttribute", TestInterfaceImplementationV8Internal::unres
trictedDoubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte
rnal::unrestrictedDoubleAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v
8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, |
| 1352 {"unrestrictedFloatAttribute", TestInterfaceImplementationV8Internal::unrest
rictedFloatAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::unrestrictedFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, |
1187 {"perWorldBindingsStringAttribute", TestInterfaceImplementationV8Internal::p
erWorldBindingsStringAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::perWorldBindingsStringAttributeAttributeSetterCallback, TestInterf
aceImplementationV8Internal::perWorldBindingsStringAttributeAttributeGetterCallb
ackForMainWorld, TestInterfaceImplementationV8Internal::perWorldBindingsStringAt
tributeAttributeSetterCallbackForMainWorld, 0, static_cast<v8::AccessControl>(v8
::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 1353 {"perWorldBindingsStringAttribute", TestInterfaceImplementationV8Internal::p
erWorldBindingsStringAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::perWorldBindingsStringAttributeAttributeSetterCallback, TestInterf
aceImplementationV8Internal::perWorldBindingsStringAttributeAttributeGetterCallb
ackForMainWorld, TestInterfaceImplementationV8Internal::perWorldBindingsStringAt
tributeAttributeSetterCallbackForMainWorld, 0, static_cast<v8::AccessControl>(v8
::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
1188 {"implementsReadonlyStringAttribute", TestInterfaceImplementationV8Internal:
:implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, 0 /* on instance */}, | 1354 {"implementsReadonlyStringAttribute", TestInterfaceImplementationV8Internal:
:implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, 0 /* on instance */}, |
1189 {"implementsStringAttribute", TestInterfaceImplementationV8Internal::impleme
ntsStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal
::implementsStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acc
essControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, | 1355 {"implementsStringAttribute", TestInterfaceImplementationV8Internal::impleme
ntsStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal
::implementsStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acc
essControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, |
1190 {"implementsNodeAttribute", TestInterfaceImplementationV8Internal::implement
sNodeAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im
plementsNodeAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instan
ce */}, | 1356 {"implementsNodeAttribute", TestInterfaceImplementationV8Internal::implement
sNodeAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im
plementsNodeAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instan
ce */}, |
1191 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i
mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, 0, s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::None), 0 /* on instance */}, | 1357 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i
mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, 0, s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::None), 0 /* on instance */}, |
1192 {"implements3StringAttribute", TestInterfaceImplementationV8Internal::implem
ents3StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::implements3StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, | 1358 {"implements3StringAttribute", TestInterfaceImplementationV8Internal::implem
ents3StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::implements3StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, |
1193 }; | 1359 }; |
1194 | 1360 |
1195 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] =
{ | 1361 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] =
{ |
1196 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, | 1362 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, |
| 1363 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM
ethodDoubleArgFloatArgMethodCallback, 0, 2}, |
| 1364 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme
ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall
back, 0, 2}, |
1197 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
0}, | 1365 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
0}, |
1198 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo
idMethodMethodCallback, 0, 0}, | 1366 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo
idMethodMethodCallback, 0, 0}, |
1199 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement
sComplexMethodMethodCallback, 0, 2}, | 1367 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement
sComplexMethodMethodCallback, 0, 2}, |
1200 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem
entsCustomVoidMethodMethodCallback, 0, 0}, | 1368 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem
entsCustomVoidMethodMethodCallback, 0, 0}, |
1201 {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3
VoidMethodMethodCallback, 0, 0}, | 1369 {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3
VoidMethodMethodCallback, 0, 0}, |
1202 }; | 1370 }; |
1203 | 1371 |
1204 static void configureV8TestInterfaceTemplate(v8::Handle<v8::FunctionTemplate> fu
nctionTemplate, v8::Isolate* isolate) | 1372 static void configureV8TestInterfaceTemplate(v8::Handle<v8::FunctionTemplate> fu
nctionTemplate, v8::Isolate* isolate) |
1205 { | 1373 { |
1206 functionTemplate->ReadOnlyPrototype(); | 1374 functionTemplate->ReadOnlyPrototype(); |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1372 } | 1540 } |
1373 | 1541 |
1374 template<> | 1542 template<> |
1375 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) | 1543 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) |
1376 { | 1544 { |
1377 return toV8(impl, creationContext, isolate); | 1545 return toV8(impl, creationContext, isolate); |
1378 } | 1546 } |
1379 | 1547 |
1380 } // namespace WebCore | 1548 } // namespace WebCore |
1381 #endif // ENABLE(CONDITION) | 1549 #endif // ENABLE(CONDITION) |
OLD | NEW |