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 #include "ash/wm/wm_types.h" | 5 #include "ash/wm/wm_types.h" |
6 | 6 |
7 #include "base/basictypes.h" | |
8 #include "base/logging.h" | 7 #include "base/logging.h" |
9 | 8 |
10 namespace ash { | 9 namespace ash { |
11 namespace wm { | 10 namespace wm { |
12 | 11 |
13 // This is to catch the change to WindowShowState. | 12 // This is to catch the change to WindowShowState. |
14 static_assert(ui::SHOW_STATE_END == | 13 static_assert(ui::SHOW_STATE_END == |
15 static_cast<ui::WindowShowState>(WINDOW_STATE_TYPE_END), | 14 static_cast<ui::WindowShowState>(WINDOW_STATE_TYPE_END), |
16 "show enum mismatch"); | 15 "show enum mismatch"); |
17 | 16 |
(...skipping 28 matching lines...) Expand all Loading... |
46 return ui::SHOW_STATE_DEFAULT; | 45 return ui::SHOW_STATE_DEFAULT; |
47 } | 46 } |
48 | 47 |
49 bool IsMaximizedOrFullscreenWindowStateType(WindowStateType type) { | 48 bool IsMaximizedOrFullscreenWindowStateType(WindowStateType type) { |
50 return type == WINDOW_STATE_TYPE_MAXIMIZED || | 49 return type == WINDOW_STATE_TYPE_MAXIMIZED || |
51 type == WINDOW_STATE_TYPE_FULLSCREEN; | 50 type == WINDOW_STATE_TYPE_FULLSCREEN; |
52 } | 51 } |
53 | 52 |
54 } // namespace wm | 53 } // namespace wm |
55 } // namespace ash | 54 } // namespace ash |
OLD | NEW |