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

Unified Diff: ash/accelerators/accelerator_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: fix some new gfx::Screen additions 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/dip_unittest.cc » ('j') | ash/keyboard_overlay/keyboard_overlay_delegate.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller.cc
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
index bc742c74cb6f419442a9cbb330a5129f90865cf4..91ceb7e7c2529d55c09e7afae12b522146e8bc5c 100644
--- a/ash/accelerators/accelerator_controller.cc
+++ b/ash/accelerators/accelerator_controller.cc
@@ -123,7 +123,7 @@ void HandleCycleDisplayMode() {
}
void HandleSwapPrimaryDisplay() {
- if (gfx::Screen::GetNumDisplays() > 1) {
+ if (Shell::GetAshScreen()->GetNumDisplays() > 1) {
Shell::GetInstance()->display_controller()->SetPrimaryDisplay(
ScreenAsh::GetSecondaryDisplay());
}
« no previous file with comments | « no previous file | ash/dip_unittest.cc » ('j') | ash/keyboard_overlay/keyboard_overlay_delegate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698