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

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

Issue 11363177: Don't use drag to corner resizing for unresizable windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 30 matching lines...) Expand all
41 // If you're looking for a function to get the activatable "top level" window, 41 // If you're looking for a function to get the activatable "top level" window,
42 // this is probably what you're looking for. 42 // this is probably what you're looking for.
43 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); 43 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window);
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.
52 ASH_EXPORT bool CanResizeWindow(const aura::Window* window);
53
51 // Returns true if |window| is normal or default. 54 // Returns true if |window| is normal or default.
52 ASH_EXPORT bool IsWindowNormal(const aura::Window* window); 55 ASH_EXPORT bool IsWindowNormal(const aura::Window* window);
53 56
54 // Returns true if |state| is normal or default. 57 // Returns true if |state| is normal or default.
55 ASH_EXPORT bool IsWindowStateNormal(const ui::WindowShowState state); 58 ASH_EXPORT bool IsWindowStateNormal(const ui::WindowShowState state);
56 59
57 // Returns true if |window| is in the maximized state. 60 // Returns true if |window| is in the maximized state.
58 ASH_EXPORT bool IsWindowMaximized(const aura::Window* window); 61 ASH_EXPORT bool IsWindowMaximized(const aura::Window* window);
59 62
60 // Returns true if |window| is minimized. 63 // Returns true if |window| is minimized.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 121
119 // Move the given bounds inside the given work area, including a safety margin. 122 // Move the given bounds inside the given work area, including a safety margin.
120 ASH_EXPORT void AdjustBoundsToEnsureWindowVisibility( 123 ASH_EXPORT void AdjustBoundsToEnsureWindowVisibility(
121 gfx::Rect* bounds, 124 gfx::Rect* bounds,
122 const gfx::Rect& work_area); 125 const gfx::Rect& work_area);
123 126
124 } // namespace wm 127 } // namespace wm
125 } // namespace ash 128 } // namespace ash
126 129
127 #endif // ASH_WM_WINDOW_UTIL_H_ 130 #endif // ASH_WM_WINDOW_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698