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

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

Issue 1127133003: Adjusts dragging logic to be less likely to trigger false positive switch from snapping to docking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: ash/wm/workspace/workspace_window_resizer.h
diff --git a/ash/wm/workspace/workspace_window_resizer.h b/ash/wm/workspace/workspace_window_resizer.h
index a05039b08f062fc0a7c87a39413b944e8c771cb9..13bc8ab6818f935f6397800d49b567ae696e0201 100644
--- a/ash/wm/workspace/workspace_window_resizer.h
+++ b/ash/wm/workspace/workspace_window_resizer.h
@@ -25,6 +25,9 @@ namespace wm {
class WindowState;
}
+// The edge to which the window should be snapped at the end of the drag.
+enum SnapType { SNAP_LEFT, SNAP_RIGHT, SNAP_NONE };
+
// WindowResizer implementation for workspaces. This enforces that windows are
// not allowed to vertically move or resize outside of the work area. As windows
// are moved outside the work area they are shrunk. We remember the height of
@@ -67,13 +70,6 @@ class ASH_EXPORT WorkspaceWindowResizer : public WindowResizer {
private:
friend class WorkspaceWindowResizerTest;
- // The edge to which the window should be snapped at the end of the drag.
- enum SnapType {
- SNAP_LEFT,
- SNAP_RIGHT,
- SNAP_NONE
- };
-
// Lays out the attached windows. |bounds| is the bounds of the main window.
void LayoutAttachedWindows(gfx::Rect* bounds);

Powered by Google App Engine
This is Rietveld 408576698