| OLD | NEW |
| 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_UI_MOTION_EVENT_H_ | 5 #ifndef UI_EVENTS_GESTURE_DETECTION_UI_MOTION_EVENT_H_ |
| 6 #define UI_EVENTS_GESTURE_DETECTION_UI_MOTION_EVENT_H_ | 6 #define UI_EVENTS_GESTURE_DETECTION_UI_MOTION_EVENT_H_ |
| 7 | 7 |
| 8 #include "ui/events/gesture_detection/motion_event.h" | 8 #include "ui/events/gesture_detection/motion_event.h" |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 virtual Action GetAction() const OVERRIDE; | 30 virtual Action GetAction() const OVERRIDE; |
| 31 virtual int GetActionIndex() const OVERRIDE; | 31 virtual int GetActionIndex() const OVERRIDE; |
| 32 virtual size_t GetPointerCount() const OVERRIDE; | 32 virtual size_t GetPointerCount() const OVERRIDE; |
| 33 virtual int GetPointerId(size_t pointer_index) const OVERRIDE; | 33 virtual int GetPointerId(size_t pointer_index) const OVERRIDE; |
| 34 virtual float GetX(size_t pointer_index) const OVERRIDE; | 34 virtual float GetX(size_t pointer_index) const OVERRIDE; |
| 35 virtual float GetY(size_t pointer_index) const OVERRIDE; | 35 virtual float GetY(size_t pointer_index) const OVERRIDE; |
| 36 virtual float GetRawX(size_t pointer_index) const OVERRIDE; | 36 virtual float GetRawX(size_t pointer_index) const OVERRIDE; |
| 37 virtual float GetRawY(size_t pointer_index) const OVERRIDE; | 37 virtual float GetRawY(size_t pointer_index) const OVERRIDE; |
| 38 virtual float GetTouchMajor(size_t pointer_index) const OVERRIDE; | 38 virtual float GetTouchMajor(size_t pointer_index) const OVERRIDE; |
| 39 virtual float GetPressure(size_t pointer_index) const OVERRIDE; | 39 virtual float GetPressure(size_t pointer_index) const OVERRIDE; |
| 40 virtual base::TimeTicks GetEventTime() const OVERRIDE; | |
| 41 | |
| 42 virtual size_t GetHistorySize() const OVERRIDE; | |
| 43 virtual base::TimeTicks GetHistoricalEventTime(size_t historical_index) const | |
| 44 OVERRIDE; | |
| 45 virtual float GetHistoricalTouchMajor(size_t pointer_index, | |
| 46 size_t historical_index) const OVERRIDE; | |
| 47 virtual float GetHistoricalX(size_t pointer_index, | |
| 48 size_t historical_index) const OVERRIDE; | |
| 49 virtual float GetHistoricalY(size_t pointer_index, | |
| 50 size_t historical_index) const OVERRIDE; | |
| 51 virtual ToolType GetToolType(size_t pointer_index) const OVERRIDE; | 40 virtual ToolType GetToolType(size_t pointer_index) const OVERRIDE; |
| 52 virtual int GetButtonState() const OVERRIDE; | 41 virtual int GetButtonState() const OVERRIDE; |
| 42 virtual base::TimeTicks GetEventTime() const OVERRIDE; |
| 53 | 43 |
| 54 virtual scoped_ptr<MotionEvent> Clone() const OVERRIDE; | 44 virtual scoped_ptr<MotionEvent> Clone() const OVERRIDE; |
| 55 virtual scoped_ptr<MotionEvent> Cancel() const OVERRIDE; | 45 virtual scoped_ptr<MotionEvent> Cancel() const OVERRIDE; |
| 56 | 46 |
| 57 int GetSourceDeviceId(size_t pointer_index) const; | 47 int GetSourceDeviceId(size_t pointer_index) const; |
| 58 | 48 |
| 59 // We can't cleanup removed touch points immediately upon receipt of a | 49 // We can't cleanup removed touch points immediately upon receipt of a |
| 60 // TouchCancel or TouchRelease, as the MotionEvent needs to be able to report | 50 // TouchCancel or TouchRelease, as the MotionEvent needs to be able to report |
| 61 // information about those touch events. Once the MotionEvent has been | 51 // information about those touch events. Once the MotionEvent has been |
| 62 // processed, we call CleanupRemovedTouchPoints to do the required | 52 // processed, we call CleanupRemovedTouchPoints to do the required |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // We want constant time indexing by pointer_index, and fast indexing by id. | 89 // We want constant time indexing by pointer_index, and fast indexing by id. |
| 100 // TODO(tdresser): figure out which constant to use here. | 90 // TODO(tdresser): figure out which constant to use here. |
| 101 PointData active_touches_[GestureSequence::kMaxGesturePoints]; | 91 PointData active_touches_[GestureSequence::kMaxGesturePoints]; |
| 102 | 92 |
| 103 DISALLOW_COPY_AND_ASSIGN(MotionEventAura); | 93 DISALLOW_COPY_AND_ASSIGN(MotionEventAura); |
| 104 }; | 94 }; |
| 105 | 95 |
| 106 } // namespace ui | 96 } // namespace ui |
| 107 | 97 |
| 108 #endif // UI_EVENTS_GESTURE_DETECTION_UI_MOTION_EVENT_H_ | 98 #endif // UI_EVENTS_GESTURE_DETECTION_UI_MOTION_EVENT_H_ |
| OLD | NEW |