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

Side by Side Diff: ui/events/gesture_detection/motion_event.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_EVENTS_GESTURE_DETECTION_MOTION_EVENT_H_ 5 #ifndef UI_EVENTS_GESTURE_DETECTION_MOTION_EVENT_H_
6 #define UI_EVENTS_GESTURE_DETECTION_MOTION_EVENT_H_ 6 #define UI_EVENTS_GESTURE_DETECTION_MOTION_EVENT_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "ui/events/gesture_detection/gesture_detection_export.h" 10 #include "ui/events/gesture_detection/gesture_detection_export.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual float GetX(size_t pointer_index) const = 0; 56 virtual float GetX(size_t pointer_index) const = 0;
57 virtual float GetY(size_t pointer_index) const = 0; 57 virtual float GetY(size_t pointer_index) const = 0;
58 virtual float GetRawX(size_t pointer_index) const = 0; 58 virtual float GetRawX(size_t pointer_index) const = 0;
59 virtual float GetRawY(size_t pointer_index) const = 0; 59 virtual float GetRawY(size_t pointer_index) const = 0;
60 virtual float GetTouchMajor(size_t pointer_index) const = 0; 60 virtual float GetTouchMajor(size_t pointer_index) const = 0;
61 virtual float GetTouchMinor(size_t pointer_index) const = 0; 61 virtual float GetTouchMinor(size_t pointer_index) const = 0;
62 virtual float GetOrientation(size_t pointer_index) const = 0; 62 virtual float GetOrientation(size_t pointer_index) const = 0;
63 virtual float GetPressure(size_t pointer_index) const = 0; 63 virtual float GetPressure(size_t pointer_index) const = 0;
64 virtual ToolType GetToolType(size_t pointer_index) const = 0; 64 virtual ToolType GetToolType(size_t pointer_index) const = 0;
65 virtual int GetButtonState() const = 0; 65 virtual int GetButtonState() const = 0;
66 virtual int GetFlags() const = 0;
66 virtual base::TimeTicks GetEventTime() const = 0; 67 virtual base::TimeTicks GetEventTime() const = 0;
67 68
68 // Optional historical data, default implementation provides an empty history. 69 // Optional historical data, default implementation provides an empty history.
69 virtual size_t GetHistorySize() const; 70 virtual size_t GetHistorySize() const;
70 virtual base::TimeTicks GetHistoricalEventTime(size_t historical_index) const; 71 virtual base::TimeTicks GetHistoricalEventTime(size_t historical_index) const;
71 virtual float GetHistoricalTouchMajor(size_t pointer_index, 72 virtual float GetHistoricalTouchMajor(size_t pointer_index,
72 size_t historical_index) const; 73 size_t historical_index) const;
73 virtual float GetHistoricalX(size_t pointer_index, 74 virtual float GetHistoricalX(size_t pointer_index,
74 size_t historical_index) const; 75 size_t historical_index) const;
75 virtual float GetHistoricalY(size_t pointer_index, 76 virtual float GetHistoricalY(size_t pointer_index,
(...skipping 24 matching lines...) Expand all
100 }; 101 };
101 102
102 GESTURE_DETECTION_EXPORT bool operator==(const MotionEvent& lhs, 103 GESTURE_DETECTION_EXPORT bool operator==(const MotionEvent& lhs,
103 const MotionEvent& rhs); 104 const MotionEvent& rhs);
104 GESTURE_DETECTION_EXPORT bool operator!=(const MotionEvent& lhs, 105 GESTURE_DETECTION_EXPORT bool operator!=(const MotionEvent& lhs,
105 const MotionEvent& rhs); 106 const MotionEvent& rhs);
106 107
107 } // namespace ui 108 } // namespace ui
108 109
109 #endif // UI_EVENTS_GESTURE_DETECTION_MOTION_EVENT_H_ 110 #endif // UI_EVENTS_GESTURE_DETECTION_MOTION_EVENT_H_
OLDNEW
« no previous file with comments | « ui/events/gesture_detection/gesture_provider_unittest.cc ('k') | ui/events/gesture_detection/motion_event_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698