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

Unified Diff: ui/events/gestures/motion_event_aura.h

Issue 567783002: Add modifier flags to MotionEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove MotionEvent modifiers Created 6 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
« no previous file with comments | « ui/events/gestures/gesture_provider_aura.cc ('k') | ui/events/gestures/motion_event_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gestures/motion_event_aura.h
diff --git a/ui/events/gestures/motion_event_aura.h b/ui/events/gestures/motion_event_aura.h
index c89275e9366b1bb253e1adb42a7642558a1402b2..ec956fc184edce85e07f0df617377903810fed74 100644
--- a/ui/events/gestures/motion_event_aura.h
+++ b/ui/events/gestures/motion_event_aura.h
@@ -39,6 +39,7 @@ class EVENTS_EXPORT MotionEventAura : public MotionEvent {
virtual float GetPressure(size_t pointer_index) const OVERRIDE;
virtual ToolType GetToolType(size_t pointer_index) const OVERRIDE;
virtual int GetButtonState() const OVERRIDE;
+ virtual int GetFlags() const OVERRIDE;
virtual base::TimeTicks GetEventTime() const OVERRIDE;
virtual scoped_ptr<MotionEvent> Clone() const OVERRIDE;
@@ -73,6 +74,7 @@ class EVENTS_EXPORT MotionEventAura : public MotionEvent {
const base::TimeTicks& last_touch_time,
Action cached_action,
int cached_action_index,
+ int flags,
const PointData (&active_touches)[MotionEvent::MAX_TOUCH_POINT_COUNT]);
static PointData GetPointDataFromTouchEvent(const TouchEvent& touch);
@@ -87,6 +89,7 @@ class EVENTS_EXPORT MotionEventAura : public MotionEvent {
// The index of the touch responsible for last ACTION_POINTER_DOWN or
// ACTION_POINTER_UP. -1 if no such action has occurred.
int cached_action_index_;
+ int flags_;
// We want constant time indexing by pointer_index, and fast indexing by id.
PointData active_touches_[MotionEvent::MAX_TOUCH_POINT_COUNT];
« no previous file with comments | « ui/events/gestures/gesture_provider_aura.cc ('k') | ui/events/gestures/motion_event_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698