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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_HOST_DESKTOP_H_ 5 #ifndef CHROME_BROWSER_UI_HOST_DESKTOP_H_
6 #define CHROME_BROWSER_UI_HOST_DESKTOP_H_ 6 #define CHROME_BROWSER_UI_HOST_DESKTOP_H_
7 7
8 #include "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 9
10 class Browser; 10 class Browser;
(...skipping 25 matching lines...) Expand all
36 HostDesktopType GetHostDesktopTypeForNativeWindow( 36 HostDesktopType GetHostDesktopTypeForNativeWindow(
37 gfx::NativeWindow native_window); 37 gfx::NativeWindow native_window);
38 38
39 // Returns the type of host desktop most likely to be in use. This is the one 39 // Returns the type of host desktop most likely to be in use. This is the one
40 // most recently activated by the user. 40 // most recently activated by the user.
41 // You should almost never use this outside of tests, please refer to the 41 // You should almost never use this outside of tests, please refer to the
42 // following document for details on getting the right HostDesktopType: 42 // following document for details on getting the right HostDesktopType:
43 // http://sites.google.com/a/chromium.org/dev/developers/design-documents/aura/m ulti-desktop 43 // http://sites.google.com/a/chromium.org/dev/developers/design-documents/aura/m ulti-desktop
44 HostDesktopType GetActiveDesktop(); 44 HostDesktopType GetActiveDesktop();
45 45
46 // On Windows with Ash, checks whether Chrome is running in Metro mode and
47 // returns HOST_DESKTOP_TYPE_ASH, to ensure all browsers are created in Metro
48 // mode. Otherwise returns |desktop_type|.
49 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.
50
46 } // namespace chrome 51 } // namespace chrome
47 52
48 #endif // CHROME_BROWSER_UI_HOST_DESKTOP_H_ 53 #endif // CHROME_BROWSER_UI_HOST_DESKTOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698