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

Side by Side Diff: services/ui/ws/window_manager_state_unittest.cc

Issue 2736943003: Start to decouple display::Display from ws::PlatformDisplay. (Closed)
Patch Set: Fix comments. Created 3 years, 9 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
« no previous file with comments | « services/ui/ws/window_manager_state.cc ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "services/ui/ws/window_manager_state.h" 5 #include "services/ui/ws/window_manager_state.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/test/test_simple_task_runner.h" 12 #include "base/test/test_simple_task_runner.h"
13 #include "base/threading/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "services/service_manager/public/interfaces/connector.mojom.h" 14 #include "services/service_manager/public/interfaces/connector.mojom.h"
15 #include "services/ui/common/accelerator_util.h" 15 #include "services/ui/common/accelerator_util.h"
16 #include "services/ui/ws/accelerator.h" 16 #include "services/ui/ws/accelerator.h"
17 #include "services/ui/ws/display.h" 17 #include "services/ui/ws/display.h"
18 #include "services/ui/ws/display_manager.h" 18 #include "services/ui/ws/display_manager.h"
19 #include "services/ui/ws/platform_display.h" 19 #include "services/ui/ws/platform_display.h"
20 #include "services/ui/ws/platform_display_init_params.h"
21 #include "services/ui/ws/test_change_tracker.h" 20 #include "services/ui/ws/test_change_tracker.h"
22 #include "services/ui/ws/test_server_window_delegate.h" 21 #include "services/ui/ws/test_server_window_delegate.h"
23 #include "services/ui/ws/test_utils.h" 22 #include "services/ui/ws/test_utils.h"
24 #include "services/ui/ws/window_manager_access_policy.h" 23 #include "services/ui/ws/window_manager_access_policy.h"
25 #include "services/ui/ws/window_manager_display_root.h" 24 #include "services/ui/ws/window_manager_display_root.h"
26 #include "services/ui/ws/window_manager_state.h" 25 #include "services/ui/ws/window_manager_state.h"
27 #include "services/ui/ws/window_server.h" 26 #include "services/ui/ws/window_server.h"
28 #include "services/ui/ws/window_tree.h" 27 #include "services/ui/ws/window_tree.h"
29 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
30 #include "ui/events/event.h" 29 #include "ui/events/event.h"
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 base::TimeTicks()); 583 base::TimeTicks());
585 window_manager_state()->ProcessEvent(move, 0); 584 window_manager_state()->ProcessEvent(move, 0);
586 // The event isn't over a valid target, which should trigger resetting the 585 // The event isn't over a valid target, which should trigger resetting the
587 // cursor to POINTER. 586 // cursor to POINTER.
588 EXPECT_EQ(ui::mojom::Cursor::POINTER, display_test_api.last_cursor()); 587 EXPECT_EQ(ui::mojom::Cursor::POINTER, display_test_api.last_cursor());
589 } 588 }
590 589
591 } // namespace test 590 } // namespace test
592 } // namespace ws 591 } // namespace ws
593 } // namespace ui 592 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/window_manager_state.cc ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698