OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/test_utils.h" | 5 #include "components/mus/ws/test_utils.h" |
6 | 6 |
7 #include "cc/output/copy_output_request.h" | 7 #include "cc/output/copy_output_request.h" |
8 #include "components/mus/surfaces/surfaces_state.h" | 8 #include "components/mus/surfaces/surfaces_state.h" |
9 #include "components/mus/ws/display_binding.h" | 9 #include "components/mus/ws/display_binding.h" |
10 #include "components/mus/ws/window_manager_access_policy.h" | 10 #include "components/mus/ws/window_manager_access_policy.h" |
11 #include "components/mus/ws/window_manager_factory_service.h" | 11 #include "components/mus/ws/window_manager_factory_service.h" |
12 #include "mojo/converters/geometry/geometry_type_converters.h" | 12 #include "mojo/converters/geometry/geometry_type_converters.h" |
13 #include "mojo/shell/public/interfaces/connector.mojom.h" | 13 #include "services/shell/public/interfaces/connector.mojom.h" |
14 | 14 |
15 namespace mus { | 15 namespace mus { |
16 namespace ws { | 16 namespace ws { |
17 namespace test { | 17 namespace test { |
18 namespace { | 18 namespace { |
19 | 19 |
20 // ----------------------------------------------------------------------------- | 20 // ----------------------------------------------------------------------------- |
21 // Empty implementation of PlatformDisplay. | 21 // Empty implementation of PlatformDisplay. |
22 class TestPlatformDisplay : public PlatformDisplay { | 22 class TestPlatformDisplay : public PlatformDisplay { |
23 public: | 23 public: |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 return nullptr; | 363 return nullptr; |
364 if (!tree->AddWindow(parent_client_id, client_window_id)) | 364 if (!tree->AddWindow(parent_client_id, client_window_id)) |
365 return nullptr; | 365 return nullptr; |
366 *client_id = client_window_id; | 366 *client_id = client_window_id; |
367 return tree->GetWindowByClientId(client_window_id); | 367 return tree->GetWindowByClientId(client_window_id); |
368 } | 368 } |
369 | 369 |
370 } // namespace test | 370 } // namespace test |
371 } // namespace ws | 371 } // namespace ws |
372 } // namespace mus | 372 } // namespace mus |
OLD | NEW |