| 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_SERVICE_IMPL_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ |
| 6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 const Node** old_parent, | 162 const Node** old_parent, |
| 163 std::vector<const Node*>* to_send); | 163 std::vector<const Node*>* to_send); |
| 164 | 164 |
| 165 // Converts an array of Nodes to NodeDatas. This assumes all the nodes are | 165 // Converts an array of Nodes to NodeDatas. This assumes all the nodes are |
| 166 // valid for the client. The parent of nodes the client is not allowed to see | 166 // valid for the client. The parent of nodes the client is not allowed to see |
| 167 // are set to NULL (in the returned NodeDatas). | 167 // are set to NULL (in the returned NodeDatas). |
| 168 Array<NodeDataPtr> NodesToNodeDatas(const std::vector<const Node*>& nodes); | 168 Array<NodeDataPtr> NodesToNodeDatas(const std::vector<const Node*>& nodes); |
| 169 | 169 |
| 170 // Overridden from ViewManagerService: | 170 // Overridden from ViewManagerService: |
| 171 virtual void CreateNode(Id transport_node_id, | 171 virtual void CreateNode(Id transport_node_id, |
| 172 const Callback<void(bool)>& callback) OVERRIDE; | 172 const Callback<void(ErrorCode)>& callback) OVERRIDE; |
| 173 virtual void DeleteNode(Id transport_node_id, | 173 virtual void DeleteNode(Id transport_node_id, |
| 174 Id server_change_id, | 174 Id server_change_id, |
| 175 const Callback<void(bool)>& callback) OVERRIDE; | 175 const Callback<void(bool)>& callback) OVERRIDE; |
| 176 virtual void AddNode(Id parent_id, | 176 virtual void AddNode(Id parent_id, |
| 177 Id child_id, | 177 Id child_id, |
| 178 Id server_change_id, | 178 Id server_change_id, |
| 179 const Callback<void(bool)>& callback) OVERRIDE; | 179 const Callback<void(bool)>& callback) OVERRIDE; |
| 180 virtual void RemoveNodeFromParent( | 180 virtual void RemoveNodeFromParent( |
| 181 Id node_id, | 181 Id node_id, |
| 182 Id server_change_id, | 182 Id server_change_id, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 #if defined(OS_WIN) | 257 #if defined(OS_WIN) |
| 258 #pragma warning(pop) | 258 #pragma warning(pop) |
| 259 #endif | 259 #endif |
| 260 | 260 |
| 261 } // namespace service | 261 } // namespace service |
| 262 } // namespace view_manager | 262 } // namespace view_manager |
| 263 } // namespace mojo | 263 } // namespace mojo |
| 264 | 264 |
| 265 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ | 265 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ |
| OLD | NEW |