OLD | NEW |
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_ |
OLD | NEW |