Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Side by Side Diff: mojo/services/view_manager/root_node_manager.cc

Issue 316713002: Wire input events through the ViewManagerClient interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « mojo/services/view_manager/root_node_manager.h ('k') | mojo/services/view_manager/test_change_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698