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

Unified Diff: ui/display/test/test_screen.h

Issue 2431473002: Change single-display screens to use ScreenBase and DisplayList. (Closed)
Patch Set: renderer test Created 4 years, 1 month 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 | « ui/display/screen_base.cc ('k') | ui/display/test/test_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/test/test_screen.h
diff --git a/ui/display/test/test_screen.h b/ui/display/test/test_screen.h
index fb822f5d8dcd67e11426add22056ad13f72583b6..ffde93753c79c6cdbcb2dc9c7f72ac7817382aac 100644
--- a/ui/display/test/test_screen.h
+++ b/ui/display/test/test_screen.h
@@ -9,7 +9,7 @@
#include "base/macros.h"
#include "ui/display/display.h"
-#include "ui/display/screen.h"
+#include "ui/display/screen_base.h"
namespace display {
namespace test {
@@ -20,30 +20,18 @@ namespace test {
//
// NOTE: Adding and removing display::DisplayOberver's are no-ops and observers
// will NOT be notified ever.
-class TestScreen : public Screen {
+class TestScreen : public ScreenBase {
public:
TestScreen();
~TestScreen() override;
- Display* display() { return &display_; }
-
// display::Screen:
gfx::Point GetCursorScreenPoint() override;
bool IsWindowUnderCursor(gfx::NativeWindow window) override;
gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
- int GetNumDisplays() const override;
- std::vector<Display> GetAllDisplays() const override;
Display GetDisplayNearestWindow(gfx::NativeView view) const override;
- Display GetDisplayNearestPoint(const gfx::Point& point) const override;
- Display GetDisplayMatching(const gfx::Rect& match_rect) const override;
- Display GetPrimaryDisplay() const override;
- void AddObserver(DisplayObserver* observer) override;
- void RemoveObserver(DisplayObserver* observer) override;
private:
- // The only display.
- Display display_;
-
DISALLOW_COPY_AND_ASSIGN(TestScreen);
};
« no previous file with comments | « ui/display/screen_base.cc ('k') | ui/display/test/test_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698