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

Unified Diff: chrome/browser/ui/host_desktop.h

Issue 10690151: Move implementation of BrowserList onto an inner, instantiatable class, BrowserListImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
Index: chrome/browser/ui/host_desktop.h
===================================================================
--- chrome/browser/ui/host_desktop.h (revision 0)
+++ chrome/browser/ui/host_desktop.h (revision 0)
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 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 CHROME_BROWSER_UI_HOST_DESKTOP_H_
+#define CHROME_BROWSER_UI_HOST_DESKTOP_H_
+
+namespace chrome {
+
+// A value that specifies what desktop environment hosts a particular piece of
+// UI.
+// Note that HOST_DESKTOP_TYPE_ASH is always used on ChromeOS.
+enum HostDesktopType {
+ // The UI is hosted on the system native desktop.
+ HOST_DESKTOP_TYPE_NATIVE = 0,
+
+ // The UI is hosted in the synthetic Ash desktop.
+ HOST_DESKTOP_TYPE_ASH,
+
+ HOST_DESKTOP_TYPE_COUNT
+};
+
+/*
+TODO(beng): implement utilities as needed, e.g.:
+HostDesktopType GetActiveDesktop();
+HostDesktopType GetHostDesktopTypeForNativeView(gfx::NativeView native_view);
+HostDesktopType GetHostDesktopTypeForNativeWindow(
+ gfx::NativeWindow native_window);
+HostDesktopType GetHostDesktopTypeForBrowser(Browser* browser);
+*/
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_UI_HOST_DESKTOP_H_
Property changes on: chrome\browser\ui\host_desktop.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698