| 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_SELECTION_CONTROLLER_H_ | 5 #ifndef UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_H_ |
| 6 #define UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_H_ | 6 #define UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "ui/base/touch/selection_bound.h" | 8 #include "ui/base/touch/selection_bound.h" |
| 9 #include "ui/gfx/geometry/point_f.h" | 9 #include "ui/gfx/geometry/point_f.h" |
| 10 #include "ui/gfx/geometry/rect_f.h" | 10 #include "ui/gfx/geometry/rect_f.h" |
| 11 #include "ui/touch_selection/selection_event_type.h" | 11 #include "ui/touch_selection/selection_event_type.h" |
| 12 #include "ui/touch_selection/touch_handle.h" | 12 #include "ui/touch_selection/touch_handle.h" |
| 13 #include "ui/touch_selection/touch_handle_orientation.h" |
| 13 #include "ui/touch_selection/ui_touch_selection_export.h" | 14 #include "ui/touch_selection/ui_touch_selection_export.h" |
| 14 | 15 |
| 15 namespace ui { | 16 namespace ui { |
| 16 class MotionEvent; | 17 class MotionEvent; |
| 17 | 18 |
| 18 // Interface through which |TouchSelectionController| issues selection-related | 19 // Interface through which |TouchSelectionController| issues selection-related |
| 19 // commands, notifications and requests. | 20 // commands, notifications and requests. |
| 20 class UI_TOUCH_SELECTION_EXPORT TouchSelectionControllerClient { | 21 class UI_TOUCH_SELECTION_EXPORT TouchSelectionControllerClient { |
| 21 public: | 22 public: |
| 22 virtual ~TouchSelectionControllerClient() {} | 23 virtual ~TouchSelectionControllerClient() {} |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // Whether a selection handle was dragged during the current 'selection | 152 // Whether a selection handle was dragged during the current 'selection |
| 152 // session' - i.e. since the current selection has been activated. | 153 // session' - i.e. since the current selection has been activated. |
| 153 bool selection_handle_dragged_; | 154 bool selection_handle_dragged_; |
| 154 | 155 |
| 155 DISALLOW_COPY_AND_ASSIGN(TouchSelectionController); | 156 DISALLOW_COPY_AND_ASSIGN(TouchSelectionController); |
| 156 }; | 157 }; |
| 157 | 158 |
| 158 } // namespace ui | 159 } // namespace ui |
| 159 | 160 |
| 160 #endif // UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_H_ | 161 #endif // UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_H_ |
| OLD | NEW |