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

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

Issue 169713003: Remove WindowState::IsNormalShowState() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/window_positioner.cc ('k') | ash/wm/window_state.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_WINDOW_STATE_H_ 5 #ifndef ASH_WM_WINDOW_STATE_H_
6 #define ASH_WM_WINDOW_STATE_H_ 6 #define ASH_WM_WINDOW_STATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/drag_details.h" 9 #include "ash/wm/drag_details.h"
10 #include "ash/wm/wm_types.h" 10 #include "ash/wm/wm_types.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Returns the window's current ash show type. 81 // Returns the window's current ash show type.
82 // Refer to WindowShowType definition in wm_types.h as for why Ash 82 // Refer to WindowShowType definition in wm_types.h as for why Ash
83 // has its own show type. 83 // has its own show type.
84 WindowShowType window_show_type() const { return window_show_type_; } 84 WindowShowType window_show_type() const { return window_show_type_; }
85 85
86 // Predicates to check window state. 86 // Predicates to check window state.
87 bool IsMinimized() const; 87 bool IsMinimized() const;
88 bool IsMaximized() const; 88 bool IsMaximized() const;
89 bool IsFullscreen() const; 89 bool IsFullscreen() const;
90 bool IsMaximizedOrFullscreen() const; 90 bool IsMaximizedOrFullscreen() const;
91 91 bool IsSnapped() const;
92 // DEPRECATED. TODO(pkotwicz): Remove (crbug.com/326392)
93 // True if the window's show state is SHOW_STATE_NORMAL or
94 // SHOW_STATE_DEFAULT.
95 bool IsNormalShowState() const;
96 92
97 // True if the window's show type is SHOW_TYPE_NORMAL or SHOW_TYPE_DEFAULT. 93 // True if the window's show type is SHOW_TYPE_NORMAL or SHOW_TYPE_DEFAULT.
98 // Unlike IsNormalShowState(), returns false if the window's show type is
99 // SHOW_TYPE_LEFT_SNAPPED or SHOW_TYPE_RIGHT_SNAPPED.
100 bool IsNormalShowType() const; 94 bool IsNormalShowType() const;
101 95
96 bool IsNormalOrSnapped() const;
97
102 bool IsActive() const; 98 bool IsActive() const;
103 bool IsDocked() const; 99 bool IsDocked() const;
104 bool IsSnapped() const;
105 100
106 // Checks if the window can change its state accordingly. 101 // Checks if the window can change its state accordingly.
107 bool CanMaximize() const; 102 bool CanMaximize() const;
108 bool CanMinimize() const; 103 bool CanMinimize() const;
109 bool CanResize() const; 104 bool CanResize() const;
110 bool CanSnap() const; 105 bool CanSnap() const;
111 bool CanActivate() const; 106 bool CanActivate() const;
112 107
113 // Returns true if the window has restore bounds. 108 // Returns true if the window has restore bounds.
114 bool HasRestoreBounds() const; 109 bool HasRestoreBounds() const;
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); 370 ASH_EXPORT WindowState* GetWindowState(aura::Window* window);
376 371
377 // const version of GetWindowState. 372 // const version of GetWindowState.
378 ASH_EXPORT const WindowState* 373 ASH_EXPORT const WindowState*
379 GetWindowState(const aura::Window* window); 374 GetWindowState(const aura::Window* window);
380 375
381 } // namespace wm 376 } // namespace wm
382 } // namespace ash 377 } // namespace ash
383 378
384 #endif // ASH_WM_WINDOW_STATE_H_ 379 #endif // ASH_WM_WINDOW_STATE_H_
OLDNEW
« no previous file with comments | « ash/wm/window_positioner.cc ('k') | ash/wm/window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698