| 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 "services/ui/ws/display_binding.h" | 5 #include "services/ui/ws/display_binding.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "services/service_manager/public/interfaces/connector.mojom.h" | 8 #include "services/service_manager/public/interfaces/connector.mojom.h" |
| 9 #include "services/ui/ws/display.h" | 9 #include "services/ui/ws/display.h" |
| 10 #include "services/ui/ws/window_manager_access_policy.h" | 10 #include "services/ui/ws/window_manager_access_policy.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 binding_(display, std::move(request)), | 24 binding_(display, std::move(request)), |
| 25 client_(std::move(client)) {} | 25 client_(std::move(client)) {} |
| 26 | 26 |
| 27 DisplayBindingImpl::~DisplayBindingImpl() {} | 27 DisplayBindingImpl::~DisplayBindingImpl() {} |
| 28 | 28 |
| 29 WindowTree* DisplayBindingImpl::CreateWindowTree(ServerWindow* root) { | 29 WindowTree* DisplayBindingImpl::CreateWindowTree(ServerWindow* root) { |
| 30 const uint32_t embed_flags = 0; | 30 const uint32_t embed_flags = 0; |
| 31 WindowTree* tree = window_server_->EmbedAtWindow( | 31 WindowTree* tree = window_server_->EmbedAtWindow( |
| 32 root, user_id_, std::move(client_), embed_flags, | 32 root, user_id_, std::move(client_), embed_flags, |
| 33 base::WrapUnique(new WindowManagerAccessPolicy)); | 33 base::WrapUnique(new WindowManagerAccessPolicy)); |
| 34 tree->ConfigureWindowManager(); | 34 const bool automatically_create_display_roots = true; |
| 35 tree->ConfigureWindowManager(automatically_create_display_roots); |
| 35 return tree; | 36 return tree; |
| 36 } | 37 } |
| 37 | 38 |
| 38 } // namespace ws | 39 } // namespace ws |
| 39 } // namespace ui | 40 } // namespace ui |
| OLD | NEW |