| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 12 #include "components/mus/common/util.h" | 12 #include "components/mus/common/util.h" |
| 13 #include "components/mus/public/cpp/lib/window_private.h" | 13 #include "components/mus/public/cpp/lib/window_private.h" |
| 14 #include "components/mus/public/cpp/lib/window_tree_client_impl.h" | 14 #include "components/mus/public/cpp/lib/window_tree_client_impl.h" |
| 15 #include "components/mus/public/cpp/tests/window_server_test_base.h" | 15 #include "components/mus/public/cpp/tests/window_server_test_base.h" |
| 16 #include "components/mus/public/cpp/window_observer.h" | 16 #include "components/mus/public/cpp/window_observer.h" |
| 17 #include "components/mus/public/cpp/window_tree_connection.h" | 17 #include "components/mus/public/cpp/window_tree_connection.h" |
| 18 #include "components/mus/public/cpp/window_tree_connection_observer.h" | 18 #include "components/mus/public/cpp/window_tree_connection_observer.h" |
| 19 #include "components/mus/public/cpp/window_tree_delegate.h" | 19 #include "components/mus/public/cpp/window_tree_delegate.h" |
| 20 #include "mojo/converters/geometry/geometry_type_converters.h" | 20 #include "ui/gfx/geometry/mojo/geometry_type_converters.h" |
| 21 #include "ui/gfx/geometry/mojo/geometry_util.h" |
| 21 #include "ui/gfx/geometry/rect.h" | 22 #include "ui/gfx/geometry/rect.h" |
| 22 #include "ui/mojo/geometry/geometry_util.h" | |
| 23 | 23 |
| 24 namespace mus { | 24 namespace mus { |
| 25 namespace ws { | 25 namespace ws { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 Id server_id(mus::Window* window) { | 29 Id server_id(mus::Window* window) { |
| 30 return WindowPrivate(window).server_id(); | 30 return WindowPrivate(window).server_id(); |
| 31 } | 31 } |
| 32 | 32 |
| (...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1165 ASSERT_TRUE(window_in_wm); | 1165 ASSERT_TRUE(window_in_wm); |
| 1166 | 1166 |
| 1167 // Change the bounds in the wm, and make sure the child sees it. | 1167 // Change the bounds in the wm, and make sure the child sees it. |
| 1168 window_in_wm->SetBounds(gfx::Rect(1, 11, 12, 101)); | 1168 window_in_wm->SetBounds(gfx::Rect(1, 11, 12, 101)); |
| 1169 ASSERT_TRUE(WaitForBoundsToChange(window_in_second_connection)); | 1169 ASSERT_TRUE(WaitForBoundsToChange(window_in_second_connection)); |
| 1170 EXPECT_EQ(gfx::Rect(1, 11, 12, 101), window_in_second_connection->bounds()); | 1170 EXPECT_EQ(gfx::Rect(1, 11, 12, 101), window_in_second_connection->bounds()); |
| 1171 } | 1171 } |
| 1172 | 1172 |
| 1173 } // namespace ws | 1173 } // namespace ws |
| 1174 } // namespace mus | 1174 } // namespace mus |
| OLD | NEW |