OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/timer.h" | 9 #include "base/timer.h" |
10 #include "ui/gfx/point.h" | 10 #include "ui/gfx/point.h" |
11 #include "ui/views/touchui/touch_selection_controller.h" | 11 #include "ui/views/touchui/touch_selection_controller.h" |
12 #include "ui/views/view.h" | 12 #include "ui/views/view.h" |
13 #include "views/views_export.h" | 13 #include "ui/views/views_export.h" |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 | 16 |
17 // Touch specific implementation of TouchSelectionController. Responsible for | 17 // Touch specific implementation of TouchSelectionController. Responsible for |
18 // displaying selection handles and menu elements relevant in a touch interface. | 18 // displaying selection handles and menu elements relevant in a touch interface. |
19 class VIEWS_EXPORT TouchSelectionControllerImpl | 19 class VIEWS_EXPORT TouchSelectionControllerImpl |
20 : public TouchSelectionController { | 20 : public TouchSelectionController { |
21 public: | 21 public: |
22 // Use TextSelectionController::create(). | 22 // Use TextSelectionController::create(). |
23 explicit TouchSelectionControllerImpl(TouchSelectionClientView* client_view); | 23 explicit TouchSelectionControllerImpl(TouchSelectionClientView* client_view); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 // Pointer to the SelectionHandleView being dragged during a drag session. | 77 // Pointer to the SelectionHandleView being dragged during a drag session. |
78 SelectionHandleView* dragging_handle_; | 78 SelectionHandleView* dragging_handle_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerImpl); | 80 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerImpl); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace views | 83 } // namespace views |
84 | 84 |
85 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 85 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
OLD | NEW |