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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "components/mus/common/types.h" | 11 #include "services/ui/common/types.h" |
12 #include "components/mus/common/util.h" | 12 #include "services/ui/common/util.h" |
13 #include "components/mus/public/interfaces/window_tree.mojom.h" | 13 #include "services/ui/public/interfaces/window_tree.mojom.h" |
14 #include "components/mus/surfaces/surfaces_state.h" | 14 #include "services/ui/surfaces/surfaces_state.h" |
15 #include "components/mus/ws/display_manager.h" | 15 #include "services/ui/ws/display_manager.h" |
16 #include "components/mus/ws/ids.h" | 16 #include "services/ui/ws/ids.h" |
17 #include "components/mus/ws/platform_display.h" | 17 #include "services/ui/ws/platform_display.h" |
18 #include "components/mus/ws/platform_display_factory.h" | 18 #include "services/ui/ws/platform_display_factory.h" |
19 #include "components/mus/ws/server_window.h" | 19 #include "services/ui/ws/server_window.h" |
20 #include "components/mus/ws/server_window_surface_manager_test_api.h" | 20 #include "services/ui/ws/server_window_surface_manager_test_api.h" |
21 #include "components/mus/ws/test_utils.h" | 21 #include "services/ui/ws/test_utils.h" |
22 #include "components/mus/ws/window_manager_display_root.h" | 22 #include "services/ui/ws/window_manager_display_root.h" |
23 #include "components/mus/ws/window_manager_state.h" | 23 #include "services/ui/ws/window_manager_state.h" |
24 #include "components/mus/ws/window_server.h" | 24 #include "services/ui/ws/window_server.h" |
25 #include "components/mus/ws/window_server_delegate.h" | 25 #include "services/ui/ws/window_server_delegate.h" |
26 #include "components/mus/ws/window_tree.h" | 26 #include "services/ui/ws/window_tree.h" |
27 #include "components/mus/ws/window_tree_binding.h" | 27 #include "services/ui/ws/window_tree_binding.h" |
28 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "testing/gtest/include/gtest/gtest.h" |
29 #include "ui/events/event.h" | 29 #include "ui/events/event.h" |
30 #include "ui/gfx/geometry/rect.h" | 30 #include "ui/gfx/geometry/rect.h" |
31 | 31 |
32 namespace mus { | 32 namespace mus { |
33 namespace ws { | 33 namespace ws { |
34 namespace test { | 34 namespace test { |
35 | 35 |
36 const UserId kTestId1 = "20"; | 36 const UserId kTestId1 = "20"; |
37 | 37 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 MoveCursorTo(gfx::Point(15, 15)); | 189 MoveCursorTo(gfx::Point(15, 15)); |
190 EXPECT_EQ(mojom::Cursor::EAST_RESIZE, mojom::Cursor(cursor_id_)); | 190 EXPECT_EQ(mojom::Cursor::EAST_RESIZE, mojom::Cursor(cursor_id_)); |
191 | 191 |
192 win->SetBounds(gfx::Rect(0, 0, 30, 30)); | 192 win->SetBounds(gfx::Rect(0, 0, 30, 30)); |
193 EXPECT_EQ(mojom::Cursor::IBEAM, mojom::Cursor(cursor_id_)); | 193 EXPECT_EQ(mojom::Cursor::IBEAM, mojom::Cursor(cursor_id_)); |
194 } | 194 } |
195 | 195 |
196 } // namespace test | 196 } // namespace test |
197 } // namespace ws | 197 } // namespace ws |
198 } // namespace mus | 198 } // namespace mus |
OLD | NEW |