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

Unified Diff: third_party/WebKit/Source/core/events/MouseEvent.h

Issue 2344693002: Support WebPointerProperties in MouseEvent (Closed)
Patch Set: fixed osx build Created 4 years, 3 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/MouseEvent.h
diff --git a/third_party/WebKit/Source/core/events/MouseEvent.h b/third_party/WebKit/Source/core/events/MouseEvent.h
index 098d7a7b3d4f141a655ce9af7f231e03242218eb..ac75f7fe139b0564da59b4e203e2f76a7c002b13 100644
--- a/third_party/WebKit/Source/core/events/MouseEvent.h
+++ b/third_party/WebKit/Source/core/events/MouseEvent.h
@@ -50,7 +50,8 @@ public:
EventTarget* relatedTarget,
double platformTimeStamp,
PlatformMouseEvent::SyntheticEventType,
- const String& region);
+ const String& region,
+ const PlatformMouseEvent*);
static MouseEvent* create(const AtomicString& eventType, AbstractView*, const PlatformMouseEvent&, int detail, Node* relatedTarget);
@@ -94,6 +95,8 @@ public:
int clickCount() { return detail(); }
+ const PlatformMouseEvent* mouseEvent() const { return m_mouseEvent.get(); }
+
DECLARE_VIRTUAL_TRACE();
protected:
@@ -104,7 +107,8 @@ protected:
EventTarget* relatedTarget,
double platformTimeStamp,
PlatformMouseEvent::SyntheticEventType,
- const String& region);
+ const String& region,
+ const PlatformMouseEvent*);
MouseEvent(const AtomicString& type, const MouseEventInit&);
@@ -124,6 +128,7 @@ private:
Member<EventTarget> m_relatedTarget;
PlatformMouseEvent::SyntheticEventType m_syntheticEventType;
String m_region;
+ std::unique_ptr<PlatformMouseEvent> m_mouseEvent;
};
class MouseEventDispatchMediator final : public EventDispatchMediator {
« no previous file with comments | « third_party/WebKit/Source/core/events/DragEvent.cpp ('k') | third_party/WebKit/Source/core/events/MouseEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698