| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // Notifies the client of a hierarchy change. | 53 // Notifies the client of a hierarchy change. |
| 54 void NotifyNodeHierarchyChanged(const NodeId& node, | 54 void NotifyNodeHierarchyChanged(const NodeId& node, |
| 55 const NodeId& new_parent, | 55 const NodeId& new_parent, |
| 56 const NodeId& old_parent, | 56 const NodeId& old_parent, |
| 57 TransportChangeId change_id); | 57 TransportChangeId change_id); |
| 58 void NotifyNodeViewReplaced(const NodeId& node, | 58 void NotifyNodeViewReplaced(const NodeId& node, |
| 59 const ViewId& new_view_id, | 59 const ViewId& new_view_id, |
| 60 const ViewId& old_view_id, | 60 const ViewId& old_view_id, |
| 61 TransportChangeId change_id); | 61 TransportChangeId change_id); |
| 62 void NotifyNodeDeleted(const NodeId& node, TransportChangeId change_id); | 62 void NotifyNodeDeleted(const NodeId& node, TransportChangeId change_id); |
| 63 void NotifyViewDeleted(const ViewId& view, TransportChangeId change_id); |
| 63 | 64 |
| 64 private: | 65 private: |
| 65 typedef std::map<TransportConnectionSpecificNodeId, Node*> NodeMap; | 66 typedef std::map<TransportConnectionSpecificNodeId, Node*> NodeMap; |
| 66 typedef std::map<TransportConnectionSpecificViewId, View*> ViewMap; | 67 typedef std::map<TransportConnectionSpecificViewId, View*> ViewMap; |
| 67 | 68 |
| 68 // Deletes a node owned by this connection. Returns true on success. |source| | 69 // Deletes a node owned by this connection. Returns true on success. |source| |
| 69 // is the connection that originated the change. | 70 // is the connection that originated the change. |
| 70 bool DeleteNodeImpl(ViewManagerConnection* source, | 71 bool DeleteNodeImpl(ViewManagerConnection* source, |
| 71 const NodeId& node_id, | 72 const NodeId& node_id, |
| 72 TransportChangeId change_id); | 73 TransportChangeId change_id); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 137 |
| 137 #if defined(OS_WIN) | 138 #if defined(OS_WIN) |
| 138 #pragma warning(pop) | 139 #pragma warning(pop) |
| 139 #endif | 140 #endif |
| 140 | 141 |
| 141 } // namespace view_manager | 142 } // namespace view_manager |
| 142 } // namespace services | 143 } // namespace services |
| 143 } // namespace mojo | 144 } // namespace mojo |
| 144 | 145 |
| 145 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ | 146 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ |
| OLD | NEW |