OLD | NEW |
---|---|
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 "ash/ash_export.h" | |
8 #include "ui/base/ui_base_types.h" | 9 #include "ui/base/ui_base_types.h" |
9 | 10 |
10 namespace ash { | 11 namespace ash { |
11 namespace wm { | 12 namespace wm { |
12 | 13 |
13 // This enum defines both common show state copied from | 14 // This enum defines both common show state copied from |
14 // ui::WindowShowState as well as new states intoruduced in ash. | 15 // ui::WindowShowState as well as new states intoruduced in ash. |
15 // The separate enum is defined here because we don't want to leak | 16 // The separate enum is defined here because we don't want to leak |
16 // these type to ui/base until they're stable and we know for sure | 17 // these type to ui/base until they're stable and we know for sure |
17 // that they'll persist over time. | 18 // that they'll persist over time. |
(...skipping 21 matching lines...) Expand all Loading... | |
39 // due to new window, for example). | 40 // due to new window, for example). |
40 SHOW_TYPE_AUTO_POSITIONED, | 41 SHOW_TYPE_AUTO_POSITIONED, |
41 }; | 42 }; |
42 | 43 |
43 // Utility functions to convert WindowShowType <-> ui::WindowShowState. | 44 // Utility functions to convert WindowShowType <-> ui::WindowShowState. |
44 // Note: LEFT/RIGHT MAXIMIZED, AUTO_POSITIONED type will be lost when | 45 // Note: LEFT/RIGHT MAXIMIZED, AUTO_POSITIONED type will be lost when |
45 // converting to ui::WindowShowState. | 46 // converting to ui::WindowShowState. |
46 WindowShowType ToWindowShowType(ui::WindowShowState state); | 47 WindowShowType ToWindowShowType(ui::WindowShowState state); |
47 ui::WindowShowState ToWindowShowState(WindowShowType type); | 48 ui::WindowShowState ToWindowShowState(WindowShowType type); |
48 | 49 |
49 } // namespace | 50 // This enum defines the types of fullscreen. It is only relevant when |
50 } // namespace | 51 // WindowShowType == SHOW_TYPE_FULLSCREEN. |
52 enum FullscreenType { | |
James Cook
2013/10/16 16:38:35
This seems like a good idea. I would put it in Win
pkotwicz
2013/10/17 04:45:08
Done.
| |
53 // - Light bars are used instead of regular tabs when the top-of-window views | |
54 // are hidden. The user can reveal the top-of-window views by hovering the | |
55 // mouse at top of the screen. | |
56 // - The shelf is forced to auto hide. | |
57 FULLSCREEN_TYPE_IMMERSIVE_MINIMAL_CHROME, | |
58 | |
59 // - The tab strip is hidden when the top-of-window views are hidden. The | |
60 // user can reveal the top-of-window views by hovering the | |
61 // mouse at the top of the screen. | |
62 // - The shelf is completely hidden and cannot be revealed. | |
63 FULLSCREEN_TYPE_IMMERSIVE_NO_CHROME, | |
64 | |
65 // - The tab strip is hidden and the top-of-window views cannot be revealed. | |
66 // - The shelf is completely hidden and cannot be revealed. | |
67 // - There may be a bubble which slides out when the user hovers the mouse at | |
68 // top of the screen. | |
69 FULLSCREEN_TYPE_OTHER | |
70 }; | |
71 | |
72 // Returns true if |type| is a type of immersive fullscreen. | |
73 ASH_EXPORT bool IsImmersiveFullscreenType(FullscreenType type); | |
74 | |
75 } // namespace wm | |
76 } // namespace ash | |
51 | 77 |
52 #endif // ASH_WM_WM_TYPES_H_ | 78 #endif // ASH_WM_WM_TYPES_H_ |
OLD | NEW |