| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 bool originated_change); | 79 bool originated_change); |
| 80 void ProcessNodeHierarchyChanged(const Node* node, | 80 void ProcessNodeHierarchyChanged(const Node* node, |
| 81 const Node* new_parent, | 81 const Node* new_parent, |
| 82 const Node* old_parent, | 82 const Node* old_parent, |
| 83 bool originated_change); | 83 bool originated_change); |
| 84 void ProcessNodeReorder(const Node* node, | 84 void ProcessNodeReorder(const Node* node, |
| 85 const Node* relative_node, | 85 const Node* relative_node, |
| 86 OrderDirection direction, | 86 OrderDirection direction, |
| 87 bool originated_change); | 87 bool originated_change); |
| 88 void ProcessNodeDeleted(const NodeId& node, bool originated_change); | 88 void ProcessNodeDeleted(const NodeId& node, bool originated_change); |
| 89 void ProcessFocusChanged(const Node* focused_node, | |
| 90 const Node* blurred_node, | |
| 91 bool originated_change); | |
| 92 | 89 |
| 93 // TODO(sky): move this to private section (currently can't because of | 90 // TODO(sky): move this to private section (currently can't because of |
| 94 // bindings). | 91 // bindings). |
| 95 // InterfaceImp overrides: | 92 // InterfaceImp overrides: |
| 96 virtual void OnConnectionError() MOJO_OVERRIDE; | 93 virtual void OnConnectionError() MOJO_OVERRIDE; |
| 97 | 94 |
| 98 private: | 95 private: |
| 99 typedef std::map<ConnectionSpecificId, Node*> NodeMap; | 96 typedef std::map<ConnectionSpecificId, Node*> NodeMap; |
| 100 typedef base::hash_set<Id> NodeIdSet; | 97 typedef base::hash_set<Id> NodeIdSet; |
| 101 | 98 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 Id relative_view_id, | 152 Id relative_view_id, |
| 156 OrderDirection direction, | 153 OrderDirection direction, |
| 157 const Callback<void(bool)>& callback) OVERRIDE; | 154 const Callback<void(bool)>& callback) OVERRIDE; |
| 158 virtual void GetViewTree( | 155 virtual void GetViewTree( |
| 159 Id view_id, | 156 Id view_id, |
| 160 const Callback<void(Array<ViewDataPtr>)>& callback) OVERRIDE; | 157 const Callback<void(Array<ViewDataPtr>)>& callback) OVERRIDE; |
| 161 virtual void SetViewContents(Id view_id, | 158 virtual void SetViewContents(Id view_id, |
| 162 ScopedSharedBufferHandle buffer, | 159 ScopedSharedBufferHandle buffer, |
| 163 uint32_t buffer_size, | 160 uint32_t buffer_size, |
| 164 const Callback<void(bool)>& callback) OVERRIDE; | 161 const Callback<void(bool)>& callback) OVERRIDE; |
| 165 virtual void SetFocus(Id view_id, | |
| 166 const Callback<void(bool)> & callback) OVERRIDE; | |
| 167 virtual void SetViewBounds(Id view_id, | 162 virtual void SetViewBounds(Id view_id, |
| 168 RectPtr bounds, | 163 RectPtr bounds, |
| 169 const Callback<void(bool)>& callback) OVERRIDE; | 164 const Callback<void(bool)>& callback) OVERRIDE; |
| 170 virtual void SetViewVisibility(Id view_id, | 165 virtual void SetViewVisibility(Id view_id, |
| 171 bool visible, | 166 bool visible, |
| 172 const Callback<void(bool)>& callback) OVERRIDE; | 167 const Callback<void(bool)>& callback) OVERRIDE; |
| 173 virtual void Embed(const String& url, | 168 virtual void Embed(const String& url, |
| 174 Id view_id, | 169 Id view_id, |
| 175 ServiceProviderPtr service_provider, | 170 ServiceProviderPtr service_provider, |
| 176 const Callback<void(bool)>& callback) OVERRIDE; | 171 const Callback<void(bool)>& callback) OVERRIDE; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 }; | 221 }; |
| 227 | 222 |
| 228 #if defined(OS_WIN) | 223 #if defined(OS_WIN) |
| 229 #pragma warning(pop) | 224 #pragma warning(pop) |
| 230 #endif | 225 #endif |
| 231 | 226 |
| 232 } // namespace service | 227 } // namespace service |
| 233 } // namespace mojo | 228 } // namespace mojo |
| 234 | 229 |
| 235 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ | 230 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ |
| OLD | NEW |