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

Unified Diff: third_party/WebKit/Source/core/events/InputEvent.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/InputEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/InputEvent.cpp b/third_party/WebKit/Source/core/events/InputEvent.cpp
index a02a12657b6e4ee0181442929abaa9b5a1ac3920..f7eb07a65d040c9cb0071ccc8a29dc660983bf09 100644
--- a/third_party/WebKit/Source/core/events/InputEvent.cpp
+++ b/third_party/WebKit/Source/core/events/InputEvent.cpp
@@ -17,11 +17,6 @@ InputEvent::InputEvent(const AtomicString& type, const InputEventInit& initializ
{
}
-PassRefPtrWillBeRawPtr<EventDispatchMediator> InputEvent::createMediator()
-{
- return InputEventDispatchMediator::create(this);
-}
-
bool InputEvent::isInputEvent() const
{
return true;
@@ -32,24 +27,4 @@ DEFINE_TRACE(InputEvent)
UIEvent::trace(visitor);
}
-PassRefPtrWillBeRawPtr<InputEventDispatchMediator> InputEventDispatchMediator::create(PassRefPtrWillBeRawPtr<InputEvent> inputEvent)
-{
- return adoptRefWillBeNoop(new InputEventDispatchMediator(inputEvent));
-}
-
-InputEventDispatchMediator::InputEventDispatchMediator(PassRefPtrWillBeRawPtr<InputEvent> inputEvent)
- : EventDispatchMediator(inputEvent)
-{
-}
-
-InputEvent& InputEventDispatchMediator::event() const
-{
- return toInputEvent(EventDispatchMediator::event());
-}
-
-bool InputEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) const
-{
- return EventDispatchMediator::dispatchEvent(dispatcher) && !event().defaultHandled();
-}
-
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/events/InputEvent.h ('k') | third_party/WebKit/Source/core/events/KeyboardEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698