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

Unified Diff: Source/core/events/UIEvent.h

Issue 1174683004: Populates sourceDevice attribute into MouseEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Create a new init function 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
Index: Source/core/events/UIEvent.h
diff --git a/Source/core/events/UIEvent.h b/Source/core/events/UIEvent.h
index c01f7c6b26d090c72f2dbe7d5b434e5bca9b8467..bc46e1e205590e16b8186d995c71441842d0aa95 100644
--- a/Source/core/events/UIEvent.h
+++ b/Source/core/events/UIEvent.h
@@ -55,9 +55,12 @@ public:
void initUIEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView>, int detail);
+ void initUIEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView>, int detail, InputDevice* sourceDevice);
+
AbstractView* view() const { return m_view.get(); }
int detail() const { return m_detail; }
InputDevice* sourceDevice() const { return m_sourceDevice.get(); }
+ void setSourceDevice(InputDevice* sourceDevice) { m_sourceDevice = sourceDevice; }
virtual const AtomicString& interfaceName() const override;
virtual bool isUIEvent() const override final;

Powered by Google App Engine
This is Rietveld 408576698