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 "ui/aura/mus/window_tree_client.h" | 5 #include "ui/aura/mus/window_tree_client.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ptr_util.h" |
12 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
13 #include "mojo/common/common_type_converters.h" | 14 #include "mojo/common/common_type_converters.h" |
14 #include "services/ui/public/cpp/property_type_converters.h" | 15 #include "services/ui/public/cpp/property_type_converters.h" |
15 #include "services/ui/public/interfaces/window_manager.mojom.h" | 16 #include "services/ui/public/interfaces/window_manager.mojom.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "ui/aura/client/aura_constants.h" | 18 #include "ui/aura/client/aura_constants.h" |
18 #include "ui/aura/client/capture_client.h" | 19 #include "ui/aura/client/capture_client.h" |
19 #include "ui/aura/client/capture_client_observer.h" | 20 #include "ui/aura/client/capture_client_observer.h" |
20 #include "ui/aura/client/focus_client.h" | 21 #include "ui/aura/client/focus_client.h" |
21 #include "ui/aura/client/transient_window_client.h" | 22 #include "ui/aura/client/transient_window_client.h" |
(...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1457 window_tree_client()->OnTopLevelCreated(change_id, std::move(data), | 1458 window_tree_client()->OnTopLevelCreated(change_id, std::move(data), |
1458 display_id, true); | 1459 display_id, true); |
1459 | 1460 |
1460 // aura::Window should operate in DIP and aura::WindowTreeHost should operate | 1461 // aura::Window should operate in DIP and aura::WindowTreeHost should operate |
1461 // in pixels. | 1462 // in pixels. |
1462 EXPECT_EQ(gfx::Rect(0, 0, 3, 4), top_level->bounds()); | 1463 EXPECT_EQ(gfx::Rect(0, 0, 3, 4), top_level->bounds()); |
1463 EXPECT_EQ(gfx::Rect(2, 4, 6, 8), top_level->GetHost()->GetBoundsInPixels()); | 1464 EXPECT_EQ(gfx::Rect(2, 4, 6, 8), top_level->GetHost()->GetBoundsInPixels()); |
1464 } | 1465 } |
1465 | 1466 |
1466 } // namespace aura | 1467 } // namespace aura |
OLD | NEW |