Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_GFX_HOST_DESKTOP_TYPE_H_ | |
| 6 #define UI_GFX_HOST_DESKTOP_TYPE_H_ | |
| 7 | |
| 8 #include "build/build_config.h" | |
| 9 | |
| 10 namespace ui { | |
| 11 | |
| 12 // A value that specifies what desktop environment hosts a particular piece of | |
| 13 // UI. You should almost never manually hardcode one of these enums manually, | |
| 14 // please refer to the following document for details on getting the right | |
| 15 // HostDesktopType: | |
| 16 // http://sites.google.com/a/chromium.org/dev/developers/design-documents/aura/m ulti-desktop | |
| 17 enum HostDesktopType { | |
| 18 HOST_DESKTOP_TYPE_FIRST = 0, | |
| 19 | |
| 20 // The UI is hosted on the system native desktop. | |
| 21 HOST_DESKTOP_TYPE_NATIVE = HOST_DESKTOP_TYPE_FIRST, | |
| 22 | |
| 23 // The UI is hosted in the synthetic Ash desktop. | |
| 24 #if defined(OS_CHROMEOS) | |
| 25 HOST_DESKTOP_TYPE_ASH = HOST_DESKTOP_TYPE_NATIVE, | |
| 26 #else | |
| 27 HOST_DESKTOP_TYPE_ASH, | |
| 28 #endif | |
|
sadrul
2015/09/11 14:03:32
gfx shouldn't normally refer to layers above it (a
blundell
2015/09/11 14:09:47
I'm not very familiar with the dependency hierarch
| |
| 29 | |
| 30 HOST_DESKTOP_TYPE_COUNT | |
| 31 }; | |
| 32 | |
| 33 } // namespace ui | |
| 34 | |
| 35 #endif // UI_GFX_HOST_DESKTOP_TYPE_H_ | |
| OLD | NEW |