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

Unified Diff: chrome/browser/ui/ash/ash_util.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 other os's 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
Index: chrome/browser/ui/ash/ash_util.cc
diff --git a/chrome/browser/ui/ash/ash_util.cc b/chrome/browser/ui/ash/ash_util.cc
index 488cc4c3f8cef178575b9d5369410285ff35d061..b99be69ee80ff39cd2f2d21d3bed2ed736c6a296 100644
--- a/chrome/browser/ui/ash/ash_util.cc
+++ b/chrome/browser/ui/ash/ash_util.cc
@@ -7,6 +7,7 @@
#include "ash/shell.h"
#include "chrome/browser/ui/ash/ash_init.h"
#include "ui/aura/root_window.h"
+#include "ui/gfx/screen.h"
namespace chrome {
@@ -36,10 +37,12 @@ bool IsNativeWindowInAsh(gfx::NativeWindow native_window) {
}
void ToggleAshDesktop() {
+ gfx::Screen::ForceScreenTypeOverride(gfx::SCREEN_TYPE_ALTERNATE);
if (!ash::Shell::HasInstance())
OpenAsh();
else
CloseAsh();
+ gfx::Screen::ForceScreenTypeOverride(gfx::SCREEN_TYPE_COUNT);
}
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698