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

Unified Diff: mojo/services/public/cpp/view_manager/view_tree_node.h

Issue 258623005: First step at synchronizing client model changes with service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 8 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/view_tree_node.h
diff --git a/mojo/services/public/cpp/view_manager/view_tree_node.h b/mojo/services/public/cpp/view_manager/view_tree_node.h
index 42f27e71f3dbd2c5b495161b0019c6009b252367..2325060ea0f595e42c2dc7eaf8d01b4985dba03f 100644
--- a/mojo/services/public/cpp/view_manager/view_tree_node.h
+++ b/mojo/services/public/cpp/view_manager/view_tree_node.h
@@ -14,16 +14,19 @@ namespace mojo {
namespace services {
namespace view_manager {
+class ViewManager;
class ViewTreeNodeObserver;
class ViewTreeNode {
public:
typedef std::vector<ViewTreeNode*> Children;
- ViewTreeNode();
+ explicit ViewTreeNode(ViewManager* manager);
+ ViewTreeNode(); // Used for tests.
~ViewTreeNode();
// Configuration.
+ int id() const { return id_; }
void set_owned_by_parent(bool owned_by_parent) {
owned_by_parent_ = owned_by_parent;
}
@@ -45,6 +48,8 @@ class ViewTreeNode {
private:
friend class ViewTreeNodePrivate;
+ ViewManager* manager_;
+ int id_;
sky 2014/04/28 23:04:19 uint16_t Same for id() above.
bool owned_by_parent_;
ViewTreeNode* parent_;
Children children_;

Powered by Google App Engine
This is Rietveld 408576698