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/atomicops.h" | 9 #include "base/atomicops.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "components/mus/common/types.h" | 13 #include "services/ui/common/types.h" |
14 #include "components/mus/common/util.h" | 14 #include "services/ui/common/util.h" |
15 #include "components/mus/public/interfaces/window_tree.mojom.h" | 15 #include "services/ui/public/interfaces/window_tree.mojom.h" |
16 #include "components/mus/surfaces/surfaces_state.h" | 16 #include "services/ui/surfaces/surfaces_state.h" |
17 #include "components/mus/ws/display_binding.h" | 17 #include "services/ui/ws/display_binding.h" |
18 #include "components/mus/ws/display_manager.h" | 18 #include "services/ui/ws/display_manager.h" |
19 #include "components/mus/ws/ids.h" | 19 #include "services/ui/ws/ids.h" |
20 #include "components/mus/ws/platform_display.h" | 20 #include "services/ui/ws/platform_display.h" |
21 #include "components/mus/ws/platform_display_factory.h" | 21 #include "services/ui/ws/platform_display_factory.h" |
22 #include "components/mus/ws/platform_display_init_params.h" | 22 #include "services/ui/ws/platform_display_init_params.h" |
23 #include "components/mus/ws/server_window.h" | 23 #include "services/ui/ws/server_window.h" |
24 #include "components/mus/ws/test_utils.h" | 24 #include "services/ui/ws/test_utils.h" |
25 #include "components/mus/ws/window_manager_state.h" | 25 #include "services/ui/ws/window_manager_state.h" |
26 #include "components/mus/ws/window_manager_window_tree_factory_set.h" | 26 #include "services/ui/ws/window_manager_window_tree_factory_set.h" |
27 #include "components/mus/ws/window_server.h" | 27 #include "services/ui/ws/window_server.h" |
28 #include "components/mus/ws/window_server_delegate.h" | 28 #include "services/ui/ws/window_server_delegate.h" |
29 #include "components/mus/ws/window_tree.h" | 29 #include "services/ui/ws/window_tree.h" |
30 #include "components/mus/ws/window_tree_binding.h" | 30 #include "services/ui/ws/window_tree_binding.h" |
31 #include "testing/gtest/include/gtest/gtest.h" | 31 #include "testing/gtest/include/gtest/gtest.h" |
32 #include "ui/gfx/geometry/rect.h" | 32 #include "ui/gfx/geometry/rect.h" |
33 | 33 |
34 namespace mus { | 34 namespace mus { |
35 namespace ws { | 35 namespace ws { |
36 namespace test { | 36 namespace test { |
37 namespace { | 37 namespace { |
38 | 38 |
39 class TestDisplayManagerObserver : public mojom::DisplayManagerObserver { | 39 class TestDisplayManagerObserver : public mojom::DisplayManagerObserver { |
40 public: | 40 public: |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 base::subtle::Atomic32 location = | 235 base::subtle::Atomic32 location = |
236 base::subtle::NoBarrier_Load(cursor_location_memory); | 236 base::subtle::NoBarrier_Load(cursor_location_memory); |
237 EXPECT_EQ(gfx::Point(static_cast<int16_t>(location >> 16), | 237 EXPECT_EQ(gfx::Point(static_cast<int16_t>(location >> 16), |
238 static_cast<int16_t>(location & 0xFFFF)), | 238 static_cast<int16_t>(location & 0xFFFF)), |
239 gfx::Point(-10, -11)); | 239 gfx::Point(-10, -11)); |
240 } | 240 } |
241 | 241 |
242 } // namespace test | 242 } // namespace test |
243 } // namespace ws | 243 } // namespace ws |
244 } // namespace mus | 244 } // namespace mus |
OLD | NEW |