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

Unified Diff: ash/monitor/multi_monitor_manager.h

Issue 10540091: Rename gfx::Monitor to gfx::Display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/monitor/multi_monitor_manager.h
diff --git a/ash/monitor/multi_monitor_manager.h b/ash/monitor/multi_monitor_manager.h
index 3d81752abb04b60d5f33551a0290119a29da46aa..381bba84ca87653ac23ba3f9e1794fa5bddf7997 100644
--- a/ash/monitor/multi_monitor_manager.h
+++ b/ash/monitor/multi_monitor_manager.h
@@ -16,7 +16,7 @@
namespace gfx {
class Insets;
-class Monitor;
+class Display;
}
namespace ash {
@@ -45,15 +45,15 @@ class ASH_EXPORT MultiMonitorManager : public aura::MonitorManager,
// MonitorManager overrides:
virtual void OnNativeMonitorsChanged(
- const std::vector<gfx::Monitor>& monitors) OVERRIDE;
+ const std::vector<gfx::Display>& displays) OVERRIDE;
virtual aura::RootWindow* CreateRootWindowForMonitor(
- const gfx::Monitor& monitor) OVERRIDE;
- virtual const gfx::Monitor& GetMonitorAt(size_t index) OVERRIDE;
+ const gfx::Display& display) OVERRIDE;
+ virtual const gfx::Display& GetMonitorAt(size_t index) OVERRIDE;
virtual size_t GetNumMonitors() const OVERRIDE;
- virtual const gfx::Monitor& GetMonitorNearestPoint(
+ virtual const gfx::Display& GetMonitorNearestPoint(
const gfx::Point& point) const OVERRIDE;
- virtual const gfx::Monitor& GetMonitorNearestWindow(
+ virtual const gfx::Display& GetMonitorNearestWindow(
const aura::Window* window) const OVERRIDE;
// RootWindowObserver overrides:
@@ -61,15 +61,15 @@ class ASH_EXPORT MultiMonitorManager : public aura::MonitorManager,
const gfx::Size& new_size) OVERRIDE;
private:
- typedef std::vector<gfx::Monitor> Monitors;
+ typedef std::vector<gfx::Display> Displays;
void Init();
void AddRemoveMonitorImpl();
void CycleMonitorImpl();
void ScaleMonitorImpl();
- gfx::Monitor& FindMonitorById(int id);
+ gfx::Display& FindDisplayById(int id);
- Monitors monitors_;
+ Displays displays_;
DISALLOW_COPY_AND_ASSIGN(MultiMonitorManager);
};

Powered by Google App Engine
This is Rietveld 408576698