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

Side by Side Diff: mojo/services/public/interfaces/view_manager/view_manager.mojom

Issue 308803002: Change type of interface created by mojo:view_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 import "../geometry/geometry.mojom" 5 import "../geometry/geometry.mojom"
6 6
7 module mojo.view_manager { 7 module mojo.view_manager {
8 8
9 struct INode { 9 struct INode {
10 uint32 parent_id; 10 uint32 parent_id;
11 uint32 node_id; 11 uint32 node_id;
12 uint32 view_id; 12 uint32 view_id;
13 mojo.Rect bounds; 13 mojo.Rect bounds;
14 }; 14 };
15 15
16 // IViewManagerInit is responsible for launching the client that controls the
17 // root node. mojo::view_manager returns an instance of this. All other
18 // connections are established by the client this creates.
19 interface IViewManagerInit {
20 // Connects to |url| creating a connection that has the roots |nodes|.
21 Connect(string url) => (bool success);
22 };
23
16 // Functions that mutate the hierarchy take a change id. This is an ever 24 // Functions that mutate the hierarchy take a change id. This is an ever
17 // increasing integer used to identify the change. Every hierarchy change 25 // increasing integer used to identify the change. Every hierarchy change
18 // increases this value. The server only accepts changes where the supplied 26 // increases this value. The server only accepts changes where the supplied
19 // |server_change_id| matches the expected next value. This ensures changes are 27 // |server_change_id| matches the expected next value. This ensures changes are
20 // made in a well defined order. 28 // made in a well defined order.
21 // 29 //
22 // Nodes and Views are identified by a uint32. The upper 16 bits are the 30 // Nodes and Views are identified by a uint32. The upper 16 bits are the
23 // connection id, and the lower 16 the id assigned by the client. 31 // connection id, and the lower 16 the id assigned by the client.
24 // 32 //
25 // The root node is identified with a connection id of 0, and value of 1. 33 // The root node is identified with a connection id of 0, and value of 1.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 143
136 // Invoked when the view associated with a node is replaced by another view. 144 // Invoked when the view associated with a node is replaced by another view.
137 // 0 is used to identify a null view. 145 // 0 is used to identify a null view.
138 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id); 146 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id);
139 147
140 // Invoked when a view is deleted. 148 // Invoked when a view is deleted.
141 OnViewDeleted(uint32 view); 149 OnViewDeleted(uint32 view);
142 }; 150 };
143 151
144 } 152 }
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/view_manager/tests/view_manager_unittest.cc ('k') | mojo/services/view_manager/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698