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

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

Issue 11366215: Prevents windows in chromeos from resizing bigger than their maximum size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DesktopNativeWidgetAura Created 8 years 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_resizer.cc ('k') | ash/wm/window_util.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UTIL_H_ 5 #ifndef ASH_WM_WINDOW_UTIL_H_
6 #define ASH_WM_WINDOW_UTIL_H_ 6 #define ASH_WM_WINDOW_UTIL_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Returns true if the active window or one its ancestors is fullscreen. 45 // Returns true if the active window or one its ancestors is fullscreen.
46 ASH_EXPORT bool IsActiveWindowFullscreen(); 46 ASH_EXPORT bool IsActiveWindowFullscreen();
47 47
48 // Returns true if |window| can be maximized. 48 // Returns true if |window| can be maximized.
49 ASH_EXPORT bool CanMaximizeWindow(const aura::Window* window); 49 ASH_EXPORT bool CanMaximizeWindow(const aura::Window* window);
50 50
51 // Returns true if |window| can be resized. 51 // Returns true if |window| can be resized.
52 ASH_EXPORT bool CanResizeWindow(const aura::Window* window); 52 ASH_EXPORT bool CanResizeWindow(const aura::Window* window);
53 53
54 // Returns true if |window| can be snapped to the left or right.
55 ASH_EXPORT bool CanSnapWindow(aura::Window* window);
56
54 // Returns true if |window| is normal or default. 57 // Returns true if |window| is normal or default.
55 ASH_EXPORT bool IsWindowNormal(const aura::Window* window); 58 ASH_EXPORT bool IsWindowNormal(const aura::Window* window);
56 59
57 // Returns true if |state| is normal or default. 60 // Returns true if |state| is normal or default.
58 ASH_EXPORT bool IsWindowStateNormal(const ui::WindowShowState state); 61 ASH_EXPORT bool IsWindowStateNormal(const ui::WindowShowState state);
59 62
60 // Returns true if |window| is in the maximized state. 63 // Returns true if |window| is in the maximized state.
61 ASH_EXPORT bool IsWindowMaximized(const aura::Window* window); 64 ASH_EXPORT bool IsWindowMaximized(const aura::Window* window);
62 65
63 // Returns true if |window| is minimized. 66 // Returns true if |window| is minimized.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 124
122 // Move the given bounds inside the given work area, including a safety margin. 125 // Move the given bounds inside the given work area, including a safety margin.
123 ASH_EXPORT void AdjustBoundsToEnsureWindowVisibility( 126 ASH_EXPORT void AdjustBoundsToEnsureWindowVisibility(
124 gfx::Rect* bounds, 127 gfx::Rect* bounds,
125 const gfx::Rect& work_area); 128 const gfx::Rect& work_area);
126 129
127 } // namespace wm 130 } // namespace wm
128 } // namespace ash 131 } // namespace ash
129 132
130 #endif // ASH_WM_WINDOW_UTIL_H_ 133 #endif // ASH_WM_WINDOW_UTIL_H_
OLDNEW
« no previous file with comments | « ash/wm/window_resizer.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698