Chromium Code Reviews| 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_; |