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

Side by Side 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: applied review comments Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 [DartPackage="mojo_services"]
6 module mojo.ui;
7
8 import "mojo/public/interfaces/application/service_provider.mojom";
9 import "mojo/services/ui/views/interfaces/views.mojom";
10
11 // Provides a View upon request.
12 //
13 // Applications should implement and expose this service so that they can
14 // expose views to be embedded into other applications.
15 interface ViewProvider {
16 // Creates and registers a view with the view manager and returns its
17 // view token (as provided by |ViewManager.RegisterView()|).
18 //
19 // Having received the view token, the caller should attach the view to
20 // a view tree and lay it out.
21 //
22 // The |view_token| must
qsr 2015/10/27 10:51:25 This comment is incomplete
jeffbrown 2015/10/27 22:48:46 Whoops!
23 //
24 // The caller may provide services to the view via the |services|
25 // service provider.
26 //
27 // The caller may receive services from the view via the |exposed_services|
28 // service provider.
29 CreateView(mojo.ServiceProvider&? services,
30 mojo.ServiceProvider? exposed_services) =>
31 (ViewToken view_token);
32 };
OLDNEW
« no previous file with comments | « mojo/services/ui/views/interfaces/view_manager.mojom ('k') | mojo/services/ui/views/interfaces/view_trees.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698