| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 View* GetView(const ViewId& id); | 61 View* GetView(const ViewId& id); |
| 62 | 62 |
| 63 // These functions trivially delegate to all ViewManagerConnections, which in | 63 // These functions trivially delegate to all ViewManagerConnections, which in |
| 64 // term notify their clients. | 64 // term notify their clients. |
| 65 void NotifyNodeHierarchyChanged(const NodeId& node, | 65 void NotifyNodeHierarchyChanged(const NodeId& node, |
| 66 const NodeId& new_parent, | 66 const NodeId& new_parent, |
| 67 const NodeId& old_parent); | 67 const NodeId& old_parent); |
| 68 void NotifyNodeViewReplaced(const NodeId& node, | 68 void NotifyNodeViewReplaced(const NodeId& node, |
| 69 const ViewId& new_view_id, | 69 const ViewId& new_view_id, |
| 70 const ViewId& old_view_id); | 70 const ViewId& old_view_id); |
| 71 void NotifyNodeDeleted(const NodeId& node); |
| 71 | 72 |
| 72 private: | 73 private: |
| 73 // Tracks a change. | 74 // Tracks a change. |
| 74 struct Change { | 75 struct Change { |
| 75 Change(TransportConnectionId connection_id, TransportChangeId change_id) | 76 Change(TransportConnectionId connection_id, TransportChangeId change_id) |
| 76 : connection_id(connection_id), | 77 : connection_id(connection_id), |
| 77 change_id(change_id) { | 78 change_id(change_id) { |
| 78 } | 79 } |
| 79 | 80 |
| 80 TransportConnectionId connection_id; | 81 TransportConnectionId connection_id; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 scoped_ptr<Change> change_; | 124 scoped_ptr<Change> change_; |
| 124 | 125 |
| 125 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); | 126 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); |
| 126 }; | 127 }; |
| 127 | 128 |
| 128 } // namespace view_manager | 129 } // namespace view_manager |
| 129 } // namespace services | 130 } // namespace services |
| 130 } // namespace mojo | 131 } // namespace mojo |
| 131 | 132 |
| 132 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ | 133 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ |
| OLD | NEW |