| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 virtual bool DrawsHandles() = 0; | 53 virtual bool DrawsHandles() = 0; |
| 54 | 54 |
| 55 // Tells the editable to open context menu. | 55 // Tells the editable to open context menu. |
| 56 virtual void OpenContextMenu(const gfx::Point& anchor) = 0; | 56 virtual void OpenContextMenu(const gfx::Point& anchor) = 0; |
| 57 | 57 |
| 58 // Tells the editable to end touch editing and destroy touch selection | 58 // Tells the editable to end touch editing and destroy touch selection |
| 59 // controller it owns. | 59 // controller it owns. |
| 60 virtual void DestroyTouchSelection() = 0; | 60 virtual void DestroyTouchSelection() = 0; |
| 61 | 61 |
| 62 protected: | 62 protected: |
| 63 virtual ~TouchEditable() {} | 63 ~TouchEditable() override {} |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 // This defines the callback interface for other code to be notified of changes | 66 // This defines the callback interface for other code to be notified of changes |
| 67 // in the state of a TouchEditable. | 67 // in the state of a TouchEditable. |
| 68 class UI_BASE_EXPORT TouchSelectionController { | 68 class UI_BASE_EXPORT TouchSelectionController { |
| 69 public: | 69 public: |
| 70 virtual ~TouchSelectionController() {} | 70 virtual ~TouchSelectionController() {} |
| 71 | 71 |
| 72 // Creates a TouchSelectionController. Caller owns the returned object. | 72 // Creates a TouchSelectionController. Caller owns the returned object. |
| 73 static TouchSelectionController* create( | 73 static TouchSelectionController* create( |
| (...skipping 16 matching lines...) Expand all Loading... |
| 90 | 90 |
| 91 virtual TouchSelectionController* create(TouchEditable* client_view) = 0; | 91 virtual TouchSelectionController* create(TouchEditable* client_view) = 0; |
| 92 | 92 |
| 93 protected: | 93 protected: |
| 94 virtual ~TouchSelectionControllerFactory() {} | 94 virtual ~TouchSelectionControllerFactory() {} |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace views | 97 } // namespace views |
| 98 | 98 |
| 99 #endif // UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_ | 99 #endif // UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_ |
| OLD | NEW |