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

Unified Diff: ui/gfx/host_desktop_type.h

Issue 1336823003: Move chrome::HostDesktopType to ui::HostDesktopType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@base_session_service_delegate_impl
Patch Set: Fix build on Mac and CrOS Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/host_desktop_type.h
diff --git a/ui/gfx/host_desktop_type.h b/ui/gfx/host_desktop_type.h
new file mode 100644
index 0000000000000000000000000000000000000000..74f64bd6b12bb4bdd7c938d54cc89b5dd24b65c9
--- /dev/null
+++ b/ui/gfx/host_desktop_type.h
@@ -0,0 +1,35 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_GFX_HOST_DESKTOP_TYPE_H_
+#define UI_GFX_HOST_DESKTOP_TYPE_H_
+
+#include "build/build_config.h"
+
+namespace ui {
+
+// A value that specifies what desktop environment hosts a particular piece of
+// UI. You should almost never manually hardcode one of these enums manually,
+// please refer to the following document for details on getting the right
+// HostDesktopType:
+// http://sites.google.com/a/chromium.org/dev/developers/design-documents/aura/multi-desktop
+enum HostDesktopType {
+ HOST_DESKTOP_TYPE_FIRST = 0,
+
+ // The UI is hosted on the system native desktop.
+ HOST_DESKTOP_TYPE_NATIVE = HOST_DESKTOP_TYPE_FIRST,
+
+// The UI is hosted in the synthetic Ash desktop.
+#if defined(OS_CHROMEOS)
+ HOST_DESKTOP_TYPE_ASH = HOST_DESKTOP_TYPE_NATIVE,
+#else
+ HOST_DESKTOP_TYPE_ASH,
+#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
+
+ HOST_DESKTOP_TYPE_COUNT
+};
+
+} // namespace ui
+
+#endif // UI_GFX_HOST_DESKTOP_TYPE_H_
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698