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

Unified Diff: mojo/services/public/interfaces/view_manager/view_manager_service_delegate.mojom

Issue 636363002: Splits window manager like methods into ViewManagerServiceDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor cleanup 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/view_manager/view_manager_service_delegate.mojom
diff --git a/mojo/services/public/interfaces/view_manager/view_manager_service_delegate.mojom b/mojo/services/public/interfaces/view_manager/view_manager_service_delegate.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..72a1f3c64086bd71c1983eb1e36592f510eb7c15
--- /dev/null
+++ b/mojo/services/public/interfaces/view_manager/view_manager_service_delegate.mojom
@@ -0,0 +1,27 @@
+// 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 {
+
+// Use by the ViewManagerService for the window manager connection.
+[Client=ViewManagerServiceDelegateClient]
Ben Goodger (Google) 2014/10/09 17:11:40 I think these are probably better called something
+interface ViewManagerServiceDelegate {
+ // Asks the delegate to embed the url at the appropriate place.
+ Embed(string url, ServiceProvider&? service_provider);
+
+ // Called when an input event is received from the native system. It's
+ // expected the delegate will call DispatchInputEventToView().
+ OnViewInputEvent(mojo.Event event);
+};
+
+[Client=ViewManagerServiceDelegate]
+interface ViewManagerServiceDelegateClient {
+ // Dispatches the specified input event to the specified view.
+ DispatchInputEventToView(uint32 view_id, mojo.Event event);
+};
+
+}

Powered by Google App Engine
This is Rietveld 408576698