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

Unified Diff: ui/aura/test/single_monitor_manager.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: ui/aura/test/single_monitor_manager.h
diff --git a/ui/aura/test/single_monitor_manager.h b/ui/aura/test/single_monitor_manager.h
index 58b65ef0c8b5be544730c228b4c075cc062b33f4..277cc76bc7660e1fa774f5515d922f5967e9b6b0 100644
--- a/ui/aura/test/single_monitor_manager.h
+++ b/ui/aura/test/single_monitor_manager.h
@@ -12,10 +12,13 @@
#include "ui/aura/window_observer.h"
namespace gfx {
+class Monitor;
class Rect;
}
namespace aura {
+class MonitorAura;
+
namespace test {
// A monitor manager assuming there is one monitor.
@@ -27,16 +30,18 @@ class SingleMonitorManager : public MonitorManager,
// MonitorManager overrides:
virtual void OnNativeMonitorsChanged(
- const std::vector<const Monitor*>& monitors) OVERRIDE;
+ const std::vector<const MonitorAura*>& monitors) OVERRIDE;
virtual RootWindow* CreateRootWindowForMonitor(
- Monitor* monitor) OVERRIDE;
- virtual const Monitor* GetMonitorNearestWindow(
+ MonitorAura* monitor) OVERRIDE;
+ virtual MonitorAura* GetMonitorAt(size_t index) OVERRIDE;
+
+ virtual size_t GetNumMonitors() const OVERRIDE;
+
+ virtual const MonitorAura* GetMonitorNearestWindow(
const Window* window) const OVERRIDE;
- virtual const Monitor* GetMonitorNearestPoint(
+ virtual MonitorAura* GetMonitorNearestWindow(const Window* window) OVERRIDE;
+ virtual const MonitorAura* GetMonitorNearestPoint(
const gfx::Point& point) const OVERRIDE;
- virtual Monitor* GetMonitorAt(size_t index) OVERRIDE;
- virtual size_t GetNumMonitors() const OVERRIDE;
- virtual Monitor* GetMonitorNearestWindow(const Window* window) OVERRIDE;
// WindowObserver overrides:
virtual void OnWindowBoundsChanged(Window* window,
@@ -48,7 +53,7 @@ class SingleMonitorManager : public MonitorManager,
void Update(const gfx::Size size);
RootWindow* root_window_;
- scoped_ptr<Monitor> monitor_;
+ scoped_ptr<MonitorAura> monitor_;
DISALLOW_COPY_AND_ASSIGN(SingleMonitorManager);
};

Powered by Google App Engine
This is Rietveld 408576698