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

Unified Diff: ash/display/display_controller.cc

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tidy Created 8 years, 2 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 | « no previous file | ash/display/mouse_cursor_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_controller.cc
diff --git a/ash/display/display_controller.cc b/ash/display/display_controller.cc
index b7361c375631f5872f888d4edf2034aad5febb37..dccc2263981c8fc0d489c9e75982714df84de96f 100644
--- a/ash/display/display_controller.cc
+++ b/ash/display/display_controller.cc
@@ -469,10 +469,10 @@ aura::RootWindow* DisplayController::AddRootWindowForDisplay(
}
void DisplayController::UpdateDisplayBoundsForLayout() {
- if (gfx::Screen::GetNumDisplays() <= 1)
+ if (gfx::Screen::GetNumDisplays(ash::Shell::GetRootNativeView()) <= 1)
Ben Goodger (Google) 2012/10/04 15:38:37 is it acceptable to use the active root window in
return;
- DCHECK_EQ(2, gfx::Screen::GetNumDisplays());
+ DCHECK_EQ(2, gfx::Screen::GetNumDisplays(ash::Shell::GetRootNativeView()));
const gfx::Rect& primary_bounds = GetPrimaryDisplay().bounds();
gfx::Display* secondary_display = GetSecondaryDisplay();
« no previous file with comments | « no previous file | ash/display/mouse_cursor_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698