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

Unified Diff: ash/wm/workspace/snap_sizer.h

Issue 153893005: Makes it easier to snap or dock windows near the edges when using touch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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/workspace/snap_sizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/snap_sizer.h
diff --git a/ash/wm/workspace/snap_sizer.h b/ash/wm/workspace/snap_sizer.h
index b32c3c8c3102d528ccce3acbc75786c80757656d..03eaf93f96566d11b557bbba97b48ba34febe2c3 100644
--- a/ash/wm/workspace/snap_sizer.h
+++ b/ash/wm/workspace/snap_sizer.h
@@ -31,9 +31,13 @@ class ASH_EXPORT SnapSizer {
enum InputType {
TOUCH_MAXIMIZE_BUTTON_INPUT,
+ TOUCH_DRAG_INPUT,
OTHER_INPUT
};
+ // Snapping is made easier with a touch drag when using touchscreen.
+ static const int kScreenEdgeInsetForTouchDrag;
+
// Set |input_type| to |TOUCH_MAXIMIZE_BUTTON_INPUT| when called by a touch
// operation by the maximize button. This will allow the user to snap resize
// the window beginning close to the border.
« no previous file with comments | « no previous file | ash/wm/workspace/snap_sizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698