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

Issue 2103113003: Fix shelf layout when switching from left-aligned shelf to right-aligned shelf (Closed)

Created:
4 years, 5 months ago by yiyix
Modified:
4 years, 5 months ago
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

Fix shelf layout when switching from left-aligned shelf to right-aligned shelf Fix the issue that when shelf is switched from left-aligned shelf to right-aligned shelf, the spacing between the edge of the screen to tray items are not changed. TEST=Manuel - change shelf location left to right or right to left. - change shelf location bottom to right or bottom to left. - initialize shelf locating on left or right. BUG=623438 Committed: https://crrev.com/eeee71c610e8e6548b94d3abb180fd53d16a487d Cr-Commit-Position: refs/heads/master@{#403215}

Patch Set 1 #

Total comments: 15

Patch Set 2 : address comments #

Patch Set 3 : Merge #

Total comments: 2

Patch Set 4 : simpler approach #

Total comments: 1

Patch Set 5 : updated approach #

Total comments: 1

Patch Set 6 : using layout #

Patch Set 7 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M ash/common/system/status_area_widget_delegate.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (17 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2103113003/1
4 years, 5 months ago (2016-06-29 04:45:31 UTC) #2
yiyix
4 years, 5 months ago (2016-06-29 04:45:38 UTC) #4
yiyix
On 2016/06/29 04:45:38, yiyix wrote: @tdanderson, Could you take a look at this code change?
4 years, 5 months ago (2016-06-29 04:46:24 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-29 05:51:04 UTC) #8
yiyix
4 years, 5 months ago (2016-06-29 16:24:50 UTC) #10
tdanderson
Looks like a reasonable approach. I've left some comments inline but feel free to send ...
4 years, 5 months ago (2016-06-29 17:46:19 UTC) #11
yiyix
@jamescook, could you please take a look? Thanks https://codereview.chromium.org/2103113003/diff/1/ash/common/system/tray/tray_background_view.h File ash/common/system/tray/tray_background_view.h (right): https://codereview.chromium.org/2103113003/diff/1/ash/common/system/tray/tray_background_view.h#newcode72 ash/common/system/tray/tray_background_view.h:72: // ...
4 years, 5 months ago (2016-06-29 18:56:40 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2103113003/20001
4 years, 5 months ago (2016-06-29 19:07:03 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/28832) ios-simulator on ...
4 years, 5 months ago (2016-06-29 19:11:49 UTC) #17
James Cook
I'm sorry, but I would prefer you find a different way to fix this. In ...
4 years, 5 months ago (2016-06-29 19:34:15 UTC) #18
yiyix
@jamescook, Could you please review this change? Thanks
4 years, 5 months ago (2016-06-29 20:59:40 UTC) #19
James Cook
https://codereview.chromium.org/2103113003/diff/60001/ash/system/status_area_widget_delegate.cc File ash/system/status_area_widget_delegate.cc (right): https://codereview.chromium.org/2103113003/diff/60001/ash/system/status_area_widget_delegate.cc#newcode166 ash/system/status_area_widget_delegate.cc:166: View::InvalidateLayout(); It seems a little weird to call View::Layout() ...
4 years, 5 months ago (2016-06-29 21:23:37 UTC) #20
yiyix
On 2016/06/29 21:23:37, James Cook wrote: > https://codereview.chromium.org/2103113003/diff/60001/ash/system/status_area_widget_delegate.cc > File ash/system/status_area_widget_delegate.cc (right): > > https://codereview.chromium.org/2103113003/diff/60001/ash/system/status_area_widget_delegate.cc#newcode166 ...
4 years, 5 months ago (2016-06-29 22:08:33 UTC) #22
James Cook
LGTM with nit https://codereview.chromium.org/2103113003/diff/100001/ash/system/status_area_widget_delegate.cc File ash/system/status_area_widget_delegate.cc (right): https://codereview.chromium.org/2103113003/diff/100001/ash/system/status_area_widget_delegate.cc#newcode229 ash/system/status_area_widget_delegate.cc:229: // Force layout to update after ...
4 years, 5 months ago (2016-06-29 22:20:35 UTC) #24
yiyix
On 2016/06/29 22:20:35, James Cook wrote: > LGTM with nit > > https://codereview.chromium.org/2103113003/diff/100001/ash/system/status_area_widget_delegate.cc > File ...
4 years, 5 months ago (2016-06-29 23:46:51 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2103113003/120001
4 years, 5 months ago (2016-06-30 00:06:27 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/29108) ios-device-gn on ...
4 years, 5 months ago (2016-06-30 00:10:17 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2103113003/140001
4 years, 5 months ago (2016-06-30 15:57:07 UTC) #31
James Cook
LGTM. Nice fix!
4 years, 5 months ago (2016-06-30 16:14:35 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-30 16:56:02 UTC) #34
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/2103113003/140001
4 years, 5 months ago (2016-06-30 17:40:51 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 5 months ago (2016-06-30 17:46:59 UTC) #38
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 17:47:19 UTC) #39
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 17:49:49 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/eeee71c610e8e6548b94d3abb180fd53d16a487d
Cr-Commit-Position: refs/heads/master@{#403215}

Powered by Google App Engine
This is Rietveld 408576698