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 #include "mojo/services/view_manager/root_node_manager.h" | 5 #include "mojo/services/view_manager/root_node_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "mojo/public/cpp/application/application_connection.h" | 8 #include "mojo/public/cpp/application/application_connection.h" |
9 #include "mojo/public/interfaces/service_provider/service_provider.mojom.h" | 9 #include "mojo/public/interfaces/service_provider/service_provider.mojom.h" |
10 #include "mojo/services/public/cpp/input_events/input_events_type_converters.h" | 10 #include "mojo/services/public/cpp/input_events/input_events_type_converters.h" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 return connection; | 259 return connection; |
260 } | 260 } |
261 | 261 |
262 void RootNodeManager::OnNodeHierarchyChanged(const Node* node, | 262 void RootNodeManager::OnNodeHierarchyChanged(const Node* node, |
263 const Node* new_parent, | 263 const Node* new_parent, |
264 const Node* old_parent) { | 264 const Node* old_parent) { |
265 if (!root_view_manager_.in_setup()) | 265 if (!root_view_manager_.in_setup()) |
266 ProcessNodeHierarchyChanged(node, new_parent, old_parent); | 266 ProcessNodeHierarchyChanged(node, new_parent, old_parent); |
267 } | 267 } |
268 | 268 |
269 void RootNodeManager::OnNodeBoundsChanged(const Node* node, | |
270 const gfx::Rect& old_bounds, | |
271 const gfx::Rect& new_bounds) { | |
272 ProcessNodeBoundsChanged(node, old_bounds, new_bounds); | |
273 } | |
274 | |
275 void RootNodeManager::OnNodeViewReplaced(const Node* node, | 269 void RootNodeManager::OnNodeViewReplaced(const Node* node, |
276 const View* new_view, | 270 const View* new_view, |
277 const View* old_view) { | 271 const View* old_view) { |
278 ProcessNodeViewReplaced(node, new_view, old_view); | 272 ProcessNodeViewReplaced(node, new_view, old_view); |
279 } | 273 } |
280 | 274 |
281 void RootNodeManager::OnViewInputEvent(const View* view, | 275 void RootNodeManager::OnViewInputEvent(const View* view, |
282 const ui::Event* event) { | 276 const ui::Event* event) { |
283 DispatchViewInputEventToWindowManager(view, event); | 277 DispatchViewInputEventToWindowManager(view, event); |
284 } | 278 } |
285 | 279 |
286 } // namespace service | 280 } // namespace service |
287 } // namespace view_manager | 281 } // namespace view_manager |
288 } // namespace mojo | 282 } // namespace mojo |
OLD | NEW |