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 "ui/views/mus/native_widget_mus.h" | 5 #include "ui/views/mus/native_widget_mus.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/mus/public/cpp/property_type_converters.h" | 9 #include "services/ui/public/cpp/property_type_converters.h" |
10 #include "components/mus/public/cpp/tests/window_tree_client_private.h" | 10 #include "services/ui/public/cpp/tests/window_tree_client_private.h" |
11 #include "components/mus/public/cpp/window.h" | 11 #include "services/ui/public/cpp/window.h" |
12 #include "components/mus/public/cpp/window_property.h" | 12 #include "services/ui/public/cpp/window_property.h" |
13 #include "components/mus/public/cpp/window_tree_client.h" | 13 #include "services/ui/public/cpp/window_tree_client.h" |
14 #include "components/mus/public/interfaces/window_manager.mojom.h" | 14 #include "services/ui/public/interfaces/window_manager.mojom.h" |
15 #include "components/mus/public/interfaces/window_tree.mojom.h" | 15 #include "services/ui/public/interfaces/window_tree.mojom.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "third_party/skia/include/core/SkBitmap.h" | 17 #include "third_party/skia/include/core/SkBitmap.h" |
18 #include "third_party/skia/include/core/SkColor.h" | 18 #include "third_party/skia/include/core/SkColor.h" |
19 #include "ui/aura/window.h" | 19 #include "ui/aura/window.h" |
20 #include "ui/events/event.h" | 20 #include "ui/events/event.h" |
21 #include "ui/events/test/test_event_handler.h" | 21 #include "ui/events/test/test_event_handler.h" |
22 #include "ui/gfx/geometry/rect.h" | 22 #include "ui/gfx/geometry/rect.h" |
23 #include "ui/gfx/image/image_skia.h" | 23 #include "ui/gfx/image/image_skia.h" |
24 #include "ui/gfx/path.h" | 24 #include "ui/gfx/path.h" |
25 #include "ui/gfx/skia_util.h" | 25 #include "ui/gfx/skia_util.h" |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 mus_window->SetBounds(end_bounds); | 515 mus_window->SetBounds(end_bounds); |
516 | 516 |
517 EXPECT_EQ(end_bounds, mus_window->bounds()); | 517 EXPECT_EQ(end_bounds, mus_window->bounds()); |
518 | 518 |
519 // Main check for this test: Setting |mus_window| bounds while bypassing | 519 // Main check for this test: Setting |mus_window| bounds while bypassing |
520 // |native_widget| must update window_tree_host bounds. | 520 // |native_widget| must update window_tree_host bounds. |
521 EXPECT_EQ(end_bounds, native_widget->window_tree_host()->GetBounds()); | 521 EXPECT_EQ(end_bounds, native_widget->window_tree_host()->GetBounds()); |
522 } | 522 } |
523 | 523 |
524 } // namespace views | 524 } // namespace views |
OLD | NEW |