| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the WebKit open source project. | 2 This file is part of the WebKit open source project. |
| 3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! | 3 This file has been generated by generate-bindings.pl. 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, |
| 11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 Library General Public License for more details. | 13 Library General Public License for more details. |
| 14 | 14 |
| 15 You should have received a copy of the GNU Library General Public License | 15 You should have received a copy of the GNU Library General Public License |
| 16 along with this library; see the file COPYING.LIB. If not, write to | 16 along with this library; see the file COPYING.LIB. If not, write to |
| 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 18 Boston, MA 02111-1307, USA. | 18 Boston, MA 02111-1307, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #include "V8TestEventTarget.h" | 22 #include "V8TestEventTarget.h" |
| 23 | 23 |
| 24 #include "BindingState.h" | 24 #include "BindingState.h" |
| 25 #include "ContextFeatures.h" | 25 #include "ContextFeatures.h" |
| 26 #include "ExceptionCode.h" | 26 #include "ExceptionCode.h" |
| 27 #include "Frame.h" | 27 #include "Frame.h" |
| 28 #include "RuntimeEnabledFeatures.h" | 28 #include "RuntimeEnabledFeatures.h" |
| 29 #include "ScriptController.h" |
| 29 #include "V8Binding.h" | 30 #include "V8Binding.h" |
| 30 #include "V8Collection.h" | 31 #include "V8Collection.h" |
| 31 #include "V8DOMWrapper.h" | 32 #include "V8DOMWrapper.h" |
| 32 #include "V8Event.h" | 33 #include "V8Event.h" |
| 33 #include "V8EventListenerList.h" | 34 #include "V8EventListenerList.h" |
| 34 #include "V8Node.h" | 35 #include "V8Node.h" |
| 35 #include <wtf/UnusedParam.h> | 36 #include <wtf/UnusedParam.h> |
| 36 | 37 |
| 37 #if ENABLE(BINDING_INTEGRITY) | 38 #if ENABLE(BINDING_INTEGRITY) |
| 38 #if defined(OS_WIN) | 39 #if defined(OS_WIN) |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 } | 162 } |
| 162 | 163 |
| 163 static v8::Handle<v8::Value> dispatchEventMethodCallback(const v8::Arguments& ar
gs) | 164 static v8::Handle<v8::Value> dispatchEventMethodCallback(const v8::Arguments& ar
gs) |
| 164 { | 165 { |
| 165 return TestEventTargetV8Internal::dispatchEventMethod(args); | 166 return TestEventTargetV8Internal::dispatchEventMethod(args); |
| 166 } | 167 } |
| 167 | 168 |
| 168 } // namespace TestEventTargetV8Internal | 169 } // namespace TestEventTargetV8Internal |
| 169 | 170 |
| 170 static const V8DOMConfiguration::BatchedMethod V8TestEventTargetMethods[] = { | 171 static const V8DOMConfiguration::BatchedMethod V8TestEventTargetMethods[] = { |
| 171 {"item", TestEventTargetV8Internal::itemMethodCallback, 0}, | 172 {"item", TestEventTargetV8Internal::itemMethodCallback, 0, 1}, |
| 172 {"namedItem", TestEventTargetV8Internal::namedItemMethodCallback, 0}, | 173 {"namedItem", TestEventTargetV8Internal::namedItemMethodCallback, 0, 1}, |
| 173 {"addEventListener", TestEventTargetV8Internal::addEventListenerMethodCallba
ck, 0}, | 174 {"addEventListener", TestEventTargetV8Internal::addEventListenerMethodCallba
ck, 0, 2}, |
| 174 {"removeEventListener", TestEventTargetV8Internal::removeEventListenerMethod
Callback, 0}, | 175 {"removeEventListener", TestEventTargetV8Internal::removeEventListenerMethod
Callback, 0, 2}, |
| 175 }; | 176 }; |
| 176 | 177 |
| 177 v8::Handle<v8::Value> V8TestEventTarget::indexedPropertyGetter(uint32_t index, c
onst v8::AccessorInfo& info) | 178 v8::Handle<v8::Value> V8TestEventTarget::indexedPropertyGetter(uint32_t index, c
onst v8::AccessorInfo& info) |
| 178 { | 179 { |
| 179 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); | 180 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); |
| 180 TestEventTarget* collection = toNative(info.Holder()); | 181 TestEventTarget* collection = toNative(info.Holder()); |
| 181 RefPtr<Node> element = collection->item(index); | 182 RefPtr<Node> element = collection->item(index); |
| 182 if (!element) | 183 if (!element) |
| 183 return v8Undefined(); | 184 return v8Undefined(); |
| 184 return toV8(element.release(), info.Holder(), info.GetIsolate()); | 185 return toV8(element.release(), info.Holder(), info.GetIsolate()); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 installPerContextProperties(wrapper, impl.get(), isolate); | 284 installPerContextProperties(wrapper, impl.get(), isolate); |
| 284 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); | 285 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); |
| 285 return wrapper; | 286 return wrapper; |
| 286 } | 287 } |
| 287 void V8TestEventTarget::derefObject(void* object) | 288 void V8TestEventTarget::derefObject(void* object) |
| 288 { | 289 { |
| 289 static_cast<TestEventTarget*>(object)->deref(); | 290 static_cast<TestEventTarget*>(object)->deref(); |
| 290 } | 291 } |
| 291 | 292 |
| 292 } // namespace WebCore | 293 } // namespace WebCore |
| OLD | NEW |