Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1093)

Unified Diff: third_party/WebKit/Source/core/events/WheelEvent.cpp

Issue 1479923002: Enumerate the return value of dispatchEvent so it is clear. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_passive_uma_add
Patch Set: Fix typo Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/events/WheelEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/WheelEvent.cpp b/third_party/WebKit/Source/core/events/WheelEvent.cpp
index 3300b8d31911f27a1290ee7b0cf771db40a6e497..f7051f1d99bee945a7742f59785e42b36c8cb39d 100644
--- a/third_party/WebKit/Source/core/events/WheelEvent.cpp
+++ b/third_party/WebKit/Source/core/events/WheelEvent.cpp
@@ -106,7 +106,7 @@ bool WheelEvent::isWheelEvent() const
PassRefPtrWillBeRawPtr<EventDispatchMediator> WheelEvent::createMediator()
{
- return WheelEventDispatchMediator::create(this);
+ return EventDispatchMediator::create(this);
}
DEFINE_TRACE(WheelEvent)
@@ -114,24 +114,4 @@ DEFINE_TRACE(WheelEvent)
MouseEvent::trace(visitor);
}
-PassRefPtrWillBeRawPtr<WheelEventDispatchMediator> WheelEventDispatchMediator::create(PassRefPtrWillBeRawPtr<WheelEvent> event)
-{
- return adoptRefWillBeNoop(new WheelEventDispatchMediator(event));
-}
-
-WheelEventDispatchMediator::WheelEventDispatchMediator(PassRefPtrWillBeRawPtr<WheelEvent> event)
- : EventDispatchMediator(event)
-{
-}
-
-WheelEvent& WheelEventDispatchMediator::event() const
-{
- return toWheelEvent(EventDispatchMediator::event());
-}
-
-bool WheelEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) const
-{
- return EventDispatchMediator::dispatchEvent(dispatcher) && !event().defaultHandled();
-}
-
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/events/WheelEvent.h ('k') | third_party/WebKit/Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698