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

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

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix network_service_loader Created 6 years, 5 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
« no previous file with comments | « mojo/services/view_manager/main.cc ('k') | mojo/services/view_manager/view_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 ConnectionMap::const_iterator it = connection_map_.find(creator_id); 258 ConnectionMap::const_iterator it = connection_map_.find(creator_id);
259 if (it != connection_map_.end()) 259 if (it != connection_map_.end())
260 creator_url = it->second->url(); 260 creator_url = it->second->url();
261 261
262 ViewManagerServiceImpl* connection = 262 ViewManagerServiceImpl* connection =
263 new ViewManagerServiceImpl(this, 263 new ViewManagerServiceImpl(this,
264 creator_id, 264 creator_id,
265 creator_url, 265 creator_url,
266 url.To<std::string>(), 266 url.To<std::string>(),
267 root_id); 267 root_id);
268 BindToPipe(connection, pipe.handle0.Pass()); 268 WeakBindToPipe(connection, pipe.handle0.Pass());
269 connections_created_by_connect_.insert(connection); 269 connections_created_by_connect_.insert(connection);
270 OnConnectionMessagedClient(connection->id()); 270 OnConnectionMessagedClient(connection->id());
271 return connection; 271 return connection;
272 } 272 }
273 273
274 void RootNodeManager::OnNodeDestroyed(const Node* node) { 274 void RootNodeManager::OnNodeDestroyed(const Node* node) {
275 ProcessNodeDeleted(node->id()); 275 ProcessNodeDeleted(node->id());
276 } 276 }
277 277
278 void RootNodeManager::OnNodeHierarchyChanged(const Node* node, 278 void RootNodeManager::OnNodeHierarchyChanged(const Node* node,
(...skipping 16 matching lines...) Expand all
295 } 295 }
296 296
297 void RootNodeManager::OnViewInputEvent(const View* view, 297 void RootNodeManager::OnViewInputEvent(const View* view,
298 const ui::Event* event) { 298 const ui::Event* event) {
299 DispatchViewInputEventToWindowManager(view, event); 299 DispatchViewInputEventToWindowManager(view, event);
300 } 300 }
301 301
302 } // namespace service 302 } // namespace service
303 } // namespace view_manager 303 } // namespace view_manager
304 } // namespace mojo 304 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/view_manager/main.cc ('k') | mojo/services/view_manager/view_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698