Changeset 138674 in webkit
- Timestamp:
- Jan 2, 2013, 4:21:33 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r138670 r138674 1 2013-01-02 Elliott Sprehn <esprehn@chromium.org> 2 3 Clean up dispatchEvent overrides and overloads 4 https://bugs.webkit.org/show_bug.cgi?id=105959 5 6 Reviewed by Adam Barth. 7 8 Add OVERRIDE to all dispatchEvent overrides and use "using" instead of 9 reimplementing EventTarget::dispatchEvent in subclasses where having the 10 virtual override of dispatchEvent hides the overloads in 11 the superclass. 12 13 No new tests, just refactoring. 14 15 * Modules/indexeddb/IDBDatabase.h: 16 (IDBDatabase): 17 * Modules/indexeddb/IDBOpenDBRequest.h: 18 (IDBOpenDBRequest): 19 * Modules/indexeddb/IDBRequest.h: 20 (IDBRequest): 21 * Modules/indexeddb/IDBTransaction.h: 22 (IDBTransaction): 23 * dom/EventDispatchMediator.h: 24 (FocusEventDispatchMediator): 25 (BlurEventDispatchMediator): 26 * dom/GestureEvent.h: 27 (GestureEventDispatchMediator): 28 * dom/KeyboardEvent.h: 29 (KeyboardEventDispatchMediator): 30 * dom/MouseEvent.h: 31 * dom/Node.h: 32 (Node): 33 * dom/UIEvent.h: 34 (FocusInEventDispatchMediator): 35 (FocusOutEventDispatchMediator): 36 * dom/WheelEvent.h: 37 (WheelEventDispatchMediator): 38 * html/HTMLMediaElement.h: 39 * html/track/TextTrackCue.cpp: 40 * html/track/TextTrackCue.h: 41 (TextTrackCue): 42 * page/DOMWindow.h: 43 (DOMWindow): 44 * svg/SVGElementInstance.h: 45 (SVGElementInstance): 46 1 47 2013-01-02 David Grogan <dgrogan@chromium.org> 2 48 -
trunk/Source/WebCore/Modules/indexeddb/IDBDatabase.h
r138081 r138674 94 94 const IDBDatabaseMetadata metadata() const { return m_metadata; } 95 95 void enqueueEvent(PassRefPtr<Event>); 96 bool dispatchEvent(PassRefPtr<Event> event, ExceptionCode& ec) { return EventTarget::dispatchEvent(event, ec); } 97 virtual bool dispatchEvent(PassRefPtr<Event>); 96 97 using EventTarget::dispatchEvent; 98 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; 98 99 99 100 int64_t findObjectStoreId(const String& name) const; -
trunk/Source/WebCore/Modules/indexeddb/IDBOpenDBRequest.h
r136714 r138674 48 48 // EventTarget 49 49 virtual const AtomicString& interfaceName() const; 50 virtual bool dispatchEvent(PassRefPtr<Event>) ;50 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; 51 51 52 52 DEFINE_ATTRIBUTE_EVENT_LISTENER(blocked); -
trunk/Source/WebCore/Modules/indexeddb/IDBRequest.h
r136696 r138674 106 106 virtual const AtomicString& interfaceName() const; 107 107 virtual ScriptExecutionContext* scriptExecutionContext() const; 108 virtual bool dispatchEvent(PassRefPtr<Event>);109 bool dispatchEvent(PassRefPtr<Event> event, ExceptionCode& ec) { return EventTarget::dispatchEvent(event, ec); }110 108 virtual void uncaughtExceptionInEventHandler(); 109 110 using EventTarget::dispatchEvent; 111 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; 111 112 112 113 void transactionDidFinishAndDispatch(); -
trunk/Source/WebCore/Modules/indexeddb/IDBTransaction.h
r136894 r138674 114 114 virtual const AtomicString& interfaceName() const; 115 115 virtual ScriptExecutionContext* scriptExecutionContext() const; 116 virtual bool dispatchEvent(PassRefPtr<Event>); 117 bool dispatchEvent(PassRefPtr<Event> event, ExceptionCode& ec) { return EventTarget::dispatchEvent(event, ec); } 116 117 using EventTarget::dispatchEvent; 118 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; 118 119 119 120 // ActiveDOMObject -
trunk/Source/WebCore/dom/EventDispatchMediator.h
r108034 r138674 63 63 private: 64 64 explicit FocusEventDispatchMediator(PassRefPtr<Node> oldFocusedNode); 65 virtual bool dispatchEvent(EventDispatcher*) const ;65 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 66 66 RefPtr<Node> m_oldFocusedNode; 67 67 }; … … 72 72 private: 73 73 explicit BlurEventDispatchMediator(PassRefPtr<Node> newFocusedNode); 74 virtual bool dispatchEvent(EventDispatcher*) const ;74 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 75 75 RefPtr<Node> m_newFocusedNode; 76 76 }; -
trunk/Source/WebCore/dom/GestureEvent.h
r124098 r138674 73 73 GestureEvent* event() const; 74 74 75 virtual bool dispatchEvent(EventDispatcher*) const ;75 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 76 76 }; 77 77 -
trunk/Source/WebCore/dom/KeyboardEvent.h
r123451 r138674 123 123 private: 124 124 explicit KeyboardEventDispatchMediator(PassRefPtr<KeyboardEvent>); 125 virtual bool dispatchEvent(EventDispatcher*) const ;125 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 126 126 }; 127 127 -
trunk/Source/WebCore/dom/MouseEvent.h
r136918 r138674 123 123 MouseEvent* event() const; 124 124 125 virtual bool dispatchEvent(EventDispatcher*) const ;125 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 126 126 bool isSyntheticMouseEvent() const { return m_mouseEventType == SyntheticMouseEvent; } 127 127 MouseEventType m_mouseEventType; -
trunk/Source/WebCore/dom/Node.h
r138404 r138674 617 617 618 618 using EventTarget::dispatchEvent; 619 bool dispatchEvent(PassRefPtr<Event>); 619 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; 620 620 621 void dispatchScopedEvent(PassRefPtr<Event>); 621 622 void dispatchScopedEventDispatchMediator(PassRefPtr<EventDispatchMediator>); -
trunk/Source/WebCore/dom/UIEvent.h
r117335 r138674 78 78 private: 79 79 explicit FocusInEventDispatchMediator(PassRefPtr<Event>, PassRefPtr<Node> oldFocusedNode); 80 virtual bool dispatchEvent(EventDispatcher*) const ;80 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 81 81 RefPtr<Node> m_oldFocusedNode; 82 82 }; … … 87 87 private: 88 88 explicit FocusOutEventDispatchMediator(PassRefPtr<Event>, PassRefPtr<Node> newFocusedNode); 89 virtual bool dispatchEvent(EventDispatcher*) const ;89 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 90 90 RefPtr<Node> m_newFocusedNode; 91 91 }; -
trunk/Source/WebCore/dom/WheelEvent.h
r131826 r138674 92 92 WheelEventDispatchMediator(const PlatformWheelEvent&, PassRefPtr<AbstractView>); 93 93 WheelEvent* event() const; 94 virtual bool dispatchEvent(EventDispatcher*) const ;94 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 95 95 }; 96 96 -
trunk/Source/WebCore/html/HTMLMediaElement.h
r138224 r138674 332 332 void setController(PassRefPtr<MediaController>); 333 333 334 virtual bool dispatchEvent(PassRefPtr<Event>) ;334 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; 335 335 336 336 virtual bool willRespondToMouseClickEvents() OVERRIDE; -
trunk/Source/WebCore/html/track/TextTrackCue.cpp
r138017 r138674 531 531 } 532 532 533 bool TextTrackCue::dispatchEvent(PassRefPtr<Event> event, ExceptionCode &ec)534 {535 return EventTarget::dispatchEvent(event, ec);536 }537 538 533 bool TextTrackCue::isActive() 539 534 { -
trunk/Source/WebCore/html/track/TextTrackCue.h
r138017 r138674 129 129 void markNodesAsWebVTTNodes(Node*); 130 130 131 virtual bool dispatchEvent(PassRefPtr<Event>);132 bool dispatchEvent(PassRefPtr<Event>, ExceptionCode&);131 using EventTarget::dispatchEvent; 132 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; 133 133 134 134 bool isActive(); -
trunk/Source/WebCore/page/DOMWindow.h
r134586 r138674 276 276 using EventTarget::dispatchEvent; 277 277 bool dispatchEvent(PassRefPtr<Event> prpEvent, PassRefPtr<EventTarget> prpTarget); 278 278 279 void dispatchLoadEvent(); 279 280 -
trunk/Source/WebCore/svg/SVGElementInstance.h
r125251 r138674 56 56 virtual bool removeEventListener(const AtomicString& eventType, EventListener*, bool useCapture); 57 57 virtual void removeAllEventListeners(); 58 58 59 using EventTarget::dispatchEvent; 59 virtual bool dispatchEvent(PassRefPtr<Event>) ;60 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; 60 61 61 62 SVGElement* correspondingElement() const { return m_element.get(); }
Note:
See TracChangeset
for help on using the changeset viewer.