Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: components/view_manager/public/interfaces/view_manager_root.mojom

Issue 1138073007: Nukes the windowmanager interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/view_manager/public/interfaces/BUILD.gn ('k') | components/view_manager/view_manager_app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/view_manager/public/interfaces/view_manager_root.mojom
diff --git a/components/window_manager/public/interfaces/window_manager_internal.mojom b/components/view_manager/public/interfaces/view_manager_root.mojom
similarity index 68%
rename from components/window_manager/public/interfaces/window_manager_internal.mojom
rename to components/view_manager/public/interfaces/view_manager_root.mojom
index e987189f4278a10b5b510b8a481be73bd5bc7d85..821119c125acad15f76ec9c572ca2028d0901826 100644
--- a/components/window_manager/public/interfaces/window_manager_internal.mojom
+++ b/components/view_manager/public/interfaces/view_manager_root.mojom
@@ -9,22 +9,10 @@ import "ui/mojo/events/input_events.mojom";
import "ui/mojo/events/input_key_codes.mojom";
import "ui/mojo/geometry/geometry.mojom";
-// WindowManagerInternal is an interface provided by the WindowManager
-// exclusively to the ViewManager.
-interface WindowManagerInternal {
- SetViewManagerClient(handle<message_pipe> view_manager_client_request);
-
- // An accelerator registered via AddAccelerator() has been triggered.
- OnAccelerator(mojo.Event event);
-};
-
-// WindowManagerInternalClient is an interface provide by the ViewManager
-// exclusively to the WindowManager. It provides functionality only available
-// to the WindowManager.
-interface WindowManagerInternalClient {
- // TODO(sky): this is only used by sky's testing harness. It should be
- // removed.
- DispatchInputEventToViewDEPRECATED(uint32 view_id, mojo.Event event);
+// ViewManagerRoot is an interface exposed to the first connection to the
+// ViewManager.
+interface ViewManagerRoot {
+ SetViewManagerRootClient(ViewManagerRootClient client);
// Sets the native viewport size.
SetViewportSize(mojo.Size size);
@@ -43,3 +31,9 @@ interface WindowManagerInternalClient {
AddAccelerator(mojo.KeyboardCode keyboard_code, mojo.EventFlags flags);
RemoveAccelerator(mojo.KeyboardCode keyboard_code, mojo.EventFlags flags);
};
+
+interface ViewManagerRootClient {
+ // An accelerator registered via AddAccelerator() has been triggered.
+ OnAccelerator(mojo.Event event);
+};
+
« no previous file with comments | « components/view_manager/public/interfaces/BUILD.gn ('k') | components/view_manager/view_manager_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698