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

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: Rebase Created 5 years 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 aecab718ca0c199f1331761e14ab11df8eff6316..b228b4a0af37ff9f6ff23076b739f5ac1319d578 100644
--- a/third_party/WebKit/Source/core/events/WheelEvent.cpp
+++ b/third_party/WebKit/Source/core/events/WheelEvent.cpp
@@ -107,7 +107,7 @@ bool WheelEvent::isWheelEvent() const
PassRefPtrWillBeRawPtr<EventDispatchMediator> WheelEvent::createMediator()
{
- return WheelEventDispatchMediator::create(this);
+ return EventDispatchMediator::create(this);
}
DEFINE_TRACE(WheelEvent)
@@ -115,24 +115,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

Powered by Google App Engine
This is Rietveld 408576698