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

Unified Diff: ash/screen_ash.h

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix command line Created 8 years, 8 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
Index: ash/screen_ash.h
diff --git a/ash/screen_ash.h b/ash/screen_ash.h
index ea2021f68519babe2aefb5820ec91804b26b41e2..33e6fc95d65e3644682a6a40eecac109fb83ab0b 100644
--- a/ash/screen_ash.h
+++ b/ash/screen_ash.h
@@ -19,7 +19,7 @@ namespace ash {
// Aura implementation of gfx::Screen. Implemented here to avoid circular
// dependencies.
-class ASH_EXPORT ScreenAsh : public gfx::Screen {
+class ASH_EXPORT ScreenAsh : public gfx::ScreenImpl {
public:
explicit ScreenAsh(aura::RootWindow* root_window);
virtual ~ScreenAsh();
@@ -32,18 +32,18 @@ class ASH_EXPORT ScreenAsh : public gfx::Screen {
static gfx::Rect GetUnmaximizedWorkAreaBounds(aura::Window* window);
protected:
- virtual gfx::Point GetCursorScreenPointImpl() OVERRIDE;
- virtual gfx::Rect GetMonitorWorkAreaNearestWindowImpl(
- gfx::NativeView view) OVERRIDE;
- virtual gfx::Rect GetMonitorAreaNearestWindowImpl(
+ virtual gfx::Point GetCursorScreenPoint() OVERRIDE;
+ virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE;
+
+ virtual int GetNumMonitors() OVERRIDE;
+ virtual const gfx::Monitor* GetMonitorNearestWindow(
gfx::NativeView view) OVERRIDE;
- virtual gfx::Rect GetMonitorWorkAreaNearestPointImpl(
+ virtual const gfx::Monitor* GetMonitorNearestPoint(
const gfx::Point& point) OVERRIDE;
- virtual gfx::Rect GetMonitorAreaNearestPointImpl(
- const gfx::Point& point) OVERRIDE;
- virtual gfx::NativeWindow GetWindowAtCursorScreenPointImpl() OVERRIDE;
- virtual gfx::Size GetPrimaryMonitorSizeImpl() OVERRIDE;
- virtual int GetNumMonitorsImpl() OVERRIDE;
+ virtual const gfx::Monitor* GetPrimaryMonitor() OVERRIDE;
+
+ virtual void AddMonitorObserver(gfx::MonitorObserver* observer) OVERRIDE;
+ virtual void RemoveMonitorObserver(gfx::MonitorObserver* observer) OVERRIDE;
private:
aura::RootWindow* root_window_;

Powered by Google App Engine
This is Rietveld 408576698