OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 5 #ifndef UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
6 #define UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 6 #define UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include "base/timer/timer.h" | 8 #include "base/timer/timer.h" |
9 #include "ui/aura/window_observer.h" | 9 #include "ui/aura/window_observer.h" |
10 #include "ui/base/touch/selection_bound.h" | 10 #include "ui/base/touch/selection_bound.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 Widget* client_widget_; | 123 Widget* client_widget_; |
124 scoped_ptr<EditingHandleView> selection_handle_1_; | 124 scoped_ptr<EditingHandleView> selection_handle_1_; |
125 scoped_ptr<EditingHandleView> selection_handle_2_; | 125 scoped_ptr<EditingHandleView> selection_handle_2_; |
126 scoped_ptr<EditingHandleView> cursor_handle_; | 126 scoped_ptr<EditingHandleView> cursor_handle_; |
127 bool command_executed_; | 127 bool command_executed_; |
128 base::TimeTicks selection_start_time_; | 128 base::TimeTicks selection_start_time_; |
129 | 129 |
130 // Timer to trigger quick menu (Quick menu is not shown if the selection | 130 // Timer to trigger quick menu (Quick menu is not shown if the selection |
131 // handles are being updated. It appears only when the handles are stationary | 131 // handles are being updated. It appears only when the handles are stationary |
132 // for a certain amount of time). | 132 // for a certain amount of time). |
133 base::OneShotTimer<TouchSelectionControllerImpl> quick_menu_timer_; | 133 base::OneShotTimer quick_menu_timer_; |
134 | 134 |
135 // Pointer to the SelectionHandleView being dragged during a drag session. | 135 // Pointer to the SelectionHandleView being dragged during a drag session. |
136 EditingHandleView* dragging_handle_; | 136 EditingHandleView* dragging_handle_; |
137 | 137 |
138 // In cursor mode, the two selection bounds are the same and correspond to | 138 // In cursor mode, the two selection bounds are the same and correspond to |
139 // |cursor_handle_|; otherwise, they correspond to |selection_handle_1_| and | 139 // |cursor_handle_|; otherwise, they correspond to |selection_handle_1_| and |
140 // |selection_handle_2_|, respectively. These values should be used when | 140 // |selection_handle_2_|, respectively. These values should be used when |
141 // selection bounds needed rather than position of handles which might be | 141 // selection bounds needed rather than position of handles which might be |
142 // invalid when handles are hidden. | 142 // invalid when handles are hidden. |
143 ui::SelectionBound selection_bound_1_; | 143 ui::SelectionBound selection_bound_1_; |
144 ui::SelectionBound selection_bound_2_; | 144 ui::SelectionBound selection_bound_2_; |
145 | 145 |
146 // Selection bounds, clipped to client view's boundaries. | 146 // Selection bounds, clipped to client view's boundaries. |
147 ui::SelectionBound selection_bound_1_clipped_; | 147 ui::SelectionBound selection_bound_1_clipped_; |
148 ui::SelectionBound selection_bound_2_clipped_; | 148 ui::SelectionBound selection_bound_2_clipped_; |
149 | 149 |
150 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerImpl); | 150 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerImpl); |
151 }; | 151 }; |
152 | 152 |
153 } // namespace views | 153 } // namespace views |
154 | 154 |
155 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 155 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
OLD | NEW |