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

Unified Diff: mojo/services/public/interfaces/view_manager/view_manager.mojom

Issue 287183003: Restricts node/view deletion to creator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/services/view_manager/view_manager_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/public/interfaces/view_manager/view_manager.mojom
diff --git a/mojo/services/public/interfaces/view_manager/view_manager.mojom b/mojo/services/public/interfaces/view_manager/view_manager.mojom
index 01079e5d890ed29ffc3ba9a02cdee381106b10f8..9ac6ea102a705195e9b13f267938ab8737246fa2 100644
--- a/mojo/services/public/interfaces/view_manager/view_manager.mojom
+++ b/mojo/services/public/interfaces/view_manager/view_manager.mojom
@@ -29,8 +29,8 @@ interface IViewManager {
CreateNode(uint32 node_id) => (bool success);
// Deletes a node. This does not recurse. No hierarchy change notifications
- // are sent as a result of this. Deletion is always allowed and implicitly
- // advances |server_change_id|.
+ // are sent as a result of this. Only the connection that created the node can
+ // delete it.
DeleteNode(uint32 node_id) => (bool success);
// Reparents a node. See description above class for details of |change_id|.
@@ -61,7 +61,8 @@ interface IViewManager {
// the connection.
CreateView(uint32 view_id) => (bool success);
- // Deletes the view with the specified id.
+ // Deletes the view with the specified id. Only the connection that created
+ // the view can delete it.
DeleteView(uint32 view_id) => (bool success);
// Sets the view a node is showing.
« no previous file with comments | « no previous file | mojo/services/view_manager/view_manager_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698