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

Unified Diff: mojo/services/public/interfaces/window_manager/window_manager.mojom

Issue 636363002: Splits window manager like methods into ViewManagerServiceDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 2 trunk Created 6 years, 2 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
Index: mojo/services/public/interfaces/window_manager/window_manager.mojom
diff --git a/mojo/services/public/interfaces/window_manager/window_manager.mojom b/mojo/services/public/interfaces/window_manager/window_manager.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..a0a4ed9a41ca34abc5b3ba681f4b42f0d466ef46
--- /dev/null
+++ b/mojo/services/public/interfaces/window_manager/window_manager.mojom
@@ -0,0 +1,34 @@
+// Copyright 2014 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.
+
+import "mojo/public/interfaces/application/service_provider.mojom"
+import "mojo/services/public/interfaces/input_events/input_events.mojom"
+
+module mojo {
+
+// WindowManagerService provides high level window management policies.
+// WindowManagerService is used by the ViewManager. More specifically the first
+// connection from the ViewManager is expected to provide the
+// WindowManagerService.
+[Client=WindowManagerClient]
+interface WindowManagerService {
+ // Asks the WindowManager to embed |url| at the appropriate place. See
+ // ViewManager::Embed for details of |service_provider|.
+ Embed(string url, ServiceProvider&? service_provider);
+
+ // Called when an input event is received from the native system. It's
+ // expected that when this is received the WindowManagerService will call back
+ // to WindowManagerServieClient will call DispatchInputEventToView().
+ OnViewInputEvent(mojo.Event event);
+};
+
+// ViewManager provides this interface for functionality only exposed to the
+// WindowManagerServie.
+[Client=WindowManagerService]
+interface WindowManagerClient {
+ // Dispatches the specified input event to the specified view.
+ DispatchInputEventToView(uint32 view_id, mojo.Event event);
+};
+
+}
« no previous file with comments | « mojo/services/public/interfaces/window_manager/BUILD.gn ('k') | mojo/services/public/mojo_services_public.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698