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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 bool originated_change); | 68 bool originated_change); |
69 void ProcessNodeHierarchyChanged(const Node* node, | 69 void ProcessNodeHierarchyChanged(const Node* node, |
70 const Node* new_parent, | 70 const Node* new_parent, |
71 const Node* old_parent, | 71 const Node* old_parent, |
72 TransportChangeId server_change_id, | 72 TransportChangeId server_change_id, |
73 bool originated_change); | 73 bool originated_change); |
74 void ProcessNodeViewReplaced(const Node* node, | 74 void ProcessNodeViewReplaced(const Node* node, |
75 const View* new_view, | 75 const View* new_view, |
76 const View* old_view, | 76 const View* old_view, |
77 bool originated_change); | 77 bool originated_change); |
| 78 void ProcessViewInputEvent(const View* view, const ui::Event* event); |
78 void ProcessNodeDeleted(const NodeId& node, | 79 void ProcessNodeDeleted(const NodeId& node, |
79 TransportChangeId server_change_id, | 80 TransportChangeId server_change_id, |
80 bool originated_change); | 81 bool originated_change); |
81 void ProcessViewDeleted(const ViewId& view, bool originated_change); | 82 void ProcessViewDeleted(const ViewId& view, bool originated_change); |
82 | 83 |
83 private: | 84 private: |
84 typedef std::map<TransportConnectionSpecificNodeId, Node*> NodeMap; | 85 typedef std::map<TransportConnectionSpecificNodeId, Node*> NodeMap; |
85 typedef std::map<TransportConnectionSpecificViewId, View*> ViewMap; | 86 typedef std::map<TransportConnectionSpecificViewId, View*> ViewMap; |
86 typedef base::hash_set<TransportNodeId> NodeIdSet; | 87 typedef base::hash_set<TransportNodeId> NodeIdSet; |
87 | 88 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 const Rect& bounds, | 169 const Rect& bounds, |
169 const Callback<void(bool)>& callback) OVERRIDE; | 170 const Callback<void(bool)>& callback) OVERRIDE; |
170 | 171 |
171 // Overridden from NodeDelegate: | 172 // Overridden from NodeDelegate: |
172 virtual void OnNodeHierarchyChanged(const Node* node, | 173 virtual void OnNodeHierarchyChanged(const Node* node, |
173 const Node* new_parent, | 174 const Node* new_parent, |
174 const Node* old_parent) OVERRIDE; | 175 const Node* old_parent) OVERRIDE; |
175 virtual void OnNodeViewReplaced(const Node* node, | 176 virtual void OnNodeViewReplaced(const Node* node, |
176 const View* new_view, | 177 const View* new_view, |
177 const View* old_view) OVERRIDE; | 178 const View* old_view) OVERRIDE; |
| 179 virtual void OnViewInputEvent(const View* view, |
| 180 const ui::Event* event) OVERRIDE; |
178 | 181 |
179 // InterfaceImp overrides: | 182 // InterfaceImp overrides: |
180 virtual void OnConnectionEstablished() MOJO_OVERRIDE; | 183 virtual void OnConnectionEstablished() MOJO_OVERRIDE; |
181 | 184 |
182 RootNodeManager* root_node_manager_; | 185 RootNodeManager* root_node_manager_; |
183 | 186 |
184 // Id of this connection as assigned by RootNodeManager. Assigned in | 187 // Id of this connection as assigned by RootNodeManager. Assigned in |
185 // OnConnectionEstablished(). | 188 // OnConnectionEstablished(). |
186 TransportConnectionId id_; | 189 TransportConnectionId id_; |
187 | 190 |
(...skipping 17 matching lines...) Expand all Loading... |
205 | 208 |
206 #if defined(OS_WIN) | 209 #if defined(OS_WIN) |
207 #pragma warning(pop) | 210 #pragma warning(pop) |
208 #endif | 211 #endif |
209 | 212 |
210 } // namespace service | 213 } // namespace service |
211 } // namespace view_manager | 214 } // namespace view_manager |
212 } // namespace mojo | 215 } // namespace mojo |
213 | 216 |
214 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ | 217 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_CONNECTION_H_ |
OLD | NEW |