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_TOUCH_SELECTION_TOUCH_HANDLE_H_ | 5 #ifndef UI_TOUCH_SELECTION_TOUCH_HANDLE_H_ |
6 #define UI_TOUCH_SELECTION_TOUCH_HANDLE_H_ | 6 #define UI_TOUCH_SELECTION_TOUCH_HANDLE_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 gfx::PointF position_; | 103 gfx::PointF position_; |
104 TouchHandleOrientation orientation_; | 104 TouchHandleOrientation orientation_; |
105 TouchHandleOrientation deferred_orientation_; | 105 TouchHandleOrientation deferred_orientation_; |
106 | 106 |
107 gfx::PointF touch_down_position_; | 107 gfx::PointF touch_down_position_; |
108 gfx::Vector2dF touch_drag_offset_; | 108 gfx::Vector2dF touch_drag_offset_; |
109 base::TimeTicks touch_down_time_; | 109 base::TimeTicks touch_down_time_; |
110 | 110 |
111 // Note that when a fade animation is active, |is_visible_| and |position_| | 111 // Note that when a fade animation is active, |is_visible_| and |position_| |
112 // may not reflect the actual visibilty and position of the drawable. This | 112 // may not reflect the actual visibility and position of the drawable. This |
113 // discrepancy is resolved either upon fade completion or cancellation. | 113 // discrepancy is resolved either upon fade completion or cancellation. |
114 base::TimeTicks fade_end_time_; | 114 base::TimeTicks fade_end_time_; |
115 gfx::PointF fade_start_position_; | 115 gfx::PointF fade_start_position_; |
116 float alpha_; | 116 float alpha_; |
117 bool animate_deferred_fade_; | 117 bool animate_deferred_fade_; |
118 | 118 |
119 bool enabled_; | 119 bool enabled_; |
120 bool is_visible_; | 120 bool is_visible_; |
121 bool is_dragging_; | 121 bool is_dragging_; |
122 bool is_drag_within_tap_region_; | 122 bool is_drag_within_tap_region_; |
123 | 123 |
124 DISALLOW_COPY_AND_ASSIGN(TouchHandle); | 124 DISALLOW_COPY_AND_ASSIGN(TouchHandle); |
125 }; | 125 }; |
126 | 126 |
127 } // namespace ui | 127 } // namespace ui |
128 | 128 |
129 #endif // UI_TOUCH_SELECTION_TOUCH_HANDLE_H_ | 129 #endif // UI_TOUCH_SELECTION_TOUCH_HANDLE_H_ |
OLD | NEW |