OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SELECTION_CONTROLLER_CLIENT_MA
NAGER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SELECTION_CONTROLLER_CLIENT_MA
NAGER_H_ |
| 7 |
| 8 #include "content/common/content_export.h" |
| 9 |
| 10 namespace gfx { |
| 11 class SelectionBound; |
| 12 } |
| 13 |
| 14 namespace ui { |
| 15 class TouchSelectionController; |
| 16 class TouchSelectionControllerClient; |
| 17 class TouchSelectionMenuClient; |
| 18 } |
| 19 |
| 20 namespace content { |
| 21 |
| 22 class CONTENT_EXPORT TouchSelectionControllerClientManager { |
| 23 public: |
| 24 virtual ~TouchSelectionControllerClientManager() {} |
| 25 |
| 26 class CONTENT_EXPORT Observer { |
| 27 public: |
| 28 virtual ~Observer() {} |
| 29 |
| 30 virtual void OnManagerWillDestroy( |
| 31 TouchSelectionControllerClientManager* manager) = 0; |
| 32 }; |
| 33 |
| 34 virtual void UpdateClientSelectionBounds( |
| 35 const gfx::SelectionBound& start, |
| 36 const gfx::SelectionBound& end, |
| 37 ui::TouchSelectionControllerClient* client, |
| 38 ui::TouchSelectionMenuClient* menu_client) = 0; |
| 39 virtual void InvalidateClient(ui::TouchSelectionControllerClient* client) = 0; |
| 40 virtual ui::TouchSelectionController* GetTouchSelectionController() = 0; |
| 41 |
| 42 virtual void AddObserver(Observer* observer) = 0; |
| 43 virtual void RemoveObserver(Observer* observer) = 0; |
| 44 }; |
| 45 |
| 46 } // namespace content |
| 47 |
| 48 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SELECTION_CONTROLLER_CLIENT
_MANAGER_H_ |
OLD | NEW |