| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/public/cpp/window.h" | 5 #include "services/ui/public/cpp/window.h" |
| 6 | 6 |
| 7 #include <limits.h> | 7 #include <limits.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 14 #include "components/mus/common/util.h" | 14 #include "services/ui/common/util.h" |
| 15 #include "components/mus/public/cpp/lib/window_private.h" | 15 #include "services/ui/public/cpp/lib/window_private.h" |
| 16 #include "components/mus/public/cpp/property_type_converters.h" | 16 #include "services/ui/public/cpp/property_type_converters.h" |
| 17 #include "components/mus/public/cpp/tests/test_window.h" | 17 #include "services/ui/public/cpp/tests/test_window.h" |
| 18 #include "components/mus/public/cpp/window_observer.h" | 18 #include "services/ui/public/cpp/window_observer.h" |
| 19 #include "components/mus/public/cpp/window_property.h" | 19 #include "services/ui/public/cpp/window_property.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #include "ui/gfx/geometry/rect.h" | 21 #include "ui/gfx/geometry/rect.h" |
| 22 | 22 |
| 23 namespace mus { | 23 namespace mus { |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 TestWindow* CreateTestWindow(TestWindow* parent) { | 27 TestWindow* CreateTestWindow(TestWindow* parent) { |
| 28 TestWindow* window = new TestWindow; | 28 TestWindow* window = new TestWindow; |
| 29 if (parent) | 29 if (parent) |
| (...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1192 std::unique_ptr<TestWindow> window0(CreateTestWindow(1, parent.get())); | 1192 std::unique_ptr<TestWindow> window0(CreateTestWindow(1, parent.get())); |
| 1193 std::unique_ptr<TestWindow> window1(CreateTestWindow(2, parent.get())); | 1193 std::unique_ptr<TestWindow> window1(CreateTestWindow(2, parent.get())); |
| 1194 | 1194 |
| 1195 TestWindow* window2 = CreateTestWindow(3, parent.get()); | 1195 TestWindow* window2 = CreateTestWindow(3, parent.get()); |
| 1196 | 1196 |
| 1197 window0->AddTransientWindow(window2); | 1197 window0->AddTransientWindow(window2); |
| 1198 EXPECT_EQ("1 3 2", ChildWindowIDsAsString(parent.get())); | 1198 EXPECT_EQ("1 3 2", ChildWindowIDsAsString(parent.get())); |
| 1199 } | 1199 } |
| 1200 | 1200 |
| 1201 } // namespace mus | 1201 } // namespace mus |
| OLD | NEW |