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

Issue 1998933002: Update shelf spacing in Chrome OS according to the MD specs (Closed)

Created:
4 years, 7 months ago by yiyix
Modified:
4 years, 6 months ago
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update shelf spacing in Chrome OS according to the MD specs: - Update the height of the shelf. - Update the spacing between icons in the shelf. - Update the spacing around status tray area, notification center, app list button and overview button. - Update the spacing between the status tray area and notification center. - Update the spacing around the app list button. TEST=manual 1. Uses GIMP to measure Shelf Spacing requirements when Shelf is positioned to Left, Right and Bottom in Chrome OS . BUG=595005 Committed: https://crrev.com/20e7d3f385060e0c2de2a86d5dcf81c4c0ca8c8f Cr-Commit-Position: refs/heads/master@{#399792}

Patch Set 1 #

Total comments: 38

Patch Set 2 : address comments & Refactor border around item implementation #

Total comments: 40

Patch Set 3 : Merge #

Total comments: 39

Patch Set 4 : Address comments from @tdanderson #

Total comments: 9

Patch Set 5 : Address comments #

Patch Set 6 : fix tests #

Total comments: 14

Patch Set 7 : Address @jamescook comments #

Total comments: 1

Patch Set 8 : Fix Comments based on @msw comments #

Patch Set 9 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -188 lines) Patch
M ash/common/shelf/shelf_constants.h View 1 2 1 chunk +24 lines, -8 lines 0 comments Download
M ash/common/shelf/shelf_constants.cc View 1 2 2 chunks +13 lines, -3 lines 0 comments Download
M ash/common/system/tray/tray_constants.h View 1 2 3 4 5 6 2 chunks +17 lines, -2 lines 0 comments Download
M ash/common/system/tray/tray_constants.cc View 1 2 3 4 5 6 3 chunks +26 lines, -2 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M ash/shelf/app_list_button.cc View 1 2 3 4 5 6 7 8 3 chunks +36 lines, -13 lines 0 comments Download
M ash/shelf/overflow_bubble_view.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/overflow_button.cc View 1 2 3 4 5 6 7 8 2 chunks +26 lines, -16 lines 0 comments Download
M ash/shelf/shelf_button.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M ash/shelf/shelf_layout_manager.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -14 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 3 4 5 6 7 8 8 chunks +16 lines, -26 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 3 4 5 6 7 8 7 chunks +11 lines, -12 lines 0 comments Download
M ash/shelf/shelf_view.cc View 1 2 3 4 5 6 7 8 4 chunks +10 lines, -9 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M ash/shelf/shelf_widget.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -6 lines 0 comments Download
M ash/system/status_area_widget_delegate.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ash/system/status_area_widget_delegate.cc View 1 2 3 4 5 6 5 chunks +76 lines, -3 lines 0 comments Download
M ash/system/toast/toast_manager_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/tray/tray_background_view.cc View 1 2 3 3 chunks +12 lines, -53 lines 0 comments Download
M ash/system/web_notification/ash_popup_alignment_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M ash/test/shelf_view_test_api.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/apps/chrome_app_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_favicon_loader.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_favicon_loader_browsertest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 57 (24 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1998933002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1998933002/1
4 years, 7 months ago (2016-05-20 05:22:35 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-20 05:59:51 UTC) #5
yiyix
4 years, 7 months ago (2016-05-20 14:48:58 UTC) #7
bruthig
I'll let you update the CL so that the AppLauncher button and StatusTray/Overview target-able bounds ...
4 years, 6 months ago (2016-05-25 20:24:53 UTC) #9
tdanderson
I have a few comments to add below: https://codereview.chromium.org/1998933002/diff/1/ash/shelf/overflow_button.cc File ash/shelf/overflow_button.cc (right): https://codereview.chromium.org/1998933002/diff/1/ash/shelf/overflow_button.cc#newcode98 ash/shelf/overflow_button.cc:98: // ...
4 years, 6 months ago (2016-05-26 22:55:57 UTC) #10
yiyix
https://codereview.chromium.org/1998933002/diff/1/ash/root_window_controller_unittest.cc File ash/root_window_controller_unittest.cc (right): https://codereview.chromium.org/1998933002/diff/1/ash/root_window_controller_unittest.cc#newcode11 ash/root_window_controller_unittest.cc:11: #include "ash/shelf/shelf_constants.h" On 2016/05/25 20:24:52, bruthig wrote: > Is ...
4 years, 6 months ago (2016-06-02 03:54:54 UTC) #11
yiyix
https://codereview.chromium.org/1998933002/diff/20001/ash/system/status_area_widget_delegate.cc File ash/system/status_area_widget_delegate.cc (right): https://codereview.chromium.org/1998933002/diff/20001/ash/system/status_area_widget_delegate.cc#newcode5 ash/system/status_area_widget_delegate.cc:5: #include <iostream> I will delete this line.
4 years, 6 months ago (2016-06-02 15:39:12 UTC) #12
tdanderson
Hi Yi, please see my next round of comments below. Ben is writing up the ...
4 years, 6 months ago (2016-06-03 19:25:24 UTC) #14
bruthig
Discussed offline between yiyix@, tdanderson@, and bruthig@: We are going to try a different approach ...
4 years, 6 months ago (2016-06-03 20:18:17 UTC) #15
tdanderson
https://chromiumcodereview.appspot.com/1998933002/diff/40001/ash/shelf/shelf_constants.cc File ash/shelf/shelf_constants.cc (right): https://chromiumcodereview.appspot.com/1998933002/diff/40001/ash/shelf/shelf_constants.cc#newcode5 ash/shelf/shelf_constants.cc:5: #include "ash/material_design/material_design_controller.h" nit: the corresponding .h should always be ...
4 years, 6 months ago (2016-06-05 21:57:08 UTC) #16
yiyix
https://codereview.chromium.org/1998933002/diff/40001/ash/shelf/app_list_button.cc File ash/shelf/app_list_button.cc (right): https://codereview.chromium.org/1998933002/diff/40001/ash/shelf/app_list_button.cc#newcode133 ash/shelf/app_list_button.cc:133: // SHELF_ALIGHTMENT_RIGHT AND SHELF_ALIGHMENT_LEFT On 2016/06/03 19:25:23, tdanderson wrote: ...
4 years, 6 months ago (2016-06-10 19:26:05 UTC) #17
tdanderson
Hey Yi, it's looking good, but I do have some more comments below (most of ...
4 years, 6 months ago (2016-06-10 22:54:43 UTC) #18
yiyix
https://codereview.chromium.org/1998933002/diff/60001/ash/common/system/tray/tray_constants.h File ash/common/system/tray/tray_constants.h (right): https://codereview.chromium.org/1998933002/diff/60001/ash/common/system/tray/tray_constants.h#newcode27 ash/common/system/tray/tray_constants.h:27: // Padding between icons in the status tray area. ...
4 years, 6 months ago (2016-06-13 18:43:55 UTC) #19
yiyix
https://codereview.chromium.org/1998933002/diff/60001/ash/system/status_area_widget_delegate.cc File ash/system/status_area_widget_delegate.cc (right): https://codereview.chromium.org/1998933002/diff/60001/ash/system/status_area_widget_delegate.cc#newcode136 ash/system/status_area_widget_delegate.cc:136: for (int c = child_count() - 1; c >= ...
4 years, 6 months ago (2016-06-13 18:53:15 UTC) #20
yiyix
4 years, 6 months ago (2016-06-13 18:53:18 UTC) #21
tdanderson
lgtm with the comments below. Please send to jamescook@ for review when you're ready. Note ...
4 years, 6 months ago (2016-06-13 19:02:51 UTC) #22
yiyix
https://codereview.chromium.org/1998933002/diff/80001/ash/common/system/tray/tray_constants.h File ash/common/system/tray/tray_constants.h (right): https://codereview.chromium.org/1998933002/diff/80001/ash/common/system/tray/tray_constants.h#newcode26 ash/common/system/tray/tray_constants.h:26: enum ShelfStatusAreaInset { On 2016/06/13 19:02:51, tdanderson wrote: > ...
4 years, 6 months ago (2016-06-13 19:14:01 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1998933002/100001
4 years, 6 months ago (2016-06-13 19:14:34 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/227725) linux_chromium_gn_chromeos_rel on ...
4 years, 6 months ago (2016-06-13 19:38:40 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1998933002/120001
4 years, 6 months ago (2016-06-13 19:58:14 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-13 21:05:23 UTC) #31
yiyix
@jamescook, could you review the code? thank you very much
4 years, 6 months ago (2016-06-13 21:14:34 UTC) #33
James Cook
LGTM with nits. https://codereview.chromium.org/1998933002/diff/120001/ash/common/system/tray/tray_constants.h File ash/common/system/tray/tray_constants.h (right): https://codereview.chromium.org/1998933002/diff/120001/ash/common/system/tray/tray_constants.h#newcode26 ash/common/system/tray/tray_constants.h:26: enum TrayConstant { nit: blank line ...
4 years, 6 months ago (2016-06-13 21:43:18 UTC) #34
yiyix
msw@chromium.org: Please review changes in chrome? Thanks https://codereview.chromium.org/1998933002/diff/120001/ash/common/system/tray/tray_constants.h File ash/common/system/tray/tray_constants.h (right): https://codereview.chromium.org/1998933002/diff/120001/ash/common/system/tray/tray_constants.h#newcode26 ash/common/system/tray/tray_constants.h:26: enum TrayConstant ...
4 years, 6 months ago (2016-06-14 05:55:27 UTC) #36
yiyix
msw@chromium.org: Please review changes in chrome? Thanks
4 years, 6 months ago (2016-06-14 05:55:31 UTC) #37
msw
chrome/* lgtm with a nit https://codereview.chromium.org/1998933002/diff/140001/chrome/browser/ui/ash/launcher/launcher_favicon_loader.cc File chrome/browser/ui/ash/launcher/launcher_favicon_loader.cc (right): https://codereview.chromium.org/1998933002/diff/140001/chrome/browser/ui/ash/launcher/launcher_favicon_loader.cc#newcode25 chrome/browser/ui/ash/launcher/launcher_favicon_loader.cc:25: // matches ash::ShelfLayoutConstant::SHELF_SIZE. nit: ...
4 years, 6 months ago (2016-06-14 17:03:15 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1998933002/160001
4 years, 6 months ago (2016-06-14 19:08:33 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/218924) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 6 months ago (2016-06-14 19:11:28 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1998933002/180001
4 years, 6 months ago (2016-06-14 19:33:17 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1998933002/180001
4 years, 6 months ago (2016-06-14 21:27:07 UTC) #52
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 6 months ago (2016-06-14 21:49:55 UTC) #54
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-14 21:50:19 UTC) #55
commit-bot: I haz the power
4 years, 6 months ago (2016-06-14 21:52:01 UTC) #57
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/20e7d3f385060e0c2de2a86d5dcf81c4c0ca8c8f
Cr-Commit-Position: refs/heads/master@{#399792}

Powered by Google App Engine
This is Rietveld 408576698