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

Side by Side Diff: ash/wm/wm_types.h

Issue 32943006: [Refactor] Replace kFullscreenUsesMinimalChromeKey with WindowState::hide_shelf_when_fullscreen() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_WM_WM_TYPES_H_ 5 #ifndef ASH_WM_WM_TYPES_H_
6 #define ASH_WM_WM_TYPES_H_ 6 #define ASH_WM_WM_TYPES_H_
7 7
8 #include "ui/base/ui_base_types.h" 8 #include "ui/base/ui_base_types.h"
9 9
10 namespace ash { 10 namespace ash {
(...skipping 28 matching lines...) Expand all
39 // due to new window, for example). 39 // due to new window, for example).
40 SHOW_TYPE_AUTO_POSITIONED, 40 SHOW_TYPE_AUTO_POSITIONED,
41 }; 41 };
42 42
43 // Utility functions to convert WindowShowType <-> ui::WindowShowState. 43 // Utility functions to convert WindowShowType <-> ui::WindowShowState.
44 // Note: LEFT/RIGHT MAXIMIZED, AUTO_POSITIONED type will be lost when 44 // Note: LEFT/RIGHT MAXIMIZED, AUTO_POSITIONED type will be lost when
45 // converting to ui::WindowShowState. 45 // converting to ui::WindowShowState.
46 WindowShowType ToWindowShowType(ui::WindowShowState state); 46 WindowShowType ToWindowShowType(ui::WindowShowState state);
47 ui::WindowShowState ToWindowShowState(WindowShowType type); 47 ui::WindowShowState ToWindowShowState(WindowShowType type);
48 48
49 } // namespace 49 // This enum defines the types of fullscreen. It is only relevant when
50 } // namespace 50 // WindowShowType == SHOW_TYPE_FULLSCREEN.
51 enum FullscreenType {
52 // - Light bars are used instead of regular tabs when the top-of-window views
53 // are hidden. The user can reveal the top-of-window views by hovering the
54 // mouse at top of the screen.
55 // - The shelf is forced to auto hide.
56 FULLSCREEN_TYPE_IMMERSIVE_MINIMAL_CHROME,
57
58 // - The tab strip is hidden when the top-of-window views are hidden. The
59 // user can reveal the top-of-window views by hovering the
60 // mouse at the top of the screen.
61 // - The shelf is completely hidden and cannot be revealed.
62 FULLSCREEN_TYPE_IMMERSIVE_NO_CHROME,
63
64 // - The tab strip is hidden and the top-of-window views cannot be revealed.
65 // - The shelf is completely hidden and cannot be revealed.
66 // - There may be a bubble which slides out when the user hovers the mouse at
67 // top of the screen.
68 FULLSCREEN_TYPE_OTHER,
James Cook 2013/10/23 17:05:07 I think this might be clearer as FULLSCREEN_TYPE_F
69
70 FULLSCREEN_TYPE_DEFAULT = FULLSCREEN_TYPE_OTHER
71 };
72
73 } // namespace wm
74 } // namespace ash
51 75
52 #endif // ASH_WM_WM_TYPES_H_ 76 #endif // ASH_WM_WM_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698