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/base/touch/touch_editing_controller.h" | 9 #include "ui/base/touch/touch_editing_controller.h" |
10 #include "ui/gfx/point.h" | 10 #include "ui/gfx/point.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 // Use TextSelectionController::create(). | 26 // Use TextSelectionController::create(). |
27 explicit TouchSelectionControllerImpl( | 27 explicit TouchSelectionControllerImpl( |
28 ui::TouchEditable* client_view); | 28 ui::TouchEditable* client_view); |
29 | 29 |
30 virtual ~TouchSelectionControllerImpl(); | 30 virtual ~TouchSelectionControllerImpl(); |
31 | 31 |
32 // TextSelectionController. | 32 // TextSelectionController. |
33 virtual void SelectionChanged() OVERRIDE; | 33 virtual void SelectionChanged() OVERRIDE; |
34 virtual bool IsHandleDragInProgress() OVERRIDE; | 34 virtual bool IsHandleDragInProgress() OVERRIDE; |
| 35 virtual void HideHandles(bool quick) OVERRIDE; |
35 | 36 |
36 private: | 37 private: |
37 friend class TouchSelectionControllerImplTest; | 38 friend class TouchSelectionControllerImplTest; |
38 | 39 |
39 void SetDraggingHandle(EditingHandleView* handle); | 40 void SetDraggingHandle(EditingHandleView* handle); |
40 | 41 |
41 // Callback to inform the client view that the selection handle has been | 42 // Callback to inform the client view that the selection handle has been |
42 // dragged, hence selection may need to be updated. | 43 // dragged, hence selection may need to be updated. |
43 void SelectionHandleDragged(const gfx::Point& drag_pos); | 44 void SelectionHandleDragged(const gfx::Point& drag_pos); |
44 | 45 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 ViewsTouchSelectionControllerFactory(); | 116 ViewsTouchSelectionControllerFactory(); |
116 | 117 |
117 // Overridden from ui::TouchSelectionControllerFactory. | 118 // Overridden from ui::TouchSelectionControllerFactory. |
118 virtual ui::TouchSelectionController* create( | 119 virtual ui::TouchSelectionController* create( |
119 ui::TouchEditable* client_view) OVERRIDE; | 120 ui::TouchEditable* client_view) OVERRIDE; |
120 }; | 121 }; |
121 | 122 |
122 } // namespace views | 123 } // namespace views |
123 | 124 |
124 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 125 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
OLD | NEW |