| 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_COMMON_WM_WM_TYPES_H_ | 5 #ifndef ASH_COMMON_WM_WM_TYPES_H_ |
| 6 #define ASH_COMMON_WM_WM_TYPES_H_ | 6 #define ASH_COMMON_WM_WM_TYPES_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ui/base/ui_base_types.h" | 9 #include "ui/base/ui_base_types.h" |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 WINDOW_STATE_TYPE_DEFAULT = 0, | 21 WINDOW_STATE_TYPE_DEFAULT = 0, |
| 22 | 22 |
| 23 // Normal represents a state where the position/size has been | 23 // Normal represents a state where the position/size has been |
| 24 // specified by a use. | 24 // specified by a use. |
| 25 WINDOW_STATE_TYPE_NORMAL, | 25 WINDOW_STATE_TYPE_NORMAL, |
| 26 WINDOW_STATE_TYPE_MINIMIZED, | 26 WINDOW_STATE_TYPE_MINIMIZED, |
| 27 WINDOW_STATE_TYPE_MAXIMIZED, | 27 WINDOW_STATE_TYPE_MAXIMIZED, |
| 28 WINDOW_STATE_TYPE_INACTIVE, | 28 WINDOW_STATE_TYPE_INACTIVE, |
| 29 WINDOW_STATE_TYPE_FULLSCREEN, | 29 WINDOW_STATE_TYPE_FULLSCREEN, |
| 30 WINDOW_STATE_TYPE_DOCKED, | 30 WINDOW_STATE_TYPE_DOCKED, |
| 31 WINDOW_STATE_TYPE_PREVIOUS, |
| 31 WINDOW_STATE_TYPE_END, // to avoid using SHOW_STATE_END | 32 WINDOW_STATE_TYPE_END, // to avoid using SHOW_STATE_END |
| 32 | 33 |
| 33 // Ash specific states: | 34 // Ash specific states: |
| 34 | 35 |
| 35 WINDOW_STATE_TYPE_LEFT_SNAPPED, | 36 WINDOW_STATE_TYPE_LEFT_SNAPPED, |
| 36 WINDOW_STATE_TYPE_RIGHT_SNAPPED, | 37 WINDOW_STATE_TYPE_RIGHT_SNAPPED, |
| 37 | 38 |
| 38 WINDOW_STATE_TYPE_DOCKED_MINIMIZED, | 39 WINDOW_STATE_TYPE_DOCKED_MINIMIZED, |
| 39 | 40 |
| 40 // A window is in this state when it is automatically placed and | 41 // A window is in this state when it is automatically placed and |
| (...skipping 16 matching lines...) Expand all Loading... |
| 57 | 58 |
| 58 // Returns true if |type| is WINDOW_STATE_TYPE_MAXIMIZED, | 59 // Returns true if |type| is WINDOW_STATE_TYPE_MAXIMIZED, |
| 59 // WINDOW_STATE_TYPE_FULLSCREEN or WINDOW_STATE_TYPE_PINNED. | 60 // WINDOW_STATE_TYPE_FULLSCREEN or WINDOW_STATE_TYPE_PINNED. |
| 60 ASH_EXPORT bool IsMaximizedOrFullscreenOrPinnedWindowStateType( | 61 ASH_EXPORT bool IsMaximizedOrFullscreenOrPinnedWindowStateType( |
| 61 WindowStateType type); | 62 WindowStateType type); |
| 62 | 63 |
| 63 } // namespace wm | 64 } // namespace wm |
| 64 } // namespace ash | 65 } // namespace ash |
| 65 | 66 |
| 66 #endif // ASH_COMMON_WM_WM_TYPES_H_ | 67 #endif // ASH_COMMON_WM_WM_TYPES_H_ |
| OLD | NEW |