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

Unified Diff: third_party/WebKit/Source/core/dom/Node.h

Issue 2650403006: Remove PlatformMouseEvent and use WebMouseEvent instead (Closed)
Patch Set: Created 3 years, 11 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/dom/Node.h
diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h
index c02e8527d0a984ea5f96d30d0251cd1ac4e3de41..48f16d982ecc79ef7e49a6c56b8ca86d6ac86a92 100644
--- a/third_party/WebKit/Source/core/dom/Node.h
+++ b/third_party/WebKit/Source/core/dom/Node.h
@@ -60,7 +60,6 @@ class EventDispatchHandlingState;
class NodeList;
class NodeListsNodeData;
class NodeRareData;
-class PlatformMouseEvent;
class QualifiedName;
class RegisteredEventListener;
class LayoutBox;
@@ -74,6 +73,7 @@ class StaticNodeTypeList;
using StaticNodeList = StaticNodeTypeList<Node>;
class StyleChangeReasonForTracing;
class Text;
+class WebMouseEvent;
const int nodeStyleChangeShift = 18;
const int nodeCustomElementShift = 20;
@@ -717,9 +717,10 @@ class CORE_EXPORT Node : public EventTarget {
DispatchEventResult dispatchDOMActivateEvent(int detail,
Event& underlyingEvent);
- void dispatchMouseEvent(const PlatformMouseEvent&,
+ void dispatchMouseEvent(const WebMouseEvent&,
const AtomicString& eventType,
int clickCount = 0,
+ const String& canvasNodeId = String(),
Node* relatedTarget = nullptr);
void dispatchSimulatedClick(
@@ -842,10 +843,10 @@ class CORE_EXPORT Node : public EventTarget {
void clearFlag(NodeFlags mask) { m_nodeFlags &= ~mask; }
// TODO(mustaq): This is a hack to fix sites with flash objects. We should
- // instead route all PlatformMouseEvents through EventHandler. See
+ // instead route all WebMouseEvents through EventHandler. See
// crbug.com/665924.
void createAndDispatchPointerEvent(const AtomicString& mouseEventName,
- const PlatformMouseEvent&,
+ const WebMouseEvent&,
LocalDOMWindow* view);
protected:

Powered by Google App Engine
This is Rietveld 408576698