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 10 matching lines...) Expand all Loading... |
21 #include "bindings/v8/V8AbstractEventListener.h" | 21 #include "bindings/v8/V8AbstractEventListener.h" |
22 #include "bindings/v8/V8DOMConfiguration.h" | 22 #include "bindings/v8/V8DOMConfiguration.h" |
23 #include "bindings/v8/V8EventListenerList.h" | 23 #include "bindings/v8/V8EventListenerList.h" |
24 #include "bindings/v8/V8HiddenValue.h" | 24 #include "bindings/v8/V8HiddenValue.h" |
25 #include "bindings/v8/V8ObjectConstructor.h" | 25 #include "bindings/v8/V8ObjectConstructor.h" |
26 #include "core/dom/ContextFeatures.h" | 26 #include "core/dom/ContextFeatures.h" |
27 #include "core/dom/Document.h" | 27 #include "core/dom/Document.h" |
28 #include "platform/TraceEvent.h" | 28 #include "platform/TraceEvent.h" |
29 #include "wtf/GetPtr.h" | 29 #include "wtf/GetPtr.h" |
30 #include "wtf/RefPtr.h" | 30 #include "wtf/RefPtr.h" |
| 31 #include "wtf/dtoa/double.h" |
31 | 32 |
32 namespace WebCore { | 33 namespace WebCore { |
33 | 34 |
34 static void initializeScriptWrappableForInterface(TestInterfaceImplementation* o
bject) | 35 static void initializeScriptWrappableForInterface(TestInterfaceImplementation* o
bject) |
35 { | 36 { |
36 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) | 37 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) |
37 ScriptWrappable::fromObject(object)->setTypeInfo(&V8TestInterface::wrapp
erTypeInfo); | 38 ScriptWrappable::fromObject(object)->setTypeInfo(&V8TestInterface::wrapp
erTypeInfo); |
38 else | 39 else |
39 ASSERT_NOT_REACHED(); | 40 ASSERT_NOT_REACHED(); |
40 } | 41 } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); | 82 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); |
82 } | 83 } |
83 | 84 |
84 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 85 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
85 { | 86 { |
86 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 87 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
87 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeSetter
(v8Value, info); | 88 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeSetter
(v8Value, info); |
88 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 89 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
89 } | 90 } |
90 | 91 |
| 92 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
| 93 { |
| 94 v8::Handle<v8::Object> holder = info.Holder(); |
| 95 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 96 v8SetReturnValue(info, impl->doubleAttribute()); |
| 97 } |
| 98 |
| 99 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 100 { |
| 101 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 102 TestInterfaceImplementationV8Internal::doubleAttributeAttributeGetter(info); |
| 103 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 104 } |
| 105 |
| 106 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
| 107 { |
| 108 v8::Handle<v8::Object> holder = info.Holder(); |
| 109 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 110 TONATIVE_VOID(double, cppValue, static_cast<double>(v8Value->NumberValue()))
; |
| 111 impl->setDoubleAttribute(cppValue); |
| 112 } |
| 113 |
| 114 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 115 { |
| 116 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 117 TestInterfaceImplementationV8Internal::doubleAttributeAttributeSetter(v8Valu
e, info); |
| 118 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 119 } |
| 120 |
| 121 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
| 122 { |
| 123 v8::Handle<v8::Object> holder = info.Holder(); |
| 124 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 125 v8SetReturnValue(info, impl->floatAttribute()); |
| 126 } |
| 127 |
| 128 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 129 { |
| 130 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 131 TestInterfaceImplementationV8Internal::floatAttributeAttributeGetter(info); |
| 132 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 133 } |
| 134 |
| 135 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
| 136 { |
| 137 v8::Handle<v8::Object> holder = info.Holder(); |
| 138 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 139 TONATIVE_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue())); |
| 140 impl->setFloatAttribute(cppValue); |
| 141 } |
| 142 |
| 143 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 144 { |
| 145 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 146 TestInterfaceImplementationV8Internal::floatAttributeAttributeSetter(v8Value
, info); |
| 147 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 148 } |
| 149 |
91 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 150 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
92 { | 151 { |
93 v8SetReturnValueString(info, TestInterfaceImplementation::staticStringAttrib
ute(), info.GetIsolate()); | 152 v8SetReturnValueString(info, TestInterfaceImplementation::staticStringAttrib
ute(), info.GetIsolate()); |
94 } | 153 } |
95 | 154 |
96 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 155 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
97 { | 156 { |
98 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 157 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
99 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeGetter(
info); | 158 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeGetter(
info); |
100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 159 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 809 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
751 } | 810 } |
752 | 811 |
753 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 812 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
754 { | 813 { |
755 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 814 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
756 TestInterfaceImplementationV8Internal::voidMethodTestInterfaceEmptyArgMethod
(info); | 815 TestInterfaceImplementationV8Internal::voidMethodTestInterfaceEmptyArgMethod
(info); |
757 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 816 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
758 } | 817 } |
759 | 818 |
| 819 static void voidMethodDoubleArgFloatArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 820 { |
| 821 if (UNLIKELY(info.Length() < 2)) { |
| 822 throwArityTypeErrorForMethod("voidMethodDoubleArgFloatArg", "TestInterfa
ce", 2, info.Length(), info.GetIsolate()); |
| 823 return; |
| 824 } |
| 825 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
| 826 if (info.Length() > 0 && WTF::double_conversion::Double(info[0]->NumberValue
()).IsSpecial()) { |
| 827 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArgFl
oatArg", "TestInterface", "double parameter 1 is non-finite."), info.GetIsolate(
)); |
| 828 return; |
| 829 } |
| 830 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue())
); |
| 831 if (info.Length() > 1 && WTF::double_conversion::Double(info[1]->NumberValue
()).IsSpecial()) { |
| 832 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArgFl
oatArg", "TestInterface", "float parameter 2 is non-finite."), info.GetIsolate()
); |
| 833 return; |
| 834 } |
| 835 TONATIVE_VOID(float, floatArg, static_cast<float>(info[1]->NumberValue())); |
| 836 impl->voidMethodDoubleArgFloatArg(doubleArg, floatArg); |
| 837 } |
| 838 |
| 839 static void voidMethodDoubleArgFloatArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 840 { |
| 841 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 842 TestInterfaceImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(inf
o); |
| 843 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 844 } |
| 845 |
760 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 846 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
761 { | 847 { |
762 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; | 848 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
763 impl->voidMethod(); | 849 impl->voidMethod(); |
764 } | 850 } |
765 | 851 |
766 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 852 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
767 { | 853 { |
768 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 854 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
769 TestInterfaceImplementationV8Internal::voidMethodMethod(info); | 855 TestInterfaceImplementationV8Internal::voidMethodMethod(info); |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1177 if (!DOMDataStore::containsWrapper<V8TestInterface>(referencedName, isol
ate)) | 1263 if (!DOMDataStore::containsWrapper<V8TestInterface>(referencedName, isol
ate)) |
1178 wrap(referencedName, creationContext, isolate); | 1264 wrap(referencedName, creationContext, isolate); |
1179 DOMDataStore::setWrapperReference<V8TestInterface>(wrapper, referencedNa
me, isolate); | 1265 DOMDataStore::setWrapperReference<V8TestInterface>(wrapper, referencedNa
me, isolate); |
1180 } | 1266 } |
1181 setObjectGroup(object, wrapper, isolate); | 1267 setObjectGroup(object, wrapper, isolate); |
1182 } | 1268 } |
1183 | 1269 |
1184 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute
s[] = { | 1270 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
*/}, | 1271 {"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 */}, | 1272 {"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 */}, |
| 1273 {"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 */}, |
| 1274 {"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 */}, |
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 */}, | 1275 {"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 */}, | 1276 {"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 */}, | 1277 {"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 */}, | 1278 {"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 */}, | 1279 {"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 */}, | 1280 {"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 }; | 1281 }; |
1194 | 1282 |
1195 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] =
{ | 1283 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] =
{ |
1196 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, | 1284 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, |
| 1285 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM
ethodDoubleArgFloatArgMethodCallback, 0, 2}, |
1197 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
0}, | 1286 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
0}, |
1198 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo
idMethodMethodCallback, 0, 0}, | 1287 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo
idMethodMethodCallback, 0, 0}, |
1199 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement
sComplexMethodMethodCallback, 0, 2}, | 1288 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement
sComplexMethodMethodCallback, 0, 2}, |
1200 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem
entsCustomVoidMethodMethodCallback, 0, 0}, | 1289 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem
entsCustomVoidMethodMethodCallback, 0, 0}, |
1201 {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3
VoidMethodMethodCallback, 0, 0}, | 1290 {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3
VoidMethodMethodCallback, 0, 0}, |
1202 }; | 1291 }; |
1203 | 1292 |
1204 static void configureV8TestInterfaceTemplate(v8::Handle<v8::FunctionTemplate> fu
nctionTemplate, v8::Isolate* isolate) | 1293 static void configureV8TestInterfaceTemplate(v8::Handle<v8::FunctionTemplate> fu
nctionTemplate, v8::Isolate* isolate) |
1205 { | 1294 { |
1206 functionTemplate->ReadOnlyPrototype(); | 1295 functionTemplate->ReadOnlyPrototype(); |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1372 } | 1461 } |
1373 | 1462 |
1374 template<> | 1463 template<> |
1375 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) | 1464 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) |
1376 { | 1465 { |
1377 return toV8(impl, creationContext, isolate); | 1466 return toV8(impl, creationContext, isolate); |
1378 } | 1467 } |
1379 | 1468 |
1380 } // namespace WebCore | 1469 } // namespace WebCore |
1381 #endif // ENABLE(CONDITION) | 1470 #endif // ENABLE(CONDITION) |
OLD | NEW |