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

Unified Diff: ui/aura/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 | « headless/lib/browser/headless_screen.cc ('k') | ui/aura/test/test_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/test_screen.h
diff --git a/ui/aura/test/test_screen.h b/ui/aura/test/test_screen.h
index 0c03b22210e859cc7da096c5a209c9be14dea0a2..947b702c3c0594de1ac5100792fadad9764cbeec 100644
--- a/ui/aura/test/test_screen.h
+++ b/ui/aura/test/test_screen.h
@@ -9,7 +9,7 @@
#include "base/macros.h"
#include "ui/aura/window_observer.h"
#include "ui/display/display.h"
-#include "ui/display/screen.h"
+#include "ui/display/screen_base.h"
namespace gfx {
class Insets;
@@ -24,7 +24,7 @@ class WindowTreeHost;
// A minimal, testing Aura implementation of display::Screen.
// TODO(bruthig): Consider extending gfx::test::TestScreen.
-class TestScreen : public display::Screen, public WindowObserver {
+class TestScreen : public display::ScreenBase, public WindowObserver {
public:
// Creates a display::Screen of the specified size. If no size is specified,
// then creates a 800x600 screen. |size| is in physical pixels.
@@ -39,9 +39,6 @@ class TestScreen : public display::Screen, public WindowObserver {
void SetUIScale(float ui_scale);
void SetWorkAreaInsets(const gfx::Insets& insets);
- // display::Screen overrides:
- display::Display GetPrimaryDisplay() const override;
-
protected:
gfx::Transform GetRotationTransform() const;
gfx::Transform GetUIScaleTransform() const;
@@ -56,15 +53,7 @@ class TestScreen : public display::Screen, public WindowObserver {
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::Display> GetAllDisplays() const override;
display::Display GetDisplayNearestWindow(gfx::NativeView view) const override;
- display::Display GetDisplayNearestPoint(
- const gfx::Point& point) const override;
- display::Display GetDisplayMatching(
- const gfx::Rect& match_rect) const override;
- void AddObserver(display::DisplayObserver* observer) override;
- void RemoveObserver(display::DisplayObserver* observer) override;
private:
TestScreen(const gfx::Rect& screen_bounds,
@@ -72,8 +61,6 @@ class TestScreen : public display::Screen, public WindowObserver {
aura::WindowTreeHost* host_;
- display::Display display_;
-
float ui_scale_;
WindowTreeClient* window_tree_client_;
« no previous file with comments | « headless/lib/browser/headless_screen.cc ('k') | ui/aura/test/test_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698