| 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 const_cast<const ViewManagerConnection*>(this)->GetNode(id)); | 49 const_cast<const ViewManagerConnection*>(this)->GetNode(id)); |
| 50 } | 50 } |
| 51 const Node* GetNode(const NodeId& id) const; | 51 const Node* GetNode(const NodeId& id) const; |
| 52 | 52 |
| 53 // Returns the View with the specified id. | 53 // Returns the View with the specified id. |
| 54 View* GetView(const ViewId& id); | 54 View* GetView(const ViewId& id); |
| 55 | 55 |
| 56 // The following methods are invoked after the corresponding change has been | 56 // The following methods are invoked after the corresponding change has been |
| 57 // processed. They do the appropriate bookkeeping and update the client as | 57 // processed. They do the appropriate bookkeeping and update the client as |
| 58 // necessary. | 58 // necessary. |
| 59 void ProcessNodeBoundsChanged(const Node* node, |
| 60 const gfx::Rect& old_bounds, |
| 61 const gfx::Rect& new_bounds, |
| 62 bool originated_change); |
| 59 void ProcessNodeHierarchyChanged(const Node* node, | 63 void ProcessNodeHierarchyChanged(const Node* node, |
| 60 const Node* new_parent, | 64 const Node* new_parent, |
| 61 const Node* old_parent, | 65 const Node* old_parent, |
| 62 TransportChangeId server_change_id, | 66 TransportChangeId server_change_id, |
| 63 bool originated_change); | 67 bool originated_change); |
| 64 void ProcessNodeViewReplaced(const Node* node, | 68 void ProcessNodeViewReplaced(const Node* node, |
| 65 const View* new_view, | 69 const View* new_view, |
| 66 const View* old_view, | 70 const View* old_view, |
| 67 bool originated_change); | 71 bool originated_change); |
| 68 void ProcessNodeDeleted(const NodeId& node, | 72 void ProcessNodeDeleted(const NodeId& node, |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 virtual void SetView(TransportNodeId transport_node_id, | 147 virtual void SetView(TransportNodeId transport_node_id, |
| 144 TransportViewId transport_view_id, | 148 TransportViewId transport_view_id, |
| 145 const Callback<void(bool)>& callback) OVERRIDE; | 149 const Callback<void(bool)>& callback) OVERRIDE; |
| 146 virtual void SetViewContents(TransportViewId view_id, | 150 virtual void SetViewContents(TransportViewId view_id, |
| 147 ScopedSharedBufferHandle buffer, | 151 ScopedSharedBufferHandle buffer, |
| 148 uint32_t buffer_size) OVERRIDE; | 152 uint32_t buffer_size) OVERRIDE; |
| 149 virtual void SetRoots( | 153 virtual void SetRoots( |
| 150 TransportConnectionId connection_id, | 154 TransportConnectionId connection_id, |
| 151 const Array<TransportNodeId>& transport_node_ids, | 155 const Array<TransportNodeId>& transport_node_ids, |
| 152 const Callback<void(bool)>& callback) OVERRIDE; | 156 const Callback<void(bool)>& callback) OVERRIDE; |
| 157 virtual void SetNodeBounds(TransportNodeId node_id, |
| 158 const Rect& bounds, |
| 159 const Callback<void(bool)>& callback) OVERRIDE; |
| 153 | 160 |
| 154 // Overridden from NodeDelegate: | 161 // Overridden from NodeDelegate: |
| 155 virtual void OnNodeHierarchyChanged(const Node* node, | 162 virtual void OnNodeHierarchyChanged(const Node* node, |
| 156 const Node* new_parent, | 163 const Node* new_parent, |
| 157 const Node* old_parent) OVERRIDE; | 164 const Node* old_parent) OVERRIDE; |
| 158 virtual void OnNodeViewReplaced(const Node* node, | 165 virtual void OnNodeViewReplaced(const Node* node, |
| 159 const View* new_view, | 166 const View* new_view, |
| 160 const View* old_view) OVERRIDE; | 167 const View* old_view) OVERRIDE; |
| 161 | 168 |
| 162 RootNodeManager* root_node_manager_; | 169 RootNodeManager* root_node_manager_; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 181 | 188 |
| 182 #if defined(OS_WIN) | 189 #if defined(OS_WIN) |
| 183 #pragma warning(pop) | 190 #pragma warning(pop) |
| 184 #endif | 191 #endif |
| 185 | 192 |
| 186 } // namespace service | 193 } // namespace service |
| 187 } // namespace view_manager | 194 } // namespace view_manager |
| 188 } // namespace mojo | 195 } // namespace mojo |
| 189 | 196 |
| 190 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ | 197 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ |
| OLD | NEW |