| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_VIEWS_SELECTION_CONTROLLER_DELEGATE_H_ | 5 #ifndef UI_VIEWS_SELECTION_CONTROLLER_DELEGATE_H_ |
| 6 #define UI_VIEWS_SELECTION_CONTROLLER_DELEGATE_H_ | 6 #define UI_VIEWS_SELECTION_CONTROLLER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ui/views/views_export.h" | 8 #include "ui/views/views_export.h" |
| 9 | 9 |
| 10 namespace ui { | |
| 11 class MouseEvent; | |
| 12 } | |
| 13 | |
| 14 namespace views { | 10 namespace views { |
| 15 | 11 |
| 16 // An interface implemented/managed by a view which uses the | 12 // An interface implemented/managed by a view which uses the |
| 17 // SelectionController. | 13 // SelectionController. |
| 18 class VIEWS_EXPORT SelectionControllerDelegate { | 14 class VIEWS_EXPORT SelectionControllerDelegate { |
| 19 public: | 15 public: |
| 20 // Returns the associated RenderText instance to be used for selection. | 16 // Returns the associated RenderText instance to be used for selection. |
| 21 virtual gfx::RenderText* GetRenderTextForSelectionController() = 0; | 17 virtual gfx::RenderText* GetRenderTextForSelectionController() = 0; |
| 22 | 18 |
| 23 // Methods related to properties of the associated view. | 19 // Methods related to properties of the associated view. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // the render text instance, it may be called outside of a pointer action. | 57 // the render text instance, it may be called outside of a pointer action. |
| 62 virtual void UpdateSelectionClipboard() = 0; | 58 virtual void UpdateSelectionClipboard() = 0; |
| 63 | 59 |
| 64 protected: | 60 protected: |
| 65 virtual ~SelectionControllerDelegate() {} | 61 virtual ~SelectionControllerDelegate() {} |
| 66 }; | 62 }; |
| 67 | 63 |
| 68 } // namespace views | 64 } // namespace views |
| 69 | 65 |
| 70 #endif // UI_VIEWS_SELECTION_CONTROLLER_DELEGATE_H_ | 66 #endif // UI_VIEWS_SELECTION_CONTROLLER_DELEGATE_H_ |
| OLD | NEW |