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

Unified Diff: chrome/browser/ui/browser_window.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: Move from browser_commands to BrowserWindow 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
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/browser_window_factory.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_window.h
diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h
index f9c66db0575346fc5a102fda36ff681163dd0117..efd519ab56d1e3aea8909d0ffb380e7bc270541f 100644
--- a/chrome/browser/ui/browser_window.h
+++ b/chrome/browser/ui/browser_window.h
@@ -348,6 +348,12 @@ class BrowserWindow : public ui::BaseWindow {
// Construct a BrowserWindow implementation for the specified |browser|.
static BrowserWindow* CreateBrowserWindow(Browser* browser);
+ // Returns a HostDesktopType that is compatible with the current Chrome window
+ // configuration. On Windows with Ash, this is always HOST_DESKTOP_TYPE_ASH
+ // while Chrome is running in Metro mode. Otherwise returns |desktop_type|.
+ static chrome::HostDesktopType AdjustHostDesktopType(
+ chrome::HostDesktopType desktop_type);
+
// Shows the avatar bubble inside |web_contents|. The bubble is positioned
// relative to |rect|. |rect| should be in the |web_contents| coordinate
// system.
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/browser_window_factory.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698