| 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_VIEW_MANAGER_CONNECTION_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ |
| 6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 // Notifies the client of a hierarchy change. | 47 // Notifies the client of a hierarchy change. |
| 48 void NotifyNodeHierarchyChanged(const NodeId& node, | 48 void NotifyNodeHierarchyChanged(const NodeId& node, |
| 49 const NodeId& new_parent, | 49 const NodeId& new_parent, |
| 50 const NodeId& old_parent, | 50 const NodeId& old_parent, |
| 51 TransportChangeId change_id); | 51 TransportChangeId change_id); |
| 52 void NotifyNodeViewReplaced(const NodeId& node, | 52 void NotifyNodeViewReplaced(const NodeId& node, |
| 53 const ViewId& new_view_id, | 53 const ViewId& new_view_id, |
| 54 const ViewId& old_view_id, | 54 const ViewId& old_view_id, |
| 55 TransportChangeId change_id); | 55 TransportChangeId change_id); |
| 56 void NotifyNodeDeleted(const NodeId& node, TransportChangeId change_id); |
| 56 | 57 |
| 57 private: | 58 private: |
| 58 typedef std::map<TransportConnectionSpecificNodeId, Node*> NodeMap; | 59 typedef std::map<TransportConnectionSpecificNodeId, Node*> NodeMap; |
| 59 typedef std::map<TransportConnectionSpecificViewId, View*> ViewMap; | 60 typedef std::map<TransportConnectionSpecificViewId, View*> ViewMap; |
| 60 | 61 |
| 61 // Deletes a node owned by this connection. Returns true on success. |source| | 62 // Deletes a node owned by this connection. Returns true on success. |source| |
| 62 // is the connection that originated the change. | 63 // is the connection that originated the change. |
| 63 bool DeleteNodeImpl(ViewManagerConnection* source, | 64 bool DeleteNodeImpl(ViewManagerConnection* source, |
| 64 const NodeId& node_id, | 65 const NodeId& node_id, |
| 65 TransportChangeId change_id); | 66 TransportChangeId change_id); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 ViewMap view_map_; | 120 ViewMap view_map_; |
| 120 | 121 |
| 121 DISALLOW_COPY_AND_ASSIGN(ViewManagerConnection); | 122 DISALLOW_COPY_AND_ASSIGN(ViewManagerConnection); |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 } // namespace view_manager | 125 } // namespace view_manager |
| 125 } // namespace services | 126 } // namespace services |
| 126 } // namespace mojo | 127 } // namespace mojo |
| 127 | 128 |
| 128 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ | 129 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ |
| OLD | NEW |