Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: components/mus/ws/user_display_manager_unittest.cc

Issue 1881253002: mus: Implement ScreenMus::GetCursorScreenPoint(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: And fix chromeos. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "components/mus/common/types.h" 12 #include "components/mus/common/types.h"
13 #include "components/mus/common/util.h" 13 #include "components/mus/common/util.h"
14 #include "components/mus/public/interfaces/window_tree.mojom.h" 14 #include "components/mus/public/interfaces/window_tree.mojom.h"
15 #include "components/mus/surfaces/surfaces_state.h" 15 #include "components/mus/surfaces/surfaces_state.h"
16 #include "components/mus/ws/display_binding.h" 16 #include "components/mus/ws/display_binding.h"
17 #include "components/mus/ws/display_manager.h" 17 #include "components/mus/ws/display_manager.h"
18 #include "components/mus/ws/ids.h" 18 #include "components/mus/ws/ids.h"
19 #include "components/mus/ws/platform_display.h" 19 #include "components/mus/ws/platform_display.h"
20 #include "components/mus/ws/platform_display_factory.h" 20 #include "components/mus/ws/platform_display_factory.h"
21 #include "components/mus/ws/platform_display_init_params.h" 21 #include "components/mus/ws/platform_display_init_params.h"
22 #include "components/mus/ws/server_window.h" 22 #include "components/mus/ws/server_window.h"
23 #include "components/mus/ws/test_utils.h" 23 #include "components/mus/ws/test_utils.h"
24 #include "components/mus/ws/window_manager_state.h" 24 #include "components/mus/ws/window_manager_state.h"
25 #include "components/mus/ws/window_server.h" 25 #include "components/mus/ws/window_server.h"
26 #include "components/mus/ws/window_server_delegate.h" 26 #include "components/mus/ws/window_server_delegate.h"
27 #include "components/mus/ws/window_tree.h" 27 #include "components/mus/ws/window_tree.h"
28 #include "components/mus/ws/window_tree_binding.h" 28 #include "components/mus/ws/window_tree_binding.h"
29 #include "mojo/converters/geometry/geometry_type_converters.h"
29 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/include/gtest/gtest.h"
30 #include "ui/gfx/geometry/rect.h" 31 #include "ui/gfx/geometry/rect.h"
31 32
32 namespace mus { 33 namespace mus {
33 namespace ws { 34 namespace ws {
34 namespace test { 35 namespace test {
35 namespace { 36 namespace {
36 37
37 class TestWindowManagerFactory : public mojom::WindowManagerFactory { 38 class TestWindowManagerFactory : public mojom::WindowManagerFactory {
38 public: 39 public:
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 display2 = nullptr; 224 display2 = nullptr;
224 EXPECT_EQ("OnDisplayRemoved 2", 225 EXPECT_EQ("OnDisplayRemoved 2",
225 display_manager_observer1.GetAndClearObserverCalls()); 226 display_manager_observer1.GetAndClearObserverCalls());
226 227
227 UserDisplayManagerTestApi(user_display_manager1).SetTestObserver(nullptr); 228 UserDisplayManagerTestApi(user_display_manager1).SetTestObserver(nullptr);
228 } 229 }
229 230
230 } // namespace test 231 } // namespace test
231 } // namespace ws 232 } // namespace ws
232 } // namespace mus 233 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698