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

Side by Side Diff: mojo/services/ui/views/interfaces/view_manager.mojom

Issue 1454113003: Require an explicit ServiceName annotation for interfaces in C++. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [DartPackage="mojo_services"] 5 [DartPackage="mojo_services"]
6 module mojo.ui; 6 module mojo.ui;
7 7
8 import "mojo/services/ui/views/interfaces/views.mojom"; 8 import "mojo/services/ui/views/interfaces/views.mojom";
9 import "mojo/services/ui/views/interfaces/view_trees.mojom"; 9 import "mojo/services/ui/views/interfaces/view_trees.mojom";
10 10
11 // The view manager is a service which manages trees of views. 11 // The view manager is a service which manages trees of views.
12 // 12 //
13 // Before a view can be added to the view tree, it must first be registered 13 // Before a view can be added to the view tree, it must first be registered
14 // with the view manager. Once registered, the view receives a token as a 14 // with the view manager. Once registered, the view receives a token as a
15 // transferable reference to be provided to the view's intended container. 15 // transferable reference to be provided to the view's intended container.
16 [ServiceName="mojo::ui::ViewManager"]
16 interface ViewManager { 17 interface ViewManager {
17 // Registers a view with the view manager. 18 // Registers a view with the view manager.
18 // 19 //
19 // When a view is registered, it receives its own host and a token 20 // When a view is registered, it receives its own host and a token
20 // to identify it. 21 // to identify it.
21 // 22 //
22 // The |view_host| is used to configure the view and interact with its 23 // The |view_host| is used to configure the view and interact with its
23 // local environment. The view host is private to the view and should 24 // local environment. The view host is private to the view and should
24 // not be shared with anyone else. 25 // not be shared with anyone else.
25 // 26 //
(...skipping 14 matching lines...) Expand all
40 // 41 //
41 // The |view_tree_host| is used to configure the view tree and interact 42 // The |view_tree_host| is used to configure the view tree and interact
42 // with the views it contains. The view tree host is private to the view 43 // with the views it contains. The view tree host is private to the view
43 // and should not be shared with anyone else. 44 // and should not be shared with anyone else.
44 // 45 //
45 // To unregister the view tree simply close the |view_tree| and/or 46 // To unregister the view tree simply close the |view_tree| and/or
46 // |view_tree_host| message pipes. 47 // |view_tree_host| message pipes.
47 RegisterViewTree(mojo.ui.ViewTree view_tree, 48 RegisterViewTree(mojo.ui.ViewTree view_tree,
48 mojo.ui.ViewTreeHost& view_tree_host) => (); 49 mojo.ui.ViewTreeHost& view_tree_host) => ();
49 }; 50 };
OLDNEW
« no previous file with comments | « mojo/services/tracing/interfaces/tracing.mojom ('k') | mojo/services/ui/views/interfaces/view_provider.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698