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/interfaces/service_provider/service_provider.mojom.h" | 8 #include "mojo/public/interfaces/service_provider/service_provider.mojom.h" |
| 9 #include "mojo/services/view_manager/view.h" |
9 #include "mojo/services/view_manager/view_manager_connection.h" | 10 #include "mojo/services/view_manager/view_manager_connection.h" |
10 #include "ui/aura/env.h" | 11 #include "ui/aura/env.h" |
11 | 12 |
12 namespace mojo { | 13 namespace mojo { |
13 namespace view_manager { | 14 namespace view_manager { |
14 namespace service { | 15 namespace service { |
15 | 16 |
16 RootNodeManager::ScopedChange::ScopedChange( | 17 RootNodeManager::ScopedChange::ScopedChange( |
17 ViewManagerConnection* connection, | 18 ViewManagerConnection* connection, |
18 RootNodeManager* root, | 19 RootNodeManager* root, |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 if (!root_view_manager_.in_setup()) | 191 if (!root_view_manager_.in_setup()) |
191 ProcessNodeHierarchyChanged(node, new_parent, old_parent); | 192 ProcessNodeHierarchyChanged(node, new_parent, old_parent); |
192 } | 193 } |
193 | 194 |
194 void RootNodeManager::OnNodeViewReplaced(const Node* node, | 195 void RootNodeManager::OnNodeViewReplaced(const Node* node, |
195 const View* new_view, | 196 const View* new_view, |
196 const View* old_view) { | 197 const View* old_view) { |
197 ProcessNodeViewReplaced(node, new_view, old_view); | 198 ProcessNodeViewReplaced(node, new_view, old_view); |
198 } | 199 } |
199 | 200 |
| 201 void RootNodeManager::OnViewInputEvent(const View* view, |
| 202 const ui::Event* event) { |
| 203 GetConnection(view->id().connection_id)->ProcessViewInputEvent(view, event); |
| 204 } |
| 205 |
200 } // namespace service | 206 } // namespace service |
201 } // namespace view_manager | 207 } // namespace view_manager |
202 } // namespace mojo | 208 } // namespace mojo |
OLD | NEW |