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

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

Issue 296133012: Some security checks around destruction/setting bounds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 "../../../../public/interfaces/geometry/geometry.mojom" 5 import "../../../../public/interfaces/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 }; 14 };
14 15
15 // Functions that mutate the hierarchy take a change id. This is an ever 16 // Functions that mutate the hierarchy take a change id. This is an ever
16 // increasing integer used to identify the change. Every hierarchy change 17 // increasing integer used to identify the change. Every hierarchy change
17 // increases this value. The server only accepts changes where the supplied 18 // increases this value. The server only accepts changes where the supplied
18 // |server_change_id| matches the expected next value. This ensures changes are 19 // |server_change_id| matches the expected next value. This ensures changes are
19 // made in a well defined order. 20 // made in a well defined order.
20 // 21 //
21 // Nodes and Views are identified by a uint32. The upper 16 bits are the 22 // Nodes and Views are identified by a uint32. The upper 16 bits are the
22 // connection id, and the lower 16 the id assigned by the client. 23 // connection id, and the lower 16 the id assigned by the client.
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 134
134 // Invoked when the view associated with a node is replaced by another view. 135 // Invoked when the view associated with a node is replaced by another view.
135 // 0 is used to identify a null view. 136 // 0 is used to identify a null view.
136 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id); 137 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id);
137 138
138 // Invoked when a view is deleted. 139 // Invoked when a view is deleted.
139 OnViewDeleted(uint32 view); 140 OnViewDeleted(uint32 view);
140 }; 141 };
141 142
142 } 143 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698