OLD | NEW |
1 /* | 1 /* |
2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
4 | 4 |
5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
9 | 9 |
10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 #include "RuntimeEnabledFeatures.h" | 25 #include "RuntimeEnabledFeatures.h" |
26 #include "V8Node.h" | 26 #include "V8Node.h" |
27 #include "V8NodeList.h" | 27 #include "V8NodeList.h" |
28 #include "V8TestObject.h" | 28 #include "V8TestObject.h" |
29 #include "bindings/tests/idls/TestImplements.h" | 29 #include "bindings/tests/idls/TestImplements.h" |
30 #include "bindings/tests/idls/TestPartialInterface.h" | 30 #include "bindings/tests/idls/TestPartialInterface.h" |
31 #include "bindings/v8/ExceptionMessages.h" | 31 #include "bindings/v8/ExceptionMessages.h" |
32 #include "bindings/v8/ExceptionState.h" | 32 #include "bindings/v8/ExceptionState.h" |
33 #include "bindings/v8/ScriptController.h" | 33 #include "bindings/v8/ScriptController.h" |
| 34 #include "bindings/v8/V8AbstractEventListener.h" |
34 #include "bindings/v8/V8Binding.h" | 35 #include "bindings/v8/V8Binding.h" |
35 #include "bindings/v8/V8DOMConfiguration.h" | 36 #include "bindings/v8/V8DOMConfiguration.h" |
36 #include "bindings/v8/V8DOMWrapper.h" | 37 #include "bindings/v8/V8DOMWrapper.h" |
| 38 #include "bindings/v8/V8EventListenerList.h" |
37 #include "bindings/v8/V8ObjectConstructor.h" | 39 #include "bindings/v8/V8ObjectConstructor.h" |
38 #include "core/dom/ContextFeatures.h" | 40 #include "core/dom/ContextFeatures.h" |
39 #include "core/dom/Document.h" | 41 #include "core/dom/Document.h" |
40 #include "platform/TraceEvent.h" | 42 #include "platform/TraceEvent.h" |
41 #include "wtf/GetPtr.h" | 43 #include "wtf/GetPtr.h" |
42 #include "wtf/RefPtr.h" | 44 #include "wtf/RefPtr.h" |
43 #include "wtf/UnusedParam.h" | 45 #include "wtf/UnusedParam.h" |
44 | 46 |
45 namespace WebCore { | 47 namespace WebCore { |
46 | 48 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 TestImplements::setImplementsNode(imp, WTF::getPtr(cppValue)); | 183 TestImplements::setImplementsNode(imp, WTF::getPtr(cppValue)); |
182 } | 184 } |
183 | 185 |
184 static void implementsNodeAttributeSetterCallback(v8::Local<v8::String> name, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 186 static void implementsNodeAttributeSetterCallback(v8::Local<v8::String> name, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
185 { | 187 { |
186 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 188 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
187 TestInterfaceV8Internal::implementsNodeAttributeSetter(name, jsValue, info); | 189 TestInterfaceV8Internal::implementsNodeAttributeSetter(name, jsValue, info); |
188 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
189 } | 191 } |
190 | 192 |
| 193 static void eventHandlerAttributeAttributeGetter(v8::Local<v8::String> name, con
st v8::PropertyCallbackInfo<v8::Value>& info) |
| 194 { |
| 195 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 196 EventListener* jsValue = TestImplements::eventHandlerAttribute(imp, isolated
WorldForIsolate(info.GetIsolate())); |
| 197 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen
er::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8::
Value>(v8::Null(info.GetIsolate()))); |
| 198 } |
| 199 |
| 200 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String> n
ame, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 201 { |
| 202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 203 TestInterfaceV8Internal::eventHandlerAttributeAttributeGetter(name, info); |
| 204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 205 } |
| 206 |
| 207 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::String> name, v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 208 { |
| 209 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 210 transferHiddenDependency(info.Holder(), TestImplements::eventHandlerAttribut
e(imp, isolatedWorldForIsolate(info.GetIsolate())), jsValue, V8TestInterface::ev
entListenerCacheIndex, info.GetIsolate()); |
| 211 TestImplements::setEventHandlerAttribute(imp, V8EventListenerList::getEventL
istener(jsValue, true, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIs
olate())); |
| 212 } |
| 213 |
| 214 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String> n
ame, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 215 { |
| 216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 217 TestInterfaceV8Internal::eventHandlerAttributeAttributeSetter(name, jsValue,
info); |
| 218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 219 } |
| 220 |
191 static void Node23AttributeGetter(v8::Local<v8::String> name, const v8::Property
CallbackInfo<v8::Value>& info) | 221 static void Node23AttributeGetter(v8::Local<v8::String> name, const v8::Property
CallbackInfo<v8::Value>& info) |
192 { | 222 { |
193 TestInterface* imp = V8TestInterface::toNative(info.Holder()); | 223 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
194 v8SetReturnValueFast(info, TestImplements::node23(imp), imp); | 224 v8SetReturnValueFast(info, TestImplements::node23(imp), imp); |
195 } | 225 } |
196 | 226 |
197 static void Node23AttributeGetterCallback(v8::Local<v8::String> name, const v8::
PropertyCallbackInfo<v8::Value>& info) | 227 static void Node23AttributeGetterCallback(v8::Local<v8::String> name, const v8::
PropertyCallbackInfo<v8::Value>& info) |
198 { | 228 { |
199 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 229 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
200 TestInterfaceV8Internal::Node23AttributeGetter(name, info); | 230 TestInterfaceV8Internal::Node23AttributeGetter(name, info); |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 786 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
757 } | 787 } |
758 | 788 |
759 } // namespace TestInterfaceV8Internal | 789 } // namespace TestInterfaceV8Internal |
760 | 790 |
761 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute
s[] = { | 791 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute
s[] = { |
762 {"implementsStr1", TestInterfaceV8Internal::implementsStr1AttributeGetterCal
lback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), 0 /* on instance */}, | 792 {"implementsStr1", TestInterfaceV8Internal::implementsStr1AttributeGetterCal
lback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), 0 /* on instance */}, |
763 {"implementsStr2", TestInterfaceV8Internal::implementsStr2AttributeGetterCal
lback, TestInterfaceV8Internal::implementsStr2AttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 793 {"implementsStr2", TestInterfaceV8Internal::implementsStr2AttributeGetterCal
lback, TestInterfaceV8Internal::implementsStr2AttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
764 {"implementsStr3", TestInterfaceV8Internal::implementsStr3AttributeGetterCal
lback, TestInterfaceV8Internal::implementsStr3AttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 794 {"implementsStr3", TestInterfaceV8Internal::implementsStr3AttributeGetterCal
lback, TestInterfaceV8Internal::implementsStr3AttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
765 {"implementsNode", TestInterfaceV8Internal::implementsNodeAttributeGetterCal
lback, TestInterfaceV8Internal::implementsNodeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 795 {"implementsNode", TestInterfaceV8Internal::implementsNodeAttributeGetterCal
lback, TestInterfaceV8Internal::implementsNodeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
| 796 {"eventHandlerAttribute", TestInterfaceV8Internal::eventHandlerAttributeAttr
ibuteGetterCallback, TestInterfaceV8Internal::eventHandlerAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
766 #if ENABLE(Condition11) || ENABLE(Condition12) | 797 #if ENABLE(Condition11) || ENABLE(Condition12) |
767 {"supplementalStr1", TestInterfaceV8Internal::supplementalStr1AttributeGette
rCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<
v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 798 {"supplementalStr1", TestInterfaceV8Internal::supplementalStr1AttributeGette
rCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<
v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
768 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 799 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
769 #if ENABLE(Condition11) || ENABLE(Condition12) | 800 #if ENABLE(Condition11) || ENABLE(Condition12) |
770 {"supplementalStr2", TestInterfaceV8Internal::supplementalStr2AttributeGette
rCallback, TestInterfaceV8Internal::supplementalStr2AttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, | 801 {"supplementalStr2", TestInterfaceV8Internal::supplementalStr2AttributeGette
rCallback, TestInterfaceV8Internal::supplementalStr2AttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, |
771 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 802 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
772 #if ENABLE(Condition11) || ENABLE(Condition12) | 803 #if ENABLE(Condition11) || ENABLE(Condition12) |
773 {"supplementalStr3", TestInterfaceV8Internal::supplementalStr3AttributeGette
rCallback, TestInterfaceV8Internal::supplementalStr3AttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, | 804 {"supplementalStr3", TestInterfaceV8Internal::supplementalStr3AttributeGette
rCallback, TestInterfaceV8Internal::supplementalStr3AttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, |
774 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 805 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
775 #if ENABLE(Condition11) || ENABLE(Condition12) | 806 #if ENABLE(Condition11) || ENABLE(Condition12) |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
948 } | 979 } |
949 | 980 |
950 void V8TestInterface::derefObject(void* object) | 981 void V8TestInterface::derefObject(void* object) |
951 { | 982 { |
952 fromInternalPointer(object)->deref(); | 983 fromInternalPointer(object)->deref(); |
953 } | 984 } |
954 | 985 |
955 } // namespace WebCore | 986 } // namespace WebCore |
956 | 987 |
957 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 988 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
OLD | NEW |