Index: content/browser/renderer_host/input/touch_selection_controller_client_manager.h |
diff --git a/content/browser/renderer_host/input/touch_selection_controller_client_manager.h b/content/browser/renderer_host/input/touch_selection_controller_client_manager.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..44fa266baabb26263b3448267878c272e9c0469a |
--- /dev/null |
+++ b/content/browser/renderer_host/input/touch_selection_controller_client_manager.h |
@@ -0,0 +1,48 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SELECTION_CONTROLLER_CLIENT_MANAGER_H_ |
+#define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SELECTION_CONTROLLER_CLIENT_MANAGER_H_ |
+ |
+#include "content/common/content_export.h" |
+ |
+namespace gfx { |
+class SelectionBound; |
+} |
+ |
+namespace ui { |
+class TouchSelectionController; |
+class TouchSelectionControllerClient; |
+class TouchSelectionMenuClient; |
+} |
+ |
+namespace content { |
+ |
+class CONTENT_EXPORT TouchSelectionControllerClientManager { |
Charlie Reis
2017/05/25 02:29:43
Class level comment would help.
wjmaclean
2017/05/25 14:04:35
Done.
|
+ public: |
+ virtual ~TouchSelectionControllerClientManager() {} |
+ |
+ class CONTENT_EXPORT Observer { |
+ public: |
+ virtual ~Observer() {} |
+ |
+ virtual void OnManagerWillDestroy( |
+ TouchSelectionControllerClientManager* manager) = 0; |
+ }; |
+ |
+ virtual void UpdateClientSelectionBounds( |
+ const gfx::SelectionBound& start, |
+ const gfx::SelectionBound& end, |
+ ui::TouchSelectionControllerClient* client, |
+ ui::TouchSelectionMenuClient* menu_client) = 0; |
+ virtual void InvalidateClient(ui::TouchSelectionControllerClient* client) = 0; |
+ virtual ui::TouchSelectionController* GetTouchSelectionController() = 0; |
+ |
+ virtual void AddObserver(Observer* observer) = 0; |
+ virtual void RemoveObserver(Observer* observer) = 0; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SELECTION_CONTROLLER_CLIENT_MANAGER_H_ |