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

Unified Diff: Source/core/events/PointerEvent.cpp

Issue 1144313003: Added PointerEvent firing on touch events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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: Source/core/events/PointerEvent.cpp
diff --git a/Source/core/events/PointerEvent.cpp b/Source/core/events/PointerEvent.cpp
index 3cfe5e0c6645a3ab36520117c1dcba83b753d19e..b37312d82384ad1e5f5b5315e82acc25435cafdb 100644
--- a/Source/core/events/PointerEvent.cpp
+++ b/Source/core/events/PointerEvent.cpp
@@ -3,8 +3,11 @@
// found in the LICENSE file.
#include "config.h"
+
#include "core/events/PointerEvent.h"
+#include "core/events/EventDispatcher.h"
+
namespace blink {
PointerEvent::PointerEvent()
@@ -56,4 +59,25 @@ DEFINE_TRACE(PointerEvent)
MouseEvent::trace(visitor);
}
+PassRefPtrWillBeRawPtr<PointerEventDispatchMediator> PointerEventDispatchMediator::create(PassRefPtrWillBeRawPtr<PointerEvent> pointerEvent)
+{
+ return adoptRefWillBeNoop(new PointerEventDispatchMediator(pointerEvent));
+}
+
+PointerEventDispatchMediator::PointerEventDispatchMediator(PassRefPtrWillBeRawPtr<PointerEvent> pointerEvent)
+ : EventDispatchMediator(pointerEvent)
+{
+}
+
+PointerEvent& PointerEventDispatchMediator::event() const
+{
+ return toPointerEvent(EventDispatchMediator::event());
+}
+
+bool PointerEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) const
+{
+ fprintf(stderr, "mDebug %s:%d\n", __FILE__, __LINE__);
+ return dispatcher.dispatch();
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698