| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/mus/ws/window_tree_host_connection.h" | 5 #include "components/mus/ws/window_tree_host_connection.h" |
| 6 | 6 |
| 7 #include "components/mus/ws/connection_manager.h" | 7 #include "components/mus/ws/connection_manager.h" |
| 8 #include "components/mus/ws/window_tree_host_impl.h" | 8 #include "components/mus/ws/window_tree_host_impl.h" |
| 9 | 9 |
| 10 namespace mus { | 10 namespace mus { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 ConnectionManager* manager) | 55 ConnectionManager* manager) |
| 56 : WindowTreeHostConnection(std::move(host_impl), manager), | 56 : WindowTreeHostConnection(std::move(host_impl), manager), |
| 57 binding_(window_tree_host(), std::move(request)), | 57 binding_(window_tree_host(), std::move(request)), |
| 58 client_(std::move(client)) {} | 58 client_(std::move(client)) {} |
| 59 | 59 |
| 60 WindowTreeHostConnectionImpl::~WindowTreeHostConnectionImpl() {} | 60 WindowTreeHostConnectionImpl::~WindowTreeHostConnectionImpl() {} |
| 61 | 61 |
| 62 void WindowTreeHostConnectionImpl::OnDisplayInitialized() { | 62 void WindowTreeHostConnectionImpl::OnDisplayInitialized() { |
| 63 connection_manager()->AddHost(this); | 63 connection_manager()->AddHost(this); |
| 64 set_window_tree(connection_manager()->EmbedAtWindow( | 64 set_window_tree(connection_manager()->EmbedAtWindow( |
| 65 kInvalidConnectionId, window_tree_host()->root_window()->id(), | 65 window_tree_host()->root_window()->id(), |
| 66 mojom::WindowTree::ACCESS_POLICY_EMBED_ROOT, std::move(client_))); | 66 mojom::WindowTree::ACCESS_POLICY_EMBED_ROOT, std::move(client_))); |
| 67 } | 67 } |
| 68 | 68 |
| 69 } // namespace ws | 69 } // namespace ws |
| 70 | 70 |
| 71 } // namespace mus | 71 } // namespace mus |
| OLD | NEW |