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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 ViewMap view_map_; | 123 ViewMap view_map_; |
123 | 124 |
124 DISALLOW_COPY_AND_ASSIGN(ViewManagerConnection); | 125 DISALLOW_COPY_AND_ASSIGN(ViewManagerConnection); |
125 }; | 126 }; |
126 | 127 |
127 } // namespace view_manager | 128 } // namespace view_manager |
128 } // namespace services | 129 } // namespace services |
129 } // namespace mojo | 130 } // namespace mojo |
130 | 131 |
131 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ | 132 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ |
OLD | NEW |