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

Issue 10918077: Adding proper dragging behavior for L/R maximized windows. (Closed)

Created:
8 years, 3 months ago by Mr4D (OOO till 08-26)
Modified:
8 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Adding proper dragging behavior for L/R maximized windows. BUG=141750 TEST=unit tests & visual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155840 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156058

Patch Set 1 #

Patch Set 2 : Moved code section into separate function #

Total comments: 4

Patch Set 3 : Addressed first set of comments #

Total comments: 20

Patch Set 4 : Addressed. #

Total comments: 10

Patch Set 5 : Fixed unit tests #

Patch Set 6 : Addressed #

Patch Set 7 : Addressed comments #

Patch Set 8 : As requested #

Total comments: 1

Patch Set 9 : Remiving grid change #

Patch Set 10 : It looks like if git merged wrong here... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -6 lines) Patch
M ash/wm/default_window_resizer.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -0 lines 0 comments Download
M ash/wm/frame_painter.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ash/wm/frame_painter.cc View 1 2 3 4 5 6 7 8 4 chunks +40 lines, -0 lines 0 comments Download
M ash/wm/frame_painter_unittest.cc View 1 2 3 4 5 6 7 3 chunks +67 lines, -0 lines 0 comments Download
M ash/wm/window_resizer.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M ash/wm/window_resizer.cc View 1 2 3 4 5 6 7 8 9 5 chunks +20 lines, -0 lines 0 comments Download
M ash/wm/workspace/frame_maximize_button.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -2 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.cc View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -2 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +32 lines, -1 line 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
Mr4D (OOO till 08-26)
I added the dragging functionality for L/R maximized windows. Please have a look!
8 years, 3 months ago (2012-09-05 16:33:45 UTC) #1
sky
And you need some tests. http://codereview.chromium.org/10918077/diff/2001/ash/wm/frame_painter.cc File ash/wm/frame_painter.cc (right): http://codereview.chromium.org/10918077/diff/2001/ash/wm/frame_painter.cc#newcode601 ash/wm/frame_painter.cc:601: if (hit_code != HTNOWHERE) ...
8 years, 3 months ago (2012-09-05 17:03:24 UTC) #2
Mr4D (OOO till 08-26)
I will write a few more unit tests, but need to help Matt first with ...
8 years, 3 months ago (2012-09-06 16:06:49 UTC) #3
sky
http://codereview.chromium.org/10918077/diff/6001/ash/wm/frame_painter.cc File ash/wm/frame_painter.cc (right): http://codereview.chromium.org/10918077/diff/6001/ash/wm/frame_painter.cc#newcode605 ash/wm/frame_painter.cc:605: gfx::Rect bounds = window_->bounds(); const gfx::Rect& here and next ...
8 years, 3 months ago (2012-09-06 19:45:11 UTC) #4
Mr4D (OOO till 08-26)
Addressed. Please have another look! http://codereview.chromium.org/10918077/diff/6001/ash/wm/frame_painter.cc File ash/wm/frame_painter.cc (right): http://codereview.chromium.org/10918077/diff/6001/ash/wm/frame_painter.cc#newcode605 ash/wm/frame_painter.cc:605: gfx::Rect bounds = window_->bounds(); ...
8 years, 3 months ago (2012-09-06 23:16:13 UTC) #5
sky
http://codereview.chromium.org/10918077/diff/6001/ash/wm/frame_painter_unittest.cc File ash/wm/frame_painter_unittest.cc (right): http://codereview.chromium.org/10918077/diff/6001/ash/wm/frame_painter_unittest.cc#newcode206 ash/wm/frame_painter_unittest.cc:206: frame->SetBounds(0, 0, 100, 100); On 2012/09/06 23:16:13, Mr4D wrote: ...
8 years, 3 months ago (2012-09-07 02:43:29 UTC) #6
sky
http://codereview.chromium.org/10918077/diff/12001/ash/wm/window_resizer.cc File ash/wm/window_resizer.cc (right): http://codereview.chromium.org/10918077/diff/12001/ash/wm/window_resizer.cc#newcode213 ash/wm/window_resizer.cc:213: origin.set_x(location.x() - details.restore_bounds.width() / 2); One more comment here. ...
8 years, 3 months ago (2012-09-07 15:46:14 UTC) #7
Mr4D (OOO till 08-26)
Changed as requested. http://codereview.chromium.org/10918077/diff/12001/ash/wm/window_resizer.cc File ash/wm/window_resizer.cc (right): http://codereview.chromium.org/10918077/diff/12001/ash/wm/window_resizer.cc#newcode213 ash/wm/window_resizer.cc:213: origin.set_x(location.x() - details.restore_bounds.width() / 2); I ...
8 years, 3 months ago (2012-09-07 16:45:33 UTC) #8
Mr4D (OOO till 08-26)
Mostly addresed. Will continue on Monday http://codereview.chromium.org/10918077/diff/6001/ash/wm/frame_painter_unittest.cc File ash/wm/frame_painter_unittest.cc (right): http://codereview.chromium.org/10918077/diff/6001/ash/wm/frame_painter_unittest.cc#newcode206 ash/wm/frame_painter_unittest.cc:206: frame->SetBounds(0, 0, 100, ...
8 years, 3 months ago (2012-09-08 01:17:41 UTC) #9
Mr4D (OOO till 08-26)
Please have another look
8 years, 3 months ago (2012-09-10 16:18:30 UTC) #10
sky
LGTM http://codereview.chromium.org/10918077/diff/2003/ash/wm/workspace/workspace_window_resizer_unittest.cc File ash/wm/workspace/workspace_window_resizer_unittest.cc (right): http://codereview.chromium.org/10918077/diff/2003/ash/wm/workspace/workspace_window_resizer_unittest.cc#newcode912 ash/wm/workspace/workspace_window_resizer_unittest.cc:912: SetGridSize(1); I'm removing the grid @ http://codereview.chromium.org/10910164/ .
8 years, 3 months ago (2012-09-10 17:10:48 UTC) #11
Mr4D (OOO till 08-26)
Done.
8 years, 3 months ago (2012-09-10 19:38:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/10918077/3022
8 years, 3 months ago (2012-09-10 19:38:25 UTC) #13
commit-bot: I haz the power
Change committed as 155840
8 years, 3 months ago (2012-09-10 21:44:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/10918077/7006
8 years, 3 months ago (2012-09-11 14:44:39 UTC) #15
commit-bot: I haz the power
8 years, 3 months ago (2012-09-11 18:05:51 UTC) #16
Change committed as 156058

Powered by Google App Engine
This is Rietveld 408576698