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

Unified Diff: third_party/WebKit/Source/core/events/GestureEvent.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/GestureEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/GestureEvent.cpp b/third_party/WebKit/Source/core/events/GestureEvent.cpp
index cce2bafbbe74f1009bbe366a89867090dab2665c..89f1d2dd8fc9e1084cc2e6c46f6b053fae3ddbd8 100644
--- a/third_party/WebKit/Source/core/events/GestureEvent.cpp
+++ b/third_party/WebKit/Source/core/events/GestureEvent.cpp
@@ -126,31 +126,9 @@ GestureEvent::GestureEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<Abst
{
}
-PassRefPtrWillBeRawPtr<EventDispatchMediator> GestureEvent::createMediator()
-{
- return GestureEventDispatchMediator::create(this);
-}
-
DEFINE_TRACE(GestureEvent)
{
MouseRelatedEvent::trace(visitor);
}
-GestureEventDispatchMediator::GestureEventDispatchMediator(PassRefPtrWillBeRawPtr<GestureEvent> gestureEvent)
- : EventDispatchMediator(gestureEvent)
-{
-}
-
-GestureEvent& GestureEventDispatchMediator::event() const
-{
- return toGestureEvent(EventDispatchMediator::event());
-}
-
-bool GestureEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) const
-{
- dispatcher.dispatch();
- ASSERT(!event().defaultPrevented());
- return event().defaultHandled() || event().defaultPrevented();
-}
-
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/events/GestureEvent.h ('k') | third_party/WebKit/Source/core/events/InputEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698