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; | |
36 | 35 |
37 private: | 36 private: |
38 friend class TouchSelectionControllerImplTest; | 37 friend class TouchSelectionControllerImplTest; |
39 | 38 |
40 void SetDraggingHandle(EditingHandleView* handle); | 39 void SetDraggingHandle(EditingHandleView* handle); |
41 | 40 |
42 // Callback to inform the client view that the selection handle has been | 41 // Callback to inform the client view that the selection handle has been |
43 // dragged, hence selection may need to be updated. | 42 // dragged, hence selection may need to be updated. |
44 void SelectionHandleDragged(const gfx::Point& drag_pos); | 43 void SelectionHandleDragged(const gfx::Point& drag_pos); |
45 | 44 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 ViewsTouchSelectionControllerFactory(); | 115 ViewsTouchSelectionControllerFactory(); |
117 | 116 |
118 // Overridden from ui::TouchSelectionControllerFactory. | 117 // Overridden from ui::TouchSelectionControllerFactory. |
119 virtual ui::TouchSelectionController* create( | 118 virtual ui::TouchSelectionController* create( |
120 ui::TouchEditable* client_view) OVERRIDE; | 119 ui::TouchEditable* client_view) OVERRIDE; |
121 }; | 120 }; |
122 | 121 |
123 } // namespace views | 122 } // namespace views |
124 | 123 |
125 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 124 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
OLD | NEW |