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

Unified Diff: ui/events/gesture_detection/motion_event_generic.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
Index: ui/events/gesture_detection/motion_event_generic.h
diff --git a/ui/events/gesture_detection/motion_event_generic.h b/ui/events/gesture_detection/motion_event_generic.h
index 918b0eb13c53e9017d42cedefcaa704d1c6ddf50..2750cb210a5e32aff56b6db0cf1f7f5ecc08e40c 100644
--- a/ui/events/gesture_detection/motion_event_generic.h
+++ b/ui/events/gesture_detection/motion_event_generic.h
@@ -54,6 +54,7 @@ class GESTURE_DETECTION_EXPORT MotionEventGeneric : 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;
virtual scoped_ptr<MotionEvent> Cancel() const OVERRIDE;
@@ -65,6 +66,7 @@ class GESTURE_DETECTION_EXPORT MotionEventGeneric : public MotionEvent {
void set_id(int id) { id_ = id; }
void set_action_index(int action_index) { action_index_ = action_index; }
void set_button_state(int button_state) { button_state_ = button_state; }
+ void set_flags(int flags) { flags_ = flags; }
protected:
MotionEventGeneric();
@@ -84,6 +86,7 @@ class GESTURE_DETECTION_EXPORT MotionEventGeneric : public MotionEvent {
int id_;
int action_index_;
int button_state_;
+ int flags_;
base::StackVector<PointerProperties, kTypicalMaxPointerCount> pointers_;
};
« no previous file with comments | « ui/events/gesture_detection/motion_event_buffer.cc ('k') | ui/events/gesture_detection/motion_event_generic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698