| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |