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

Unified Diff: chrome/browser/ui/host_desktop.h

Issue 58853004: [win8] Force browsers created with Chrome in Metro mode to be on the Ash desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bots do not seem to care, but try not to break non-CrOS Ash on Linux. Also fix typo. Created 7 years, 1 month 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/host_desktop.h
diff --git a/chrome/browser/ui/host_desktop.h b/chrome/browser/ui/host_desktop.h
index 972845445076329460257baf90866b80ac733df0..8bd675ffeeb3860c8c2515c5f8a0a720dfe750ba 100644
--- a/chrome/browser/ui/host_desktop.h
+++ b/chrome/browser/ui/host_desktop.h
@@ -43,6 +43,11 @@ HostDesktopType GetHostDesktopTypeForNativeWindow(
// http://sites.google.com/a/chromium.org/dev/developers/design-documents/aura/multi-desktop
HostDesktopType GetActiveDesktop();
+// On Windows with Ash, checks whether Chrome is running in Metro mode and
+// returns HOST_DESKTOP_TYPE_ASH, to ensure all browsers are created in Metro
+// mode. Otherwise returns |desktop_type|.
+HostDesktopType GetVerifiedHostDesktopForBrowser(HostDesktopType desktop_type);
sky 2013/11/14 15:28:42 This doesn't feel like the right place for this co
tapted 2013/11/15 00:11:51 I'll try it out in browser_commands.h . (I origina
tapted 2013/11/15 12:47:11 Done.
+
} // namespace chrome
#endif // CHROME_BROWSER_UI_HOST_DESKTOP_H_

Powered by Google App Engine
This is Rietveld 408576698