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

Unified Diff: ash/wm/window_resizer.h

Issue 11087037: Dont allow the user to 'resize a window out of the workarea' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed the 10 pixel overhang. Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/wm/window_resizer.cc » ('j') | ash/wm/window_resizer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_resizer.h
diff --git a/ash/wm/window_resizer.h b/ash/wm/window_resizer.h
index 67dea81e0bc896c939768e64a36f5be8ef2213b3..df8a5b4708eaee66cff31738d45b9e87e56a7974 100644
--- a/ash/wm/window_resizer.h
+++ b/ash/wm/window_resizer.h
@@ -30,6 +30,10 @@ class ASH_EXPORT WindowResizer {
static const int kBoundsChangeDirection_Horizontal;
static const int kBoundsChangeDirection_Vertical;
+ // Upon user resizing, at least this many pixels should remain visible on the
+ // screen to avoid 'loosing' the window.
+ static const int kMinimumOnScreenSize;
+
WindowResizer();
virtual ~WindowResizer();
« no previous file with comments | « no previous file | ash/wm/window_resizer.cc » ('j') | ash/wm/window_resizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698