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

Side by Side Diff: chrome/browser/ui/host_desktop.h

Issue 1637943003: Remove HostDesktopType from BrowserList::GetInstance() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screen-wrapper-land
Patch Set: mac2 Created 4 years, 11 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm ('k') | chrome/browser/ui/host_desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698