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

Issue 10979090: Simplify WorkAreaBounds access logic (Closed)

Created:
8 years, 2 months ago by Harry McCleave
Modified:
8 years, 2 months ago
Reviewers:
Daniel Erat, oshima, sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Remove GetUnmaximizedWorkAreaBounds (use GetDisplayWorkAreaBoundsInParent) and update GetMaximizedWindowBounds to account for the simplified Autohide behavior. BUG=151417 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162624

Patch Set 1 #

Patch Set 2 : Comment Updated #

Total comments: 1

Patch Set 3 : temp changes #

Total comments: 2

Patch Set 4 : Requested changes #

Total comments: 1

Patch Set 5 : Missed dead code #

Total comments: 1

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -58 lines) Patch
M ash/screen_ash.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M ash/screen_ash.cc View 1 2 3 1 chunk +1 line, -10 lines 0 comments Download
M ash/screen_ash_unittest.cc View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M ash/wm/shelf_layout_manager.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ash/wm/shelf_layout_manager.cc View 1 2 3 4 5 1 chunk +0 lines, -26 lines 0 comments Download
M ash/wm/shelf_layout_manager_unittest.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M ash/wm/workspace/snap_sizer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 1 2 3 4 5 2 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Harry McCleave
Ready for review.
8 years, 2 months ago (2012-09-29 01:34:33 UTC) #1
sky
https://codereview.chromium.org/10979090/diff/2001/ash/screen_ash.cc File ash/screen_ash.cc (right): https://codereview.chromium.org/10979090/diff/2001/ash/screen_ash.cc#newcode41 ash/screen_ash.cc:41: gfx::Rect ScreenAsh::GetMaximizedWindowBoundsInParent(aura::Window* window) { Can't you nuke this entirely ...
8 years, 2 months ago (2012-10-01 14:11:47 UTC) #2
oshima
https://codereview.chromium.org/10979090/diff/5001/ash/screen_ash.cc File ash/screen_ash.cc (right): https://codereview.chromium.org/10979090/diff/5001/ash/screen_ash.cc#newcode43 ash/screen_ash.cc:43: return gfx::Screen::GetDisplayNearestWindow(window).work_area(); GetDisplayWorkAreaBoundsInParent(window) https://codereview.chromium.org/10979090/diff/5001/ash/screen_ash.cc#newcode50 ash/screen_ash.cc:50: aura::Window* window) { Remove ...
8 years, 2 months ago (2012-10-15 04:45:04 UTC) #3
Harry McCleave
On 2012/10/15 04:45:04, oshima wrote: > https://codereview.chromium.org/10979090/diff/5001/ash/screen_ash.cc > File ash/screen_ash.cc (right): > > https://codereview.chromium.org/10979090/diff/5001/ash/screen_ash.cc#newcode43 > ...
8 years, 2 months ago (2012-10-16 23:32:55 UTC) #4
oshima
lgtm with one nit http://codereview.chromium.org/10979090/diff/13001/ash/wm/shelf_layout_manager_unittest.cc File ash/wm/shelf_layout_manager_unittest.cc (right): http://codereview.chromium.org/10979090/diff/13001/ash/wm/shelf_layout_manager_unittest.cc#newcode450 ash/wm/shelf_layout_manager_unittest.cc:450: // shelf->GetUnmaximizedWorkAreaBounds(window).bottom()); nit: remove them
8 years, 2 months ago (2012-10-16 23:44:32 UTC) #5
sky
http://codereview.chromium.org/10979090/diff/16002/ash/screen_ash.h File ash/screen_ash.h (left): http://codereview.chromium.org/10979090/diff/16002/ash/screen_ash.h#oldcode32 ash/screen_ash.h:32: static gfx::Rect GetMaximizedWindowBoundsInParent(aura::Window* window); Aren't you going to remove ...
8 years, 2 months ago (2012-10-17 13:39:01 UTC) #6
Harry McCleave
On 2012/10/17 13:39:01, sky wrote: > http://codereview.chromium.org/10979090/diff/16002/ash/screen_ash.h > File ash/screen_ash.h (left): > > http://codereview.chromium.org/10979090/diff/16002/ash/screen_ash.h#oldcode32 > ...
8 years, 2 months ago (2012-10-17 19:57:49 UTC) #7
Daniel Erat
LGTM with the disclaimer that I haven't looked at this code before.
8 years, 2 months ago (2012-10-17 20:49:20 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/harrym@chromium.org/10979090/16002
8 years, 2 months ago (2012-10-17 20:53:08 UTC) #9
sky
LGTM
8 years, 2 months ago (2012-10-17 21:06:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/harrym@chromium.org/10979090/22003
8 years, 2 months ago (2012-10-18 00:21:34 UTC) #11
commit-bot: I haz the power
8 years, 2 months ago (2012-10-18 02:45:24 UTC) #12
Change committed as 162624

Powered by Google App Engine
This is Rietveld 408576698