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

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

Issue 14273008: Add ash-enable-sticky-edges for 'sticky' instead of 'snap' behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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 4c71285471a31a7e4d7b614bd166d10bb2fbaaf0..cfb9a737097cc8807beaa793f572670ac9cd777e 100644
--- a/ash/wm/workspace/workspace_window_resizer.h
+++ b/ash/wm/workspace/workspace_window_resizer.h
@@ -135,15 +135,14 @@ class ASH_EXPORT WorkspaceWindowResizer : public WindowResizer {
void AdjustBoundsForMainWindow(int snap_size, gfx::Rect* bounds);
// Snaps the window bounds to the work area edges if necessary.
sky 2013/04/22 17:20:00 If you're goal is to use 'stick' every where, whic
stevenjb 2013/04/22 18:09:41 Done.
- void SnapToWorkAreaEdges(
- const gfx::Rect& work_area,
- int snap_size,
- gfx::Rect* bounds) const;
+ void StickToWorkAreaEdges(const gfx::Rect& work_area,
+ int sticky_size,
+ gfx::Rect* bounds) const;
// Snaps the window bounds to the work area during a resize.
- void SnapResizeToWorkAreaBounds(const gfx::Rect& work_area,
- int snap_size,
- gfx::Rect* bounds) const;
+ void StickyResizeToWorkAreaBounds(const gfx::Rect& work_area,
sky 2013/04/22 17:20:00 This name is awkward, maybe StickToWorkAreaBounds?
stevenjb 2013/04/22 18:09:41 Changed to StickToWorkAreaOnResize
+ int sticky_size,
+ gfx::Rect* bounds) const;
// Returns a coordinate along the primary axis. Used to share code for
// left/right multi window resize and top/bottom resize.

Powered by Google App Engine
This is Rietveld 408576698