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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // position of handles which might be invalid when handles are hidden. | 111 // position of handles which might be invalid when handles are hidden. |
112 gfx::Rect selection_end_point_1_; | 112 gfx::Rect selection_end_point_1_; |
113 gfx::Rect selection_end_point_2_; | 113 gfx::Rect selection_end_point_2_; |
114 // Selection end points, clipped to client view's boundaries. | 114 // Selection end points, clipped to client view's boundaries. |
115 gfx::Rect selection_end_point_1_clipped_; | 115 gfx::Rect selection_end_point_1_clipped_; |
116 gfx::Rect selection_end_point_2_clipped_; | 116 gfx::Rect selection_end_point_2_clipped_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerImpl); | 118 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerImpl); |
119 }; | 119 }; |
120 | 120 |
| 121 class VIEWS_EXPORT ViewsTouchSelectionControllerFactory |
| 122 : public ui::TouchSelectionControllerFactory { |
| 123 public: |
| 124 ViewsTouchSelectionControllerFactory(); |
| 125 |
| 126 // Overridden from ui::TouchSelectionControllerFactory. |
| 127 virtual ui::TouchSelectionController* create( |
| 128 ui::TouchEditable* client_view) OVERRIDE; |
| 129 }; |
| 130 |
121 } // namespace views | 131 } // namespace views |
122 | 132 |
123 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 133 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
OLD | NEW |