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

Unified Diff: ash/monitor/monitor_controller.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: sync 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
« no previous file with comments | « ash/app_list/app_list_view.cc ('k') | ash/monitor/monitor_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/monitor/monitor_controller.h
diff --git a/ash/monitor/monitor_controller.h b/ash/monitor/monitor_controller.h
index bfbd5680392db63b27eb48c5c573380691dc6ca8..dabfa41ff25ff08136e20a5e34b70c0c67957ab6 100644
--- a/ash/monitor/monitor_controller.h
+++ b/ash/monitor/monitor_controller.h
@@ -11,8 +11,10 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "ui/aura/monitor_manager.h"
+#include "ui/aura/monitor_observer.h"
namespace aura {
+class Monitor;
class RootWindow;
}
@@ -27,14 +29,15 @@ class MonitorController : public aura::MonitorObserver {
virtual ~MonitorController();
// aura::MonitorObserver overrides:
- virtual void OnMonitorBoundsChanged(const aura::Monitor* monitor) OVERRIDE;
- virtual void OnMonitorAdded(aura::Monitor* monitor) OVERRIDE;
- virtual void OnMonitorRemoved(const aura::Monitor* monitor) OVERRIDE;
+ virtual void OnMonitorBoundsChanged(
+ const gfx::Monitor& monitor) OVERRIDE;
+ virtual void OnMonitorAdded(const gfx::Monitor& monitor) OVERRIDE;
+ virtual void OnMonitorRemoved(const gfx::Monitor& monitor) OVERRIDE;
private:
void Init();
- std::map<const aura::Monitor*, aura::RootWindow*> root_windows_;
+ std::map<int, aura::RootWindow*> root_windows_;
DISALLOW_COPY_AND_ASSIGN(MonitorController);
};
« no previous file with comments | « ash/app_list/app_list_view.cc ('k') | ash/monitor/monitor_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698