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

Side by Side Diff: mash/wm/test/wm_test_screen.h

Issue 2029883002: Moves mash/wm into ash/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_static_assert
Patch Set: move comment Created 4 years, 6 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 | « mash/wm/test/wm_test_helper.cc ('k') | mash/wm/test/wm_test_screen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MASH_WM_WM_TEST_SCREEN_H_
6 #define MASH_WM_WM_TEST_SCREEN_H_
7
8 #include "ui/display/screen.h"
9 #include "ui/views/mus/display_list.h"
10
11 namespace mash {
12 namespace wm {
13
14 // Screen implementation used by tests for the windowmanager. Does not talk
15 // to mus. Tests must keep the list of Displays in sync manually.
16 class WmTestScreen : public display::Screen {
17 public:
18 WmTestScreen();
19 ~WmTestScreen() override;
20
21 const views::DisplayList& display_list() const { return display_list_; }
22 views::DisplayList* display_list() { return &display_list_; }
23
24 private:
25 // display::Screen:
26 gfx::Point GetCursorScreenPoint() override;
27 bool IsWindowUnderCursor(gfx::NativeWindow window) override;
28 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
29 display::Display GetPrimaryDisplay() const override;
30 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override;
31 display::Display GetDisplayNearestPoint(
32 const gfx::Point& point) const override;
33 int GetNumDisplays() const override;
34 std::vector<display::Display> GetAllDisplays() const override;
35 display::Display GetDisplayMatching(
36 const gfx::Rect& match_rect) const override;
37 void AddObserver(display::DisplayObserver* observer) override;
38 void RemoveObserver(display::DisplayObserver* observer) override;
39
40 views::DisplayList display_list_;
41
42 DISALLOW_COPY_AND_ASSIGN(WmTestScreen);
43 };
44
45 } // namespace wm
46 } // namespace mash
47
48 #endif // MASH_WM_WM_TEST_SCREEN_H_
OLDNEW
« no previous file with comments | « mash/wm/test/wm_test_helper.cc ('k') | mash/wm/test/wm_test_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698