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

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

Issue 1161783006: Populates sourceDevice attribute into TouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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/UIEventWithKeyState.h
diff --git a/Source/core/events/UIEventWithKeyState.h b/Source/core/events/UIEventWithKeyState.h
index 8cd3d043b18a4d47ec5b7fabbf6b116e7c4ad0e6..2e4412acfafb99bcbf3854aa2e2155d1682de679 100644
--- a/Source/core/events/UIEventWithKeyState.h
+++ b/Source/core/events/UIEventWithKeyState.h
@@ -61,6 +61,16 @@ namespace blink {
{
}
+ UIEventWithKeyState(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> view,
+ int detail, PassRefPtrWillBeRawPtr<InputDevice> sourceDevice, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)
+ : UIEvent(type, canBubble, cancelable, view, detail, sourceDevice)
+ , m_ctrlKey(ctrlKey)
+ , m_altKey(altKey)
+ , m_shiftKey(shiftKey)
+ , m_metaKey(metaKey)
+ {
+ }
+
// Expose these so init functions can set them.
bool m_ctrlKey : 1;
bool m_altKey : 1;

Powered by Google App Engine
This is Rietveld 408576698