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

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

Issue 1160753005: Implement UIEvent.sourceDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Layout test and webexposed 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 | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/core/events/UIEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/UIEvent.h
diff --git a/Source/core/events/UIEvent.h b/Source/core/events/UIEvent.h
index 860e961f91099353348f439497d87935577cd1c7..51d80df54b7e1f0749be4e8c651537980cdb3f0a 100644
--- a/Source/core/events/UIEvent.h
+++ b/Source/core/events/UIEvent.h
@@ -29,6 +29,7 @@
#include "core/events/EventDispatchMediator.h"
#include "core/events/UIEventInit.h"
#include "core/frame/DOMWindow.h"
+#include "core/input/InputDevice.h"
namespace blink {
@@ -56,6 +57,7 @@ public:
AbstractView* view() const { return m_view.get(); }
int detail() const { return m_detail; }
+ InputDevice* sourceDevice() const { return m_sourceDevice.get(); }
virtual const AtomicString& interfaceName() const override;
virtual bool isUIEvent() const override final;
@@ -81,6 +83,7 @@ protected:
private:
RefPtrWillBeMember<AbstractView> m_view;
int m_detail;
+ PersistentWillBeMember<InputDevice> m_sourceDevice;
};
} // namespace blink
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/core/events/UIEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698