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

Issue 2384103003: Fix spacing issues on Ash shelf (Closed)

Created:
4 years, 2 months ago by mohsen
Modified:
4 years, 1 month ago
Reviewers:
James Cook
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix spacing issues on Ash shelf Following issues with shelf spacing are fixed: - Items move to overflow too soon: this happens because the space allocated to separate panel and non-panel items is equal to a button width. Changed it to a regular spacing between buttons; - Extra spacing at the end of shelf items, before tray items; - Discrepancy between ideal bounds calculated for items moved to the overflow shelf and the overflow button (they should be the same such that minimization animation for items in the overflow shelf ends at the overflow button or bubble for panel items in the overflow shelf points to the overflow button); - Possibility of panel app icons overlapping with overflow button; - Extra space before overflow button when it is the only item shown on the shelf (which happens when the launcher button is moved to the overflow shelf). With these changes, showing system update icon is not necessary anymore for some tests to pass. The hack is removed and the disabled test is re-enabled (see https://crbug.com/619344 and https://crbug.com/625671). BUG=634128, 619344, 625671 TEST=manual Committed: https://crrev.com/888d1c0b366685696e5f4c73775575cc61bdab87 Cr-Commit-Position: refs/heads/master@{#433792}

Patch Set 1 #

Patch Set 2 : Fixed visible bounds tests #

Patch Set 3 : Rebased #

Patch Set 4 : Skipped failing tests on Windows #

Total comments: 1

Patch Set 5 : Re-enabled disabled test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -42 lines) Patch
M ash/common/shelf/shelf_view.cc View 1 2 6 chunks +22 lines, -13 lines 0 comments Download
M ash/common/test/test_system_tray_delegate.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M ash/common/test/test_system_tray_delegate.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 2 chunks +6 lines, -17 lines 0 comments Download
M ash/test/ash_test_helper.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M ash/wm/panels/panel_layout_manager_unittest.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M ash/wm/panels/panel_window_resizer_unittest.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (51 generated)
mohsen
Please take a look... (for details about state of shelf spacing and overflow, please see ...
4 years, 1 month ago (2016-11-21 20:12:39 UTC) #38
James Cook
LGTM! (Can you put "ash" or "chromeos" in the CL title?) https://codereview.chromium.org/2384103003/diff/160001/ash/common/test/test_system_tray_delegate.h File ash/common/test/test_system_tray_delegate.h (left): ...
4 years, 1 month ago (2016-11-21 23:27:27 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2384103003/160001
4 years, 1 month ago (2016-11-22 00:13:34 UTC) #42
mohsen
I had forgotten to re-enable the test that was using the now removed SetSystemUpdateRequired() hack ...
4 years, 1 month ago (2016-11-22 04:47:51 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2384103003/180001
4 years, 1 month ago (2016-11-22 04:53:27 UTC) #54
commit-bot: I haz the power
Committed patchset #5 (id:180001)
4 years, 1 month ago (2016-11-22 04:57:19 UTC) #56
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 04:59:25 UTC) #58
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/888d1c0b366685696e5f4c73775575cc61bdab87
Cr-Commit-Position: refs/heads/master@{#433792}

Powered by Google App Engine
This is Rietveld 408576698