| 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/common/wm/wm_types.h" | 5 #include "ash/wm/wm_types.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace ash { | 9 namespace ash { |
| 10 namespace wm { | 10 namespace wm { |
| 11 | 11 |
| 12 // This is to catch the change to WindowShowState. | 12 // This is to catch the change to WindowShowState. |
| 13 static_assert(ui::SHOW_STATE_END == | 13 static_assert(ui::SHOW_STATE_END == |
| 14 static_cast<ui::WindowShowState>(WINDOW_STATE_TYPE_END), | 14 static_cast<ui::WindowShowState>(WINDOW_STATE_TYPE_END), |
| 15 "show enum mismatch"); | 15 "show enum mismatch"); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 bool IsMaximizedOrFullscreenOrPinnedWindowStateType(WindowStateType type) { | 52 bool IsMaximizedOrFullscreenOrPinnedWindowStateType(WindowStateType type) { |
| 53 return type == WINDOW_STATE_TYPE_MAXIMIZED || | 53 return type == WINDOW_STATE_TYPE_MAXIMIZED || |
| 54 type == WINDOW_STATE_TYPE_FULLSCREEN || | 54 type == WINDOW_STATE_TYPE_FULLSCREEN || |
| 55 type == WINDOW_STATE_TYPE_PINNED || | 55 type == WINDOW_STATE_TYPE_PINNED || |
| 56 type == WINDOW_STATE_TYPE_TRUSTED_PINNED; | 56 type == WINDOW_STATE_TYPE_TRUSTED_PINNED; |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace wm | 59 } // namespace wm |
| 60 } // namespace ash | 60 } // namespace ash |
| OLD | NEW |