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

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

Issue 1890713002: Adds WmWindow and converts WindowState to use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again Created 4 years, 8 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
« no previous file with comments | « ash/wm/window_util_unittest.cc ('k') | ash/wm/workspace/multi_window_resize_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
11 // TODO(sky): move to common.
11 namespace ash { 12 namespace ash {
12 namespace wm { 13 namespace wm {
13 14
14 // This enum defines both common show state copied from 15 // This enum defines both common show state copied from
15 // ui::WindowShowState as well as new states introduced in ash. 16 // ui::WindowShowState as well as new states introduced in ash.
16 // The separate enum is defined here because we don't want to leak 17 // The separate enum is defined here because we don't want to leak
17 // these type to ui/base until they're stable and we know for sure 18 // these type to ui/base until they're stable and we know for sure
18 // that they'll persist over time. 19 // that they'll persist over time.
19 enum WindowStateType { 20 enum WindowStateType {
20 // Common state 21 // Common state
(...skipping 29 matching lines...) Expand all
50 ASH_EXPORT ui::WindowShowState ToWindowShowState(WindowStateType type); 51 ASH_EXPORT ui::WindowShowState ToWindowShowState(WindowStateType type);
51 52
52 // Returns true if |type| is WINDOW_STATE_TYPE_MAXIMIZED or 53 // Returns true if |type| is WINDOW_STATE_TYPE_MAXIMIZED or
53 // WINDOW_STATE_TYPE_FULLSCREEN. 54 // WINDOW_STATE_TYPE_FULLSCREEN.
54 ASH_EXPORT bool IsMaximizedOrFullscreenWindowStateType(WindowStateType type); 55 ASH_EXPORT bool IsMaximizedOrFullscreenWindowStateType(WindowStateType type);
55 56
56 } // namespace wm 57 } // namespace wm
57 } // namespace ash 58 } // namespace ash
58 59
59 #endif // ASH_WM_WM_TYPES_H_ 60 #endif // ASH_WM_WM_TYPES_H_
OLDNEW
« no previous file with comments | « ash/wm/window_util_unittest.cc ('k') | ash/wm/workspace/multi_window_resize_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698