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

Issue 2099103002: Give Ash material design tray items the correct size and layout (Closed)

Created:
4 years, 5 months ago by tdanderson
Modified:
4 years, 5 months ago
Reviewers:
James Cook, yiyix
CC:
chromium-reviews, kalyank, sadrul, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Give Ash material design tray items the correct size and layout Modify the size and layout of the items that appear in the material design tray so that they conform to the MD specs (notifications button, system tray, etc.) This CL should only have user-visible changes for material design, which is currently off by default behind the --ash-md flag. This CL also cleans up many constants specified in tray_constants.h. BUG=617295 TEST=manual Committed: https://crrev.com/5ae209e5c9a10d9896b2b9767056f88c4cf93430 Cr-Commit-Position: refs/heads/master@{#402587}

Patch Set 1 #

Patch Set 2 : for review #

Total comments: 14

Patch Set 3 : calculation cleanups #

Patch Set 4 : split shelf and tray constants #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -123 lines) Patch
M ash/common/shelf/shelf_constants.h View 1 2 3 2 chunks +12 lines, -1 line 0 comments Download
M ash/common/shelf/shelf_constants.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ash/common/system/tray/tray_background_view.cc View 2 chunks +10 lines, -9 lines 0 comments Download
M ash/common/system/tray/tray_constants.h View 3 chunks +11 lines, -12 lines 0 comments Download
M ash/common/system/tray/tray_constants.cc View 3 chunks +7 lines, -11 lines 0 comments Download
M ash/common/system/web_notification/web_notification_tray.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ash/shelf/app_list_button.cc View 1 2 3 3 chunks +2 lines, -9 lines 0 comments Download
M ash/shelf/overflow_button.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ash/shelf/overflow_button.cc View 1 2 3 3 chunks +10 lines, -12 lines 0 comments Download
M ash/system/chromeos/session/logout_button_tray.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc View 1 2 3 1 chunk +10 lines, -13 lines 0 comments Download
M ash/system/overview/overview_button_tray.cc View 1 2 3 2 chunks +16 lines, -6 lines 0 comments Download
M ash/system/status_area_widget_delegate.cc View 2 chunks +20 lines, -32 lines 0 comments Download
M ash/system/user/tray_user.cc View 1 2 3 5 chunks +9 lines, -9 lines 0 comments Download
M ash/system/user/user_card_view.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ash/system/user/user_view.cc View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
tdanderson
James and Yi, can you please take a look?
4 years, 5 months ago (2016-06-27 00:56:38 UTC) #2
James Cook
https://codereview.chromium.org/2099103002/diff/20001/ash/shelf/app_list_button.cc File ash/shelf/app_list_button.cc (right): https://codereview.chromium.org/2099103002/diff/20001/ash/shelf/app_list_button.cc#newcode144 ash/shelf/app_list_button.cc:144: const int kRadius = kTrayItemSize / 2; nit: elsewhere ...
4 years, 5 months ago (2016-06-27 18:04:12 UTC) #3
yiyix
https://codereview.chromium.org/2099103002/diff/20001/ash/common/system/tray/tray_constants.cc File ash/common/system/tray/tray_constants.cc (right): https://codereview.chromium.org/2099103002/diff/20001/ash/common/system/tray/tray_constants.cc#newcode94 ash/common/system/tray/tray_constants.cc:94: return kTrayItemHeightLegacy[mode]; Is it the idea that we will ...
4 years, 5 months ago (2016-06-27 18:39:43 UTC) #4
tdanderson
Thanks for the comments. Can you please take another look? https://codereview.chromium.org/2099103002/diff/20001/ash/common/system/tray/tray_constants.cc File ash/common/system/tray/tray_constants.cc (right): https://codereview.chromium.org/2099103002/diff/20001/ash/common/system/tray/tray_constants.cc#newcode94 ...
4 years, 5 months ago (2016-06-27 21:29:43 UTC) #5
James Cook
https://codereview.chromium.org/2099103002/diff/20001/ash/shelf/overflow_button.cc File ash/shelf/overflow_button.cc (right): https://codereview.chromium.org/2099103002/diff/20001/ash/shelf/overflow_button.cc#newcode146 ash/shelf/overflow_button.cc:146: bounds = gfx::Rect((bounds.x() + (bounds.width() - kTrayItemSize) / 2), ...
4 years, 5 months ago (2016-06-27 22:53:21 UTC) #6
yiyix
LGTM
4 years, 5 months ago (2016-06-28 15:56:31 UTC) #7
tdanderson
James, please take a look https://codereview.chromium.org/2099103002/diff/20001/ash/shelf/overflow_button.cc File ash/shelf/overflow_button.cc (right): https://codereview.chromium.org/2099103002/diff/20001/ash/shelf/overflow_button.cc#newcode146 ash/shelf/overflow_button.cc:146: bounds = gfx::Rect((bounds.x() + ...
4 years, 5 months ago (2016-06-28 16:32:44 UTC) #8
James Cook
LGTM
4 years, 5 months ago (2016-06-28 17:25:17 UTC) #9
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/2099103002/60001
4 years, 5 months ago (2016-06-28 17:32:07 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/253958)
4 years, 5 months ago (2016-06-28 19:44:20 UTC) #14
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/2099103002/60001
4 years, 5 months ago (2016-06-28 19:49:38 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/254090)
4 years, 5 months ago (2016-06-28 20:04:31 UTC) #18
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/2099103002/60001
4 years, 5 months ago (2016-06-28 20:06:34 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-06-28 23:14:11 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 23:15:56 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5ae209e5c9a10d9896b2b9767056f88c4cf93430
Cr-Commit-Position: refs/heads/master@{#402587}

Powered by Google App Engine
This is Rietveld 408576698