| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); | 74 void NotifyNodeDeleted(const NodeId& node); |
| 75 void NotifyViewDeleted(const ViewId& view); |
| 75 | 76 |
| 76 private: | 77 private: |
| 77 // Used to setup any static state needed by RootNodeManager. | 78 // Used to setup any static state needed by RootNodeManager. |
| 78 struct Context { | 79 struct Context { |
| 79 Context(); | 80 Context(); |
| 80 ~Context(); | 81 ~Context(); |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 // Tracks a change. | 84 // Tracks a change. |
| 84 struct Change { | 85 struct Change { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 Node root_; | 131 Node root_; |
| 131 | 132 |
| 132 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); | 133 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); |
| 133 }; | 134 }; |
| 134 | 135 |
| 135 } // namespace view_manager | 136 } // namespace view_manager |
| 136 } // namespace services | 137 } // namespace services |
| 137 } // namespace mojo | 138 } // namespace mojo |
| 138 | 139 |
| 139 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ | 140 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ |
| OLD | NEW |