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

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

Issue 38073004: Not moving a docked window when restoring a previously maximized window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Not moving a docked window when restoring a previously maximized window (IsDocked moved to namespac… Created 7 years, 1 month 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/panels/panel_frame_view.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/wm_types.h" 9 #include "ash/wm/wm_types.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // Predicates to check window state. 59 // Predicates to check window state.
60 bool IsMinimized() const; 60 bool IsMinimized() const;
61 bool IsMaximized() const; 61 bool IsMaximized() const;
62 bool IsFullscreen() const; 62 bool IsFullscreen() const;
63 bool IsMaximizedOrFullscreen() const; 63 bool IsMaximizedOrFullscreen() const;
64 // True if the window's show state is SHOW_STATE_NORMAL or 64 // True if the window's show state is SHOW_STATE_NORMAL or
65 // SHOW_STATE_DEFAULT. 65 // SHOW_STATE_DEFAULT.
66 bool IsNormalShowState() const; 66 bool IsNormalShowState() const;
67 bool IsActive() const; 67 bool IsActive() const;
68 bool IsDocked() const;
68 69
69 // Checks if the window can change its state accordingly. 70 // Checks if the window can change its state accordingly.
70 bool CanMaximize() const; 71 bool CanMaximize() const;
71 bool CanMinimize() const; 72 bool CanMinimize() const;
72 bool CanResize() const; 73 bool CanResize() const;
73 bool CanSnap() const; 74 bool CanSnap() const;
74 bool CanActivate() const; 75 bool CanActivate() const;
75 76
76 // Returns true if the window has restore bounds. 77 // Returns true if the window has restore bounds.
77 bool HasRestoreBounds() const; 78 bool HasRestoreBounds() const;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); 269 ASH_EXPORT WindowState* GetWindowState(aura::Window* window);
269 270
270 // const version of GetWindowState. 271 // const version of GetWindowState.
271 ASH_EXPORT const WindowState* 272 ASH_EXPORT const WindowState*
272 GetWindowState(const aura::Window* window); 273 GetWindowState(const aura::Window* window);
273 274
274 } // namespace wm 275 } // namespace wm
275 } // namespace ash 276 } // namespace ash
276 277
277 #endif // ASH_WM_WINDOW_STATE_H_ 278 #endif // ASH_WM_WINDOW_STATE_H_
OLDNEW
« no previous file with comments | « ash/wm/panels/panel_frame_view.cc ('k') | ash/wm/window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698