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

Unified Diff: mojo/services/ui/views/interfaces/view_provider.mojom

Issue 1410693003: mozart: Introduce new view manager interfaces. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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/ui/views/interfaces/view_provider.mojom
diff --git a/mojo/services/ui/views/interfaces/view_provider.mojom b/mojo/services/ui/views/interfaces/view_provider.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..b1dee7af74fd0b4ee7a55b5cee1fd5e7cd1dc589
--- /dev/null
+++ b/mojo/services/ui/views/interfaces/view_provider.mojom
@@ -0,0 +1,26 @@
+// Copyright 2015 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.
+
+[DartPackage="mojo_services"]
+module mojo.ui;
+
+import "mojo/public/interfaces/application/service_provider.mojom";
+import "mojo/services/ui/views/interfaces/views.mojom";
+
+// Provides a View upon request.
+//
+// Applications should implement and expose this service so that they can
+// expose views to be embedded into other applications.
+interface ViewProvider {
+ // Creates and registers a view with the view manager and returns its token.
+ //
+ // The caller may provide services to the view via the |services|
+ // service provider.
+ //
+ // The caller may receive services from the view via the |exposed_services|
+ // service provider.
+ CreateView(mojo.ServiceProvider&? services,
+ mojo.ServiceProvider? exposed_services) =>
+ (ViewToken view_token);
jamesr 2015/10/26 19:35:38 what are the requirements for |view_token|? is the
jeffbrown 2015/10/27 01:49:07 It's minted by the view manager when the view is r
+};

Powered by Google App Engine
This is Rietveld 408576698