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_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_ | 5 #ifndef UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_ |
6 #define UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_ | 6 #define UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_ |
7 | 7 |
8 #include "ui/base/models/simple_menu_model.h" | 8 #include "ui/base/models/simple_menu_model.h" |
9 #include "ui/gfx/point.h" | 9 #include "ui/gfx/point.h" |
10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 class UI_EXPORT TouchSelectionController { | 60 class UI_EXPORT TouchSelectionController { |
61 public: | 61 public: |
62 virtual ~TouchSelectionController() {} | 62 virtual ~TouchSelectionController() {} |
63 | 63 |
64 // Creates a TouchSelectionController. Caller owns the returned object. | 64 // Creates a TouchSelectionController. Caller owns the returned object. |
65 static TouchSelectionController* create( | 65 static TouchSelectionController* create( |
66 TouchEditable* client_view); | 66 TouchEditable* client_view); |
67 | 67 |
68 // Notifies the controller that the selection has changed. | 68 // Notifies the controller that the selection has changed. |
69 virtual void SelectionChanged() = 0; | 69 virtual void SelectionChanged() = 0; |
| 70 |
| 71 // Returns true if the user is currently dragging one of the handles. |
| 72 virtual bool IsHandleDragInProgress() = 0; |
70 }; | 73 }; |
71 | 74 |
72 class UI_EXPORT TouchSelectionControllerFactory { | 75 class UI_EXPORT TouchSelectionControllerFactory { |
73 public: | 76 public: |
74 static void SetInstance(TouchSelectionControllerFactory* instance); | 77 static void SetInstance(TouchSelectionControllerFactory* instance); |
75 | 78 |
76 virtual TouchSelectionController* create(TouchEditable* client_view) = 0; | 79 virtual TouchSelectionController* create(TouchEditable* client_view) = 0; |
77 | 80 |
78 protected: | 81 protected: |
79 virtual ~TouchSelectionControllerFactory() {} | 82 virtual ~TouchSelectionControllerFactory() {} |
80 }; | 83 }; |
81 | 84 |
82 } // namespace views | 85 } // namespace views |
83 | 86 |
84 #endif // UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_ | 87 #endif // UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_ |
OLD | NEW |