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

Side by Side Diff: chrome/browser/ui/host_desktop.h

Issue 10855183: Give access to browsers by Profile/HostDesktopType. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now Ash and Native desktop types are the same on ChromeOS Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser_finder.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 namespace chrome { 8 namespace chrome {
9 9
10 // A value that specifies what desktop environment hosts a particular piece of 10 // A value that specifies what desktop environment hosts a particular piece of
11 // UI. 11 // UI.
12 // Note that HOST_DESKTOP_TYPE_ASH is always used on ChromeOS. 12 // Note that HOST_DESKTOP_TYPE_ASH is always used on ChromeOS.
13 enum HostDesktopType { 13 enum HostDesktopType {
14 // The UI is hosted on the system native desktop. 14 // The UI is hosted on the system native desktop.
15 HOST_DESKTOP_TYPE_NATIVE = 0, 15 HOST_DESKTOP_TYPE_NATIVE = 0,
16 16
17 // The UI is hosted in the synthetic Ash desktop. 17 // The UI is hosted in the synthetic Ash desktop.
18 #if defined(OS_CHROMEOS)
19 HOST_DESKTOP_TYPE_ASH = HOST_DESKTOP_TYPE_NATIVE,
20 #else
18 HOST_DESKTOP_TYPE_ASH, 21 HOST_DESKTOP_TYPE_ASH,
22 #endif
19 23
20 HOST_DESKTOP_TYPE_COUNT 24 HOST_DESKTOP_TYPE_COUNT
21 }; 25 };
22 26
23 /* 27 /*
24 TODO(beng): implement utilities as needed, e.g.: 28 TODO(beng): implement utilities as needed, e.g.:
25 HostDesktopType GetActiveDesktop(); 29 HostDesktopType GetActiveDesktop();
26 HostDesktopType GetHostDesktopTypeForNativeView(gfx::NativeView native_view); 30 HostDesktopType GetHostDesktopTypeForNativeView(gfx::NativeView native_view);
27 HostDesktopType GetHostDesktopTypeForNativeWindow( 31 HostDesktopType GetHostDesktopTypeForNativeWindow(
28 gfx::NativeWindow native_window); 32 gfx::NativeWindow native_window);
29 HostDesktopType GetHostDesktopTypeForBrowser(Browser* browser); 33 HostDesktopType GetHostDesktopTypeForBrowser(Browser* browser);
30 */ 34 */
31 35
32 } // namespace chrome 36 } // namespace chrome
33 37
34 #endif // CHROME_BROWSER_UI_HOST_DESKTOP_H_ 38 #endif // CHROME_BROWSER_UI_HOST_DESKTOP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_finder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698