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" |
11 #include "mojo/services/view_manager/view.h" | 11 #include "mojo/services/view_manager/view.h" |
12 #include "mojo/services/view_manager/view_manager_service_impl.h" | 12 #include "mojo/services/view_manager/view_manager_service_impl.h" |
13 #include "ui/aura/client/focus_client.h" | 13 #include "ui/aura/client/focus_client.h" |
14 #include "ui/aura/env.h" | 14 #include "ui/aura/env.h" |
15 | 15 |
16 namespace mojo { | 16 namespace mojo { |
17 namespace view_manager { | |
18 namespace service { | 17 namespace service { |
19 | 18 |
20 RootNodeManager::ScopedChange::ScopedChange( | 19 RootNodeManager::ScopedChange::ScopedChange( |
21 ViewManagerServiceImpl* connection, | 20 ViewManagerServiceImpl* connection, |
22 RootNodeManager* root, | 21 RootNodeManager* root, |
23 bool is_delete_node) | 22 bool is_delete_node) |
24 : root_(root), | 23 : root_(root), |
25 connection_id_(connection->id()), | 24 connection_id_(connection->id()), |
26 is_delete_node_(is_delete_node) { | 25 is_delete_node_(is_delete_node) { |
27 root_->PrepareForChange(this); | 26 root_->PrepareForChange(this); |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 const View* old_view) { | 292 const View* old_view) { |
294 ProcessNodeViewReplaced(node, new_view, old_view); | 293 ProcessNodeViewReplaced(node, new_view, old_view); |
295 } | 294 } |
296 | 295 |
297 void RootNodeManager::OnViewInputEvent(const View* view, | 296 void RootNodeManager::OnViewInputEvent(const View* view, |
298 const ui::Event* event) { | 297 const ui::Event* event) { |
299 DispatchViewInputEventToWindowManager(view, event); | 298 DispatchViewInputEventToWindowManager(view, event); |
300 } | 299 } |
301 | 300 |
302 } // namespace service | 301 } // namespace service |
303 } // namespace view_manager | |
304 } // namespace mojo | 302 } // namespace mojo |
OLD | NEW |