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

Unified Diff: ash/mus/test/wm_test_screen.h

Issue 2314203002: Move DisplayList to display; add ScreenBase. (Closed)
Patch Set: Update unit test namespace. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/test/wm_test_helper.cc ('k') | ash/mus/test/wm_test_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/test/wm_test_screen.h
diff --git a/ash/mus/test/wm_test_screen.h b/ash/mus/test/wm_test_screen.h
index 4545804432cde15ca228e7a0671d05aed92744cc..dd28b3a06c99a05b8d3675ef6f464929e9ee830a 100644
--- a/ash/mus/test/wm_test_screen.h
+++ b/ash/mus/test/wm_test_screen.h
@@ -5,39 +5,22 @@
#ifndef ASH_MUS_TEST_WM_TEST_SCREEN_H_
#define ASH_MUS_TEST_WM_TEST_SCREEN_H_
-#include "ui/display/screen.h"
-#include "ui/views/mus/display_list.h"
+#include "ui/display/screen_base.h"
namespace ash {
namespace mus {
// Screen implementation used by tests for the windowmanager. Does not talk
// to mus. Tests must keep the list of Displays in sync manually.
-class WmTestScreen : public display::Screen {
+class WmTestScreen : public display::ScreenBase {
public:
WmTestScreen();
~WmTestScreen() override;
- const views::DisplayList& display_list() const { return display_list_; }
- views::DisplayList* display_list() { return &display_list_; }
-
private:
- // display::Screen:
+ // display::ScreenBase:
gfx::Point GetCursorScreenPoint() override;
bool IsWindowUnderCursor(gfx::NativeWindow window) override;
- gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
- display::Display GetPrimaryDisplay() const override;
- display::Display GetDisplayNearestWindow(gfx::NativeView view) const override;
- display::Display GetDisplayNearestPoint(
- const gfx::Point& point) const override;
- int GetNumDisplays() const override;
- std::vector<display::Display> GetAllDisplays() const override;
- display::Display GetDisplayMatching(
- const gfx::Rect& match_rect) const override;
- void AddObserver(display::DisplayObserver* observer) override;
- void RemoveObserver(display::DisplayObserver* observer) override;
-
- views::DisplayList display_list_;
DISALLOW_COPY_AND_ASSIGN(WmTestScreen);
};
« no previous file with comments | « ash/mus/test/wm_test_helper.cc ('k') | ash/mus/test/wm_test_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698