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

Unified Diff: Source/core/dom/Node.cpp

Issue 1144313003: Added PointerEvent firing on touch events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. TODO fixes. Created 5 years, 6 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
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/events/EventTarget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index 306bc2212d4b0077fe21ed46dd223360ef532bd4..abf2c4ba616bd77200cd0081953606eee4bf83ef 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -68,6 +68,7 @@
#include "core/events/KeyboardEvent.h"
#include "core/events/MouseEvent.h"
#include "core/events/MutationEvent.h"
+#include "core/events/PointerEvent.h"
#include "core/events/TextEvent.h"
#include "core/events/TouchEvent.h"
#include "core/events/UIEvent.h"
@@ -2070,6 +2071,9 @@ bool Node::dispatchEvent(PassRefPtrWillBeRawPtr<Event> event)
return EventDispatcher::dispatchEvent(*this, MouseEventDispatchMediator::create(static_pointer_cast<MouseEvent>(event), MouseEventDispatchMediator::SyntheticMouseEvent));
if (event->isTouchEvent())
return dispatchTouchEvent(static_pointer_cast<TouchEvent>(event));
+ if (event->isPointerEvent())
+ return dispatchPointerEvent(static_pointer_cast<PointerEvent>(event));
+
return EventDispatcher::dispatchEvent(*this, EventDispatchMediator::create(event));
}
@@ -2119,6 +2123,11 @@ bool Node::dispatchTouchEvent(PassRefPtrWillBeRawPtr<TouchEvent> event)
return EventDispatcher::dispatchEvent(*this, TouchEventDispatchMediator::create(event));
}
+bool Node::dispatchPointerEvent(PassRefPtrWillBeRawPtr<PointerEvent> event)
+{
+ return EventDispatcher::dispatchEvent(*this, PointerEventDispatchMediator::create(event));
+}
+
void Node::dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEventOptions eventOptions)
{
EventDispatcher::dispatchSimulatedClick(*this, underlyingEvent, eventOptions);
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/events/EventTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698