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

Unified Diff: ash/screen_ash.cc

Issue 9701098: MultiMonitor support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix Created 8 years, 9 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/monitor/secondary_monitor_view.cc ('k') | ash/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/screen_ash.cc
diff --git a/ash/screen_ash.cc b/ash/screen_ash.cc
index c884a150ff9ef1b100e004c2ff9c92adea954bbf..f512ff6dbacf066545e3fd6f8885b3347ff5549e 100644
--- a/ash/screen_ash.cc
+++ b/ash/screen_ash.cc
@@ -17,7 +17,7 @@ namespace ash {
// real multi monitor support is implemented.
namespace {
-const aura::MonitorManager* GetMonitorManager() {
+aura::MonitorManager* GetMonitorManager() {
return aura::Env::GetInstance()->monitor_manager();
}
} // namespace
@@ -63,7 +63,7 @@ gfx::NativeWindow ScreenAsh::GetWindowAtCursorScreenPointImpl() {
}
gfx::Size ScreenAsh::GetPrimaryMonitorSizeImpl() {
- return GetMonitorManager()->GetPrimaryMonitor()->size();
+ return GetMonitorManager()->GetMonitorAt(0)->size();
}
int ScreenAsh::GetNumMonitorsImpl() {
« no previous file with comments | « ash/monitor/secondary_monitor_view.cc ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698