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 "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "cc/output/copy_output_request.h" | 8 #include "cc/output/copy_output_request.h" |
9 #include "components/mus/surfaces/surfaces_state.h" | 9 #include "components/mus/surfaces/surfaces_state.h" |
10 #include "components/mus/ws/display_binding.h" | 10 #include "components/mus/ws/display_binding.h" |
11 #include "components/mus/ws/server_window_surface_manager_test_api.h" | 11 #include "components/mus/ws/server_window_surface_manager_test_api.h" |
12 #include "components/mus/ws/window_manager_access_policy.h" | 12 #include "components/mus/ws/window_manager_access_policy.h" |
13 #include "components/mus/ws/window_manager_factory_service.h" | 13 #include "components/mus/ws/window_manager_factory_service.h" |
14 #include "mojo/converters/geometry/geometry_type_converters.h" | |
15 #include "services/shell/public/interfaces/connector.mojom.h" | 14 #include "services/shell/public/interfaces/connector.mojom.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "ui/gfx/geometry/mojo/geometry_type_converters.h" |
17 | 17 |
18 namespace mus { | 18 namespace mus { |
19 namespace ws { | 19 namespace ws { |
20 namespace test { | 20 namespace test { |
21 namespace { | 21 namespace { |
22 | 22 |
23 // ----------------------------------------------------------------------------- | 23 // ----------------------------------------------------------------------------- |
24 // Empty implementation of PlatformDisplay. | 24 // Empty implementation of PlatformDisplay. |
25 class TestPlatformDisplay : public PlatformDisplay { | 25 class TestPlatformDisplay : public PlatformDisplay { |
26 public: | 26 public: |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 return nullptr; | 493 return nullptr; |
494 if (!tree->AddWindow(parent_client_id, client_window_id)) | 494 if (!tree->AddWindow(parent_client_id, client_window_id)) |
495 return nullptr; | 495 return nullptr; |
496 *client_id = client_window_id; | 496 *client_id = client_window_id; |
497 return tree->GetWindowByClientId(client_window_id); | 497 return tree->GetWindowByClientId(client_window_id); |
498 } | 498 } |
499 | 499 |
500 } // namespace test | 500 } // namespace test |
501 } // namespace ws | 501 } // namespace ws |
502 } // namespace mus | 502 } // namespace mus |
OLD | NEW |