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

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

Issue 68033003: Undocks window first before side-snapping bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 void SetDelegate(scoped_ptr<WindowStateDelegate> delegate); 52 void SetDelegate(scoped_ptr<WindowStateDelegate> delegate);
53 53
54 // Returns the window's current show state. 54 // Returns the window's current show state.
55 ui::WindowShowState GetShowState() const; 55 ui::WindowShowState GetShowState() const;
56 56
57 // Returns the window's current ash show type. 57 // Returns the window's current ash show type.
58 // Refer to WindowShowType definition in wm_types.h as for why Ash 58 // Refer to WindowShowType definition in wm_types.h as for why Ash
59 // has its own show type. 59 // has its own show type.
60 WindowShowType window_show_type() const { return window_show_type_; } 60 WindowShowType window_show_type() const { return window_show_type_; }
61 void SetWindowShowType(WindowShowType window_show_type);
61 62
62 // Predicates to check window state. 63 // Predicates to check window state.
63 bool IsMinimized() const; 64 bool IsMinimized() const;
64 bool IsMaximized() const; 65 bool IsMaximized() const;
65 bool IsFullscreen() const; 66 bool IsFullscreen() const;
66 bool IsMaximizedOrFullscreen() const; 67 bool IsMaximizedOrFullscreen() const;
67 // True if the window's show state is SHOW_STATE_NORMAL or 68 // True if the window's show state is SHOW_STATE_NORMAL or
68 // SHOW_STATE_DEFAULT. 69 // SHOW_STATE_DEFAULT.
69 bool IsNormalShowState() const; 70 bool IsNormalShowState() const;
70 bool IsActive() const; 71 bool IsActive() const;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); 298 ASH_EXPORT WindowState* GetWindowState(aura::Window* window);
298 299
299 // const version of GetWindowState. 300 // const version of GetWindowState.
300 ASH_EXPORT const WindowState* 301 ASH_EXPORT const WindowState*
301 GetWindowState(const aura::Window* window); 302 GetWindowState(const aura::Window* window);
302 303
303 } // namespace wm 304 } // namespace wm
304 } // namespace ash 305 } // namespace ash
305 306
306 #endif // ASH_WM_WINDOW_STATE_H_ 307 #endif // ASH_WM_WINDOW_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698