| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 Id server_change_id, | 92 Id server_change_id, |
| 93 bool originated_change); | 93 bool originated_change); |
| 94 void ProcessNodeViewReplaced(const Node* node, | 94 void ProcessNodeViewReplaced(const Node* node, |
| 95 const View* new_view, | 95 const View* new_view, |
| 96 const View* old_view, | 96 const View* old_view, |
| 97 bool originated_change); | 97 bool originated_change); |
| 98 void ProcessNodeDeleted(const NodeId& node, | 98 void ProcessNodeDeleted(const NodeId& node, |
| 99 Id server_change_id, | 99 Id server_change_id, |
| 100 bool originated_change); | 100 bool originated_change); |
| 101 void ProcessViewDeleted(const ViewId& view, bool originated_change); | 101 void ProcessViewDeleted(const ViewId& view, bool originated_change); |
| 102 void ProcessViewInputEvent(const View* view, const ui::Event* event); | |
| 103 | 102 |
| 104 // TODO(sky): move this to private section (currently can't because of | 103 // TODO(sky): move this to private section (currently can't because of |
| 105 // bindings). | 104 // bindings). |
| 106 // InterfaceImp overrides: | 105 // InterfaceImp overrides: |
| 107 virtual void OnConnectionError() MOJO_OVERRIDE; | 106 virtual void OnConnectionError() MOJO_OVERRIDE; |
| 108 | 107 |
| 109 private: | 108 private: |
| 110 typedef std::map<ConnectionSpecificId, Node*> NodeMap; | 109 typedef std::map<ConnectionSpecificId, Node*> NodeMap; |
| 111 typedef std::map<ConnectionSpecificId, View*> ViewMap; | 110 typedef std::map<ConnectionSpecificId, View*> ViewMap; |
| 112 typedef base::hash_set<Id> NodeIdSet; | 111 typedef base::hash_set<Id> NodeIdSet; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 uint32_t buffer_size, | 198 uint32_t buffer_size, |
| 200 const Callback<void(bool)>& callback) OVERRIDE; | 199 const Callback<void(bool)>& callback) OVERRIDE; |
| 201 virtual void SetFocus(Id node_id, | 200 virtual void SetFocus(Id node_id, |
| 202 const Callback<void(bool)> & callback) OVERRIDE; | 201 const Callback<void(bool)> & callback) OVERRIDE; |
| 203 virtual void SetNodeBounds(Id node_id, | 202 virtual void SetNodeBounds(Id node_id, |
| 204 RectPtr bounds, | 203 RectPtr bounds, |
| 205 const Callback<void(bool)>& callback) OVERRIDE; | 204 const Callback<void(bool)>& callback) OVERRIDE; |
| 206 virtual void Embed(const mojo::String& url, | 205 virtual void Embed(const mojo::String& url, |
| 207 mojo::Array<uint32_t> node_ids, | 206 mojo::Array<uint32_t> node_ids, |
| 208 const mojo::Callback<void(bool)>& callback) OVERRIDE; | 207 const mojo::Callback<void(bool)>& callback) OVERRIDE; |
| 208 virtual void DispatchOnViewInputEvent(Id transport_view_id, |
| 209 EventPtr event) OVERRIDE; |
| 209 | 210 |
| 210 // Overridden from NodeDelegate: | 211 // Overridden from NodeDelegate: |
| 211 virtual void OnNodeHierarchyChanged(const Node* node, | 212 virtual void OnNodeHierarchyChanged(const Node* node, |
| 212 const Node* new_parent, | 213 const Node* new_parent, |
| 213 const Node* old_parent) OVERRIDE; | 214 const Node* old_parent) OVERRIDE; |
| 214 virtual void OnNodeViewReplaced(const Node* node, | 215 virtual void OnNodeViewReplaced(const Node* node, |
| 215 const View* new_view, | 216 const View* new_view, |
| 216 const View* old_view) OVERRIDE; | 217 const View* old_view) OVERRIDE; |
| 217 virtual void OnViewInputEvent(const View* view, | 218 virtual void OnViewInputEvent(const View* view, |
| 218 const ui::Event* event) OVERRIDE; | 219 const ui::Event* event) OVERRIDE; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 259 |
| 259 #if defined(OS_WIN) | 260 #if defined(OS_WIN) |
| 260 #pragma warning(pop) | 261 #pragma warning(pop) |
| 261 #endif | 262 #endif |
| 262 | 263 |
| 263 } // namespace service | 264 } // namespace service |
| 264 } // namespace view_manager | 265 } // namespace view_manager |
| 265 } // namespace mojo | 266 } // namespace mojo |
| 266 | 267 |
| 267 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ | 268 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ |
| OLD | NEW |