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

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: Adjusts docking dragging logic to be more tolerant (nits) 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
« no previous file with comments | « ash/wm/workspace/two_step_edge_cycler.cc ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8bf065710df4b7d21242eb2167ee8dc1a25a995e 100644
--- a/ash/wm/workspace/workspace_window_resizer.h
+++ b/ash/wm/workspace/workspace_window_resizer.h
@@ -61,18 +61,13 @@ class ASH_EXPORT WorkspaceWindowResizer : public WindowResizer {
void RevertDrag() override;
private:
- WorkspaceWindowResizer(wm::WindowState* window_state,
- const std::vector<aura::Window*>& attached_windows);
-
- 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
- };
+ enum SnapType { SNAP_LEFT, SNAP_RIGHT, SNAP_NONE };
+
+ WorkspaceWindowResizer(wm::WindowState* window_state,
+ const std::vector<aura::Window*>& attached_windows);
// Lays out the attached windows. |bounds| is the bounds of the main window.
void LayoutAttachedWindows(gfx::Rect* bounds);
« no previous file with comments | « ash/wm/workspace/two_step_edge_cycler.cc ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698