| 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 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 | 10 |
| 11 class Browser; | 11 class Browser; |
| 12 | 12 |
| 13 namespace chrome { | 13 namespace chrome { |
| 14 | 14 |
| 15 // A value that specifies what desktop environment hosts a particular piece of | 15 // TODO(scottmg): This file is being removed: http://crbug.com/558054. |
| 16 // UI. You should almost never manually hardcode one of these enums manually, | |
| 17 // please refer to the following document for details on getting the right | |
| 18 // HostDesktopType: | |
| 19 // http://sites.google.com/a/chromium.org/dev/developers/design-documents/aura/m
ulti-desktop | |
| 20 enum HostDesktopType { | 16 enum HostDesktopType { |
| 21 HOST_DESKTOP_TYPE_FIRST = 0, | 17 HOST_DESKTOP_TYPE_FIRST = 0, |
| 22 | 18 |
| 23 // The UI is hosted on the system native desktop. | 19 // The UI is hosted on the system native desktop. |
| 24 HOST_DESKTOP_TYPE_NATIVE = HOST_DESKTOP_TYPE_FIRST, | 20 HOST_DESKTOP_TYPE_NATIVE = HOST_DESKTOP_TYPE_FIRST, |
| 25 | 21 |
| 26 // The UI is hosted in the synthetic Ash desktop. | 22 // The UI is hosted in the synthetic Ash desktop. |
| 27 #if defined(OS_CHROMEOS) | 23 #if defined(OS_CHROMEOS) |
| 28 HOST_DESKTOP_TYPE_ASH = HOST_DESKTOP_TYPE_NATIVE, | 24 HOST_DESKTOP_TYPE_ASH = HOST_DESKTOP_TYPE_NATIVE, |
| 29 #else | 25 #else |
| (...skipping 10 matching lines...) Expand all Loading... |
| 40 // Returns the type of host desktop most likely to be in use. This is the one | 36 // Returns the type of host desktop most likely to be in use. This is the one |
| 41 // most recently activated by the user. | 37 // most recently activated by the user. |
| 42 // You should almost never use this outside of tests, please refer to the | 38 // You should almost never use this outside of tests, please refer to the |
| 43 // following document for details on getting the right HostDesktopType: | 39 // following document for details on getting the right HostDesktopType: |
| 44 // http://sites.google.com/a/chromium.org/dev/developers/design-documents/aura/m
ulti-desktop | 40 // http://sites.google.com/a/chromium.org/dev/developers/design-documents/aura/m
ulti-desktop |
| 45 HostDesktopType GetActiveDesktop(); | 41 HostDesktopType GetActiveDesktop(); |
| 46 | 42 |
| 47 } // namespace chrome | 43 } // namespace chrome |
| 48 | 44 |
| 49 #endif // CHROME_BROWSER_UI_HOST_DESKTOP_H_ | 45 #endif // CHROME_BROWSER_UI_HOST_DESKTOP_H_ |
| OLD | NEW |