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); | |
99 void ProcessNodeDeleted(const NodeId& node); | 98 void ProcessNodeDeleted(const NodeId& node); |
100 void ProcessViewDeleted(const ViewId& view); | 99 void ProcessViewDeleted(const ViewId& view); |
101 | 100 |
102 private: | 101 private: |
103 // Used to setup any static state needed by RootNodeManager. | 102 // Used to setup any static state needed by RootNodeManager. |
104 struct Context { | 103 struct Context { |
105 Context(); | 104 Context(); |
106 ~Context(); | 105 ~Context(); |
107 }; | 106 }; |
108 | 107 |
(...skipping 15 matching lines...) Expand all Loading... |
124 return connection_id == change_source_; | 123 return connection_id == change_source_; |
125 } | 124 } |
126 | 125 |
127 // Overridden from NodeDelegate: | 126 // Overridden from NodeDelegate: |
128 virtual void OnNodeHierarchyChanged(const Node* node, | 127 virtual void OnNodeHierarchyChanged(const Node* node, |
129 const Node* new_parent, | 128 const Node* new_parent, |
130 const Node* old_parent) OVERRIDE; | 129 const Node* old_parent) OVERRIDE; |
131 virtual void OnNodeViewReplaced(const Node* node, | 130 virtual void OnNodeViewReplaced(const Node* node, |
132 const View* new_view, | 131 const View* new_view, |
133 const View* old_view) OVERRIDE; | 132 const View* old_view) OVERRIDE; |
134 virtual void OnViewInputEvent(const View* view, | |
135 const ui::Event* event) OVERRIDE; | |
136 | 133 |
137 Context context_; | 134 Context context_; |
138 | 135 |
139 ServiceProvider* service_provider_; | 136 ServiceProvider* service_provider_; |
140 | 137 |
141 // ID to use for next ViewManagerConnection. | 138 // ID to use for next ViewManagerConnection. |
142 TransportConnectionId next_connection_id_; | 139 TransportConnectionId next_connection_id_; |
143 | 140 |
144 TransportChangeId next_server_change_id_; | 141 TransportChangeId next_server_change_id_; |
145 | 142 |
(...skipping 16 matching lines...) Expand all Loading... |
162 std::set<ViewManagerConnection*> connections_created_by_connect_; | 159 std::set<ViewManagerConnection*> connections_created_by_connect_; |
163 | 160 |
164 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); | 161 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); |
165 }; | 162 }; |
166 | 163 |
167 } // namespace service | 164 } // namespace service |
168 } // namespace view_manager | 165 } // namespace view_manager |
169 } // namespace mojo | 166 } // namespace mojo |
170 | 167 |
171 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ | 168 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ |
OLD | NEW |