| OLD | NEW |
| 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 #ifndef MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ |
| 6 #define MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 Node* root() { return &root_; } | 64 Node* root() { return &root_; } |
| 65 | 65 |
| 66 // These functions trivially delegate to all ViewManagerConnections, which in | 66 // These functions trivially delegate to all ViewManagerConnections, which in |
| 67 // term notify their clients. | 67 // term notify their clients. |
| 68 void NotifyNodeHierarchyChanged(const NodeId& node, | 68 void NotifyNodeHierarchyChanged(const NodeId& node, |
| 69 const NodeId& new_parent, | 69 const NodeId& new_parent, |
| 70 const NodeId& old_parent); | 70 const NodeId& old_parent); |
| 71 void NotifyNodeViewReplaced(const NodeId& node, | 71 void NotifyNodeViewReplaced(const NodeId& node, |
| 72 const ViewId& new_view_id, | 72 const ViewId& new_view_id, |
| 73 const ViewId& old_view_id); | 73 const ViewId& old_view_id); |
| 74 void NotifyNodeDeleted(const NodeId& node); | |
| 75 | 74 |
| 76 private: | 75 private: |
| 77 // Used to setup any static state needed by RootNodeManager. | 76 // Used to setup any static state needed by RootNodeManager. |
| 78 struct Context { | 77 struct Context { |
| 79 Context(); | 78 Context(); |
| 80 ~Context(); | 79 ~Context(); |
| 81 }; | 80 }; |
| 82 | 81 |
| 83 // Tracks a change. | 82 // Tracks a change. |
| 84 struct Change { | 83 struct Change { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 Node root_; | 129 Node root_; |
| 131 | 130 |
| 132 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); | 131 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); |
| 133 }; | 132 }; |
| 134 | 133 |
| 135 } // namespace view_manager | 134 } // namespace view_manager |
| 136 } // namespace services | 135 } // namespace services |
| 137 } // namespace mojo | 136 } // namespace mojo |
| 138 | 137 |
| 139 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ | 138 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ |
| OLD | NEW |