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" |
11 #include "ui/base/touch/touch_editing_controller.h" | 11 #include "ui/base/touch/touch_editing_controller.h" |
12 #include "ui/gfx/point.h" | 12 #include "ui/gfx/point.h" |
13 #include "ui/views/touchui/touch_editing_menu.h" | 13 #include "ui/views/touchui/touch_editing_menu.h" |
14 #include "ui/views/view.h" | 14 #include "ui/views/view.h" |
15 #include "ui/views/views_export.h" | 15 #include "ui/views/views_export.h" |
16 | 16 |
17 namespace views { | 17 namespace views { |
18 | 18 |
19 namespace test { | 19 namespace test { |
20 class WidgetTestInteractive; | 20 class WidgetTestInteractive; |
21 } | 21 } |
22 | 22 |
23 // Touch specific implementation of TouchSelectionController. Responsible for | 23 // Touch specific implementation of TouchEditingControllerDeprecated. |
24 // displaying selection handles and menu elements relevant in a touch interface. | 24 // Responsible for displaying selection handles and menu elements relevant in a |
| 25 // touch interface. |
25 class VIEWS_EXPORT TouchSelectionControllerImpl | 26 class VIEWS_EXPORT TouchSelectionControllerImpl |
26 : public ui::TouchSelectionController, | 27 : public ui::TouchEditingControllerDeprecated, |
27 public TouchEditingMenuController, | 28 public TouchEditingMenuController, |
28 public aura::WindowObserver, | 29 public aura::WindowObserver, |
29 public WidgetObserver, | 30 public WidgetObserver, |
30 public ui::EventHandler { | 31 public ui::EventHandler { |
31 public: | 32 public: |
32 class EditingHandleView; | 33 class EditingHandleView; |
33 | 34 |
34 // Use TextSelectionController::create(). | 35 // Use TextSelectionController::create(). |
35 explicit TouchSelectionControllerImpl( | 36 explicit TouchSelectionControllerImpl( |
36 ui::TouchEditable* client_view); | 37 ui::TouchEditable* client_view); |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // Selection bounds, clipped to client view's boundaries. | 140 // Selection bounds, clipped to client view's boundaries. |
140 ui::SelectionBound selection_bound_1_clipped_; | 141 ui::SelectionBound selection_bound_1_clipped_; |
141 ui::SelectionBound selection_bound_2_clipped_; | 142 ui::SelectionBound selection_bound_2_clipped_; |
142 | 143 |
143 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerImpl); | 144 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerImpl); |
144 }; | 145 }; |
145 | 146 |
146 } // namespace views | 147 } // namespace views |
147 | 148 |
148 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 149 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
OLD | NEW |