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

Issue 10384217: Add left/right layout support for uber tray. (Closed)

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

Description

Add left/right launcher layout support for uber tray. The status area and uber tray bubble will adjust for left/right launcher layout. BUG=127577 TEST=Status area and uber tray bubble UI looks right for left/right launcher layout. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=137980

Patch Set 1 #

Total comments: 15

Patch Set 2 : Add back arrow_offset_ in SystemTrayBubbleBorder. #

Total comments: 8

Patch Set 3 : Fix nits. #

Patch Set 4 : Rebase to resolve patching issue. #

Total comments: 3

Patch Set 5 : UpdateWidgetSize when layout manager is changed for systemtray and add test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -87 lines) Patch
M ash/system/tray/system_tray.h View 1 2 3 4 5 chunks +9 lines, -1 line 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 3 4 5 chunks +24 lines, -3 lines 0 comments Download
M ash/system/tray/system_tray_bubble.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ash/system/tray/system_tray_bubble.cc View 1 2 3 4 10 chunks +106 lines, -72 lines 0 comments Download
M ash/system/tray/tray_constants.h View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M ash/system/tray/tray_constants.cc View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M ash/wm/shelf_layout_manager.cc View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M ash/wm/shelf_layout_manager_unittest.cc View 1 2 3 4 4 chunks +11 lines, -1 line 0 comments Download
M ash/wm/status_area_layout_manager.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
jennyz
I still need to change notification bubble to align with left/right launcher layout. I would ...
8 years, 7 months ago (2012-05-17 01:44:01 UTC) #1
sadrul
Looks really good. There are some nits, and issue with arrow position offset. But I ...
8 years, 7 months ago (2012-05-17 19:57:05 UTC) #2
jennyz
http://codereview.chromium.org/10384217/diff/1/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): http://codereview.chromium.org/10384217/diff/1/ash/system/tray/system_tray.cc#newcode483 ash/system/tray/system_tray.cc:483: void SystemTray::SetAlignment(ShelfAlignment alignment) { On 2012/05/17 19:57:05, sadrul wrote: ...
8 years, 7 months ago (2012-05-17 22:13:30 UTC) #3
sadrul
Address the nits, and LGTM You raise very good points about the arrow position and ...
8 years, 7 months ago (2012-05-17 23:30:28 UTC) #4
jennyz
http://codereview.chromium.org/10384217/diff/6001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): http://codereview.chromium.org/10384217/diff/6001/ash/system/tray/system_tray.cc#newcode490 ash/system/tray/system_tray.cc:490: } else if (alignment == SHELF_ALIGNMENT_LEFT || On 2012/05/17 ...
8 years, 7 months ago (2012-05-18 00:00:42 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennyz@chromium.org/10384217/6010
8 years, 7 months ago (2012-05-18 00:03:56 UTC) #6
commit-bot: I haz the power
Failed to apply patch for ash/system/tray/system_tray_bubble.cc: While running patch -p1 --forward --force; patching file ash/system/tray/system_tray_bubble.cc ...
8 years, 7 months ago (2012-05-18 00:04:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennyz@chromium.org/10384217/3004
8 years, 7 months ago (2012-05-18 00:13:43 UTC) #8
commit-bot: I haz the power
Presubmit check for 10384217-3004 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 7 months ago (2012-05-18 00:13:48 UTC) #9
jennyz
8 years, 7 months ago (2012-05-18 00:15:15 UTC) #10
sky
Also, how about some tests. http://codereview.chromium.org/10384217/diff/3004/ash/wm/shelf_layout_manager.cc File ash/wm/shelf_layout_manager.cc (right): http://codereview.chromium.org/10384217/diff/3004/ash/wm/shelf_layout_manager.cc#newcode404 ash/wm/shelf_layout_manager.cc:404: *width = std::max(launcher_size.width(), status_size.width()); ...
8 years, 7 months ago (2012-05-18 15:01:48 UTC) #11
sky
On 2012/05/18 15:01:48, sky wrote: > Also, how about some tests. > > http://codereview.chromium.org/10384217/diff/3004/ash/wm/shelf_layout_manager.cc > ...
8 years, 7 months ago (2012-05-18 15:02:39 UTC) #12
jennyz
http://codereview.chromium.org/10384217/diff/3004/ash/wm/shelf_layout_manager.cc File ash/wm/shelf_layout_manager.cc (right): http://codereview.chromium.org/10384217/diff/3004/ash/wm/shelf_layout_manager.cc#newcode427 ash/wm/shelf_layout_manager.cc:427: gfx::Size status_size = Shell::GetInstance()->tray() ? On 2012/05/18 15:01:48, sky ...
8 years, 7 months ago (2012-05-18 22:05:10 UTC) #13
sky
LGTM
8 years, 7 months ago (2012-05-18 22:26:41 UTC) #14
commit-bot: I haz the power
8 years, 7 months ago (2012-05-18 22:28:41 UTC) #15

Powered by Google App Engine
This is Rietveld 408576698