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

Issue 10008084: Add ctrl+drag feature for allowing resizing window with exact positioning. (Closed)

Created:
8 years, 8 months ago by jennyz
Modified:
8 years, 8 months ago
Reviewers:
sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Add ctrl+drag feature for allowing resizing window with exact positioning. BUG=116077 TEST=ctrl+drag will allow resizing window with exact positioning, drag resizing will still snap to grid. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132497

Patch Set 1 #

Patch Set 2 : Add ctrl-drap for resizing window to pixel level. #

Total comments: 2

Patch Set 3 : Add ctrl+drag to moving window to exacat position. #

Patch Set 4 : Add event_flag to MultiWindowResizeController Resize and CompleteResize. #

Total comments: 4

Patch Set 5 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -175 lines) Patch
M ash/wm/default_window_resizer.h View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M ash/wm/default_window_resizer.cc View 1 2 1 chunk +11 lines, -8 lines 0 comments Download
M ash/wm/toplevel_window_event_filter.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/toplevel_window_event_filter.cc View 1 2 5 chunks +10 lines, -8 lines 0 comments Download
M ash/wm/toplevel_window_event_filter_unittest.cc View 1 2 5 chunks +9 lines, -2 lines 0 comments Download
M ash/wm/window_resizer.h View 1 2 3 4 4 chunks +13 lines, -12 lines 0 comments Download
M ash/wm/window_resizer.cc View 1 2 7 chunks +20 lines, -18 lines 0 comments Download
M ash/wm/workspace/multi_window_resize_controller.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/workspace/multi_window_resize_controller.cc View 1 2 3 3 chunks +8 lines, -7 lines 0 comments Download
M ash/wm/workspace/workspace_event_filter.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/workspace/workspace_window_resizer.h View 1 2 5 chunks +14 lines, -8 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.cc View 1 2 3 4 14 chunks +43 lines, -33 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 1 2 19 chunks +143 lines, -71 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jennyz
8 years, 8 months ago (2012-04-12 17:38:28 UTC) #1
sky
Also, be sure add test coverage. http://codereview.chromium.org/10008084/diff/1009/ash/wm/default_window_resizer.cc File ash/wm/default_window_resizer.cc (right): http://codereview.chromium.org/10008084/diff/1009/ash/wm/default_window_resizer.cc#newcode50 ash/wm/default_window_resizer.cc:50: AdjustBoundsToGrid(details_.window->bounds(), details_.grid_size)); Isn't ...
8 years, 8 months ago (2012-04-12 18:08:14 UTC) #2
jennyz
http://codereview.chromium.org/10008084/diff/1009/ash/wm/default_window_resizer.cc File ash/wm/default_window_resizer.cc (right): http://codereview.chromium.org/10008084/diff/1009/ash/wm/default_window_resizer.cc#newcode50 ash/wm/default_window_resizer.cc:50: AdjustBoundsToGrid(details_.window->bounds(), details_.grid_size)); CompleteDrag is only called when user release ...
8 years, 8 months ago (2012-04-12 18:25:16 UTC) #3
sky
I spoke with Nicholas and he said that if we do control-dragging to move off ...
8 years, 8 months ago (2012-04-12 19:38:39 UTC) #4
jennyz
I have added ctrl-drag for moving window to exact position, also removed grid_size from Details.
8 years, 8 months ago (2012-04-13 21:11:07 UTC) #5
jennyz
By the way, I am not sure how Resize and CompleteResize of MultiWindowResizeController is called, ...
8 years, 8 months ago (2012-04-13 21:12:48 UTC) #6
sky
Look in the .cc, they're called from ResizeView. -Scott On Fri, Apr 13, 2012 at ...
8 years, 8 months ago (2012-04-13 21:44:14 UTC) #7
jennyz
Added event_flag to MultiWindowResizeController's Resize and CompleteResize functions.
8 years, 8 months ago (2012-04-16 18:18:23 UTC) #8
sky
LGTM http://codereview.chromium.org/10008084/diff/19001/ash/wm/window_resizer.h File ash/wm/window_resizer.h (right): http://codereview.chromium.org/10008084/diff/19001/ash/wm/window_resizer.h#newcode52 ash/wm/window_resizer.h:52: // flags from mouse event. 'from mouse' -> ...
8 years, 8 months ago (2012-04-16 21:16:30 UTC) #9
jennyz
http://codereview.chromium.org/10008084/diff/19001/ash/wm/window_resizer.h File ash/wm/window_resizer.h (right): http://codereview.chromium.org/10008084/diff/19001/ash/wm/window_resizer.h#newcode52 ash/wm/window_resizer.h:52: // flags from mouse event. On 2012/04/16 21:16:30, sky ...
8 years, 8 months ago (2012-04-16 23:09:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennyz@chromium.org/10008084/20014
8 years, 8 months ago (2012-04-16 23:10:26 UTC) #11
commit-bot: I haz the power
8 years, 8 months ago (2012-04-17 00:55:31 UTC) #12
Change committed as 132497

Powered by Google App Engine
This is Rietveld 408576698