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_ROOT_NODE_MANAGER_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ |
6 #define MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // term notify their clients. | 88 // term notify their clients. |
89 void ProcessNodeBoundsChanged(const Node* node, | 89 void ProcessNodeBoundsChanged(const Node* node, |
90 const gfx::Rect& old_bounds, | 90 const gfx::Rect& old_bounds, |
91 const gfx::Rect& new_bounds); | 91 const gfx::Rect& new_bounds); |
92 void ProcessNodeHierarchyChanged(const Node* node, | 92 void ProcessNodeHierarchyChanged(const Node* node, |
93 const Node* new_parent, | 93 const Node* new_parent, |
94 const Node* old_parent); | 94 const Node* old_parent); |
95 void ProcessNodeViewReplaced(const Node* node, | 95 void ProcessNodeViewReplaced(const Node* node, |
96 const View* new_view_id, | 96 const View* new_view_id, |
97 const View* old_view_id); | 97 const View* old_view_id); |
| 98 void ProcessViewInputEvent(const View* view, const ui::Event* event); |
98 void ProcessNodeDeleted(const NodeId& node); | 99 void ProcessNodeDeleted(const NodeId& node); |
99 void ProcessViewDeleted(const ViewId& view); | 100 void ProcessViewDeleted(const ViewId& view); |
100 | 101 |
101 private: | 102 private: |
102 // Used to setup any static state needed by RootNodeManager. | 103 // Used to setup any static state needed by RootNodeManager. |
103 struct Context { | 104 struct Context { |
104 Context(); | 105 Context(); |
105 ~Context(); | 106 ~Context(); |
106 }; | 107 }; |
107 | 108 |
(...skipping 15 matching lines...) Expand all Loading... |
123 return connection_id == change_source_; | 124 return connection_id == change_source_; |
124 } | 125 } |
125 | 126 |
126 // Overridden from NodeDelegate: | 127 // Overridden from NodeDelegate: |
127 virtual void OnNodeHierarchyChanged(const Node* node, | 128 virtual void OnNodeHierarchyChanged(const Node* node, |
128 const Node* new_parent, | 129 const Node* new_parent, |
129 const Node* old_parent) OVERRIDE; | 130 const Node* old_parent) OVERRIDE; |
130 virtual void OnNodeViewReplaced(const Node* node, | 131 virtual void OnNodeViewReplaced(const Node* node, |
131 const View* new_view, | 132 const View* new_view, |
132 const View* old_view) OVERRIDE; | 133 const View* old_view) OVERRIDE; |
| 134 virtual void OnViewInputEvent(const View* view, |
| 135 const ui::Event* event) OVERRIDE; |
133 | 136 |
134 Context context_; | 137 Context context_; |
135 | 138 |
136 ServiceProvider* service_provider_; | 139 ServiceProvider* service_provider_; |
137 | 140 |
138 // ID to use for next ViewManagerConnection. | 141 // ID to use for next ViewManagerConnection. |
139 TransportConnectionId next_connection_id_; | 142 TransportConnectionId next_connection_id_; |
140 | 143 |
141 TransportChangeId next_server_change_id_; | 144 TransportChangeId next_server_change_id_; |
142 | 145 |
(...skipping 16 matching lines...) Expand all Loading... |
159 std::set<ViewManagerConnection*> connections_created_by_connect_; | 162 std::set<ViewManagerConnection*> connections_created_by_connect_; |
160 | 163 |
161 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); | 164 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); |
162 }; | 165 }; |
163 | 166 |
164 } // namespace service | 167 } // namespace service |
165 } // namespace view_manager | 168 } // namespace view_manager |
166 } // namespace mojo | 169 } // namespace mojo |
167 | 170 |
168 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ | 171 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ |
OLD | NEW |