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

Unified Diff: mojo/services/public/cpp/view_manager/lib/view_manager_private.h

Issue 274733004: Deletion/ownership (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 side-by-side diff with in-line comments
Download patch
Index: mojo/services/public/cpp/view_manager/lib/view_manager_private.h
diff --git a/mojo/services/public/cpp/view_manager/lib/view_manager_private.h b/mojo/services/public/cpp/view_manager/lib/view_manager_private.h
index cad72ec7a3efddeed8c228a702b5edb64a8a1937..f12fc64c55855c28c721e8536b9b4a0c2d5662f1 100644
--- a/mojo/services/public/cpp/view_manager/lib/view_manager_private.h
+++ b/mojo/services/public/cpp/view_manager/lib/view_manager_private.h
@@ -25,7 +25,10 @@ class ViewManagerPrivate {
}
Shell* shell() { return manager_->shell_; }
- void SetRoot(ViewTreeNode* root);
+ void set_root(ViewTreeNode* root) { manager_->tree_ = root; }
+
+ void AddNode(TransportNodeId node_id, ViewTreeNode* node);
+ void RemoveNode(TransportNodeId node_id);
// Returns true if the ViewManager's synchronizer is connected to the service.
bool connected() { return manager_->synchronizer_->connected(); }

Powered by Google App Engine
This is Rietveld 408576698