| 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 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 virtual size_t GetHistorySize() const OVERRIDE; | 42 virtual size_t GetHistorySize() const OVERRIDE; |
| 43 virtual base::TimeTicks GetHistoricalEventTime(size_t historical_index) const | 43 virtual base::TimeTicks GetHistoricalEventTime(size_t historical_index) const |
| 44 OVERRIDE; | 44 OVERRIDE; |
| 45 virtual float GetHistoricalTouchMajor(size_t pointer_index, | 45 virtual float GetHistoricalTouchMajor(size_t pointer_index, |
| 46 size_t historical_index) const OVERRIDE; | 46 size_t historical_index) const OVERRIDE; |
| 47 virtual float GetHistoricalX(size_t pointer_index, | 47 virtual float GetHistoricalX(size_t pointer_index, |
| 48 size_t historical_index) const OVERRIDE; | 48 size_t historical_index) const OVERRIDE; |
| 49 virtual float GetHistoricalY(size_t pointer_index, | 49 virtual float GetHistoricalY(size_t pointer_index, |
| 50 size_t historical_index) const OVERRIDE; | 50 size_t historical_index) const OVERRIDE; |
| 51 virtual ToolType GetToolType(size_t pointer_index) const OVERRIDE; |
| 52 virtual int GetButtonState() const OVERRIDE; |
| 51 | 53 |
| 52 virtual scoped_ptr<MotionEvent> Clone() const OVERRIDE; | 54 virtual scoped_ptr<MotionEvent> Clone() const OVERRIDE; |
| 53 virtual scoped_ptr<MotionEvent> Cancel() const OVERRIDE; | 55 virtual scoped_ptr<MotionEvent> Cancel() const OVERRIDE; |
| 54 | 56 |
| 55 int GetSourceDeviceId(size_t pointer_index) const; | 57 int GetSourceDeviceId(size_t pointer_index) const; |
| 56 | 58 |
| 57 // We can't cleanup removed touch points immediately upon receipt of a | 59 // We can't cleanup removed touch points immediately upon receipt of a |
| 58 // TouchCancel or TouchRelease, as the MotionEvent needs to be able to report | 60 // TouchCancel or TouchRelease, as the MotionEvent needs to be able to report |
| 59 // information about those touch events. Once the MotionEvent has been | 61 // information about those touch events. Once the MotionEvent has been |
| 60 // processed, we call CleanupRemovedTouchPoints to do the required | 62 // processed, we call CleanupRemovedTouchPoints to do the required |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // We want constant time indexing by pointer_index, and fast indexing by id. | 99 // We want constant time indexing by pointer_index, and fast indexing by id. |
| 98 // TODO(tdresser): figure out which constant to use here. | 100 // TODO(tdresser): figure out which constant to use here. |
| 99 PointData active_touches_[GestureSequence::kMaxGesturePoints]; | 101 PointData active_touches_[GestureSequence::kMaxGesturePoints]; |
| 100 | 102 |
| 101 DISALLOW_COPY_AND_ASSIGN(MotionEventAura); | 103 DISALLOW_COPY_AND_ASSIGN(MotionEventAura); |
| 102 }; | 104 }; |
| 103 | 105 |
| 104 } // namespace ui | 106 } // namespace ui |
| 105 | 107 |
| 106 #endif // UI_EVENTS_GESTURE_DETECTION_UI_MOTION_EVENT_H_ | 108 #endif // UI_EVENTS_GESTURE_DETECTION_UI_MOTION_EVENT_H_ |
| OLD | NEW |