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

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

Issue 2517603002: Fired PointerEvent from Node::dispatchMouseEvent() to fix a bug. (Closed)
Patch Set: Created 4 years, 1 month 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 bca9099e9d7a2fd8d88317f11fce9d5f4798a158..8c95f8f68db451e8b70f1289a40619b80ffc12ee 100644
--- a/third_party/WebKit/Source/core/dom/Node.h
+++ b/third_party/WebKit/Source/core/dom/Node.h
@@ -726,10 +726,10 @@ class CORE_EXPORT Node : public EventTarget {
DispatchEventResult dispatchDOMActivateEvent(int detail,
Event* underlyingEvent);
- DispatchEventResult dispatchMouseEvent(const PlatformMouseEvent&,
- const AtomicString& eventType,
- int clickCount = 0,
- Node* relatedTarget = nullptr);
+ void dispatchMouseEvent(const PlatformMouseEvent&,
+ const AtomicString& eventType,
+ int clickCount = 0,
+ Node* relatedTarget = nullptr);
void dispatchSimulatedClick(
Event* underlyingEvent,
@@ -855,6 +855,13 @@ class CORE_EXPORT Node : public EventTarget {
void setFlag(NodeFlags mask) { m_nodeFlags |= mask; }
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
+ // crbug.com/665924.
+ void createAndDispatchPointerEvent(const AtomicString& mouseEventName,
+ const PlatformMouseEvent&,
+ LocalDOMWindow* view);
+
protected:
enum ConstructionType {
CreateOther = DefaultNodeFlags,

Powered by Google App Engine
This is Rietveld 408576698