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

Issue 2727073002: Preliminary cleanup of ShelfButton activity/status indicator. (Closed)

Created:
3 years, 9 months ago by Evan Stade
Modified:
3 years, 9 months ago
Reviewers:
Daniel Erat
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Preliminary cleanup of ShelfButton activity/status indicator. This used to be a bar. A lot of the code for it is overly complicated because of that assumption, which is no longer true. This refactors and simplifies for the current visuals (a dot). It also changes the code to draw the circle at the correct scale factor instead of drawing it at a scale factor of 5 then downscaling it, which will be necessary to add the desired 1px border. BUG=670970 Review-Url: https://codereview.chromium.org/2727073002 Cr-Commit-Position: refs/heads/master@{#454178} Committed: https://chromium.googlesource.com/chromium/src/+/db8636d2cf1ba306fb968a3717daf08437ca0f34

Patch Set 1 #

Patch Set 2 : fix animation #

Patch Set 3 : simplify animations #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -156 lines) Patch
M ash/common/shelf/shelf_button.h View 2 chunks +4 lines, -6 lines 0 comments Download
M ash/common/shelf/shelf_button.cc View 1 2 3 14 chunks +75 lines, -150 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
Evan Stade
3 years, 9 months ago (2017-03-02 00:44:56 UTC) #2
Evan Stade
-tdanderson, +derat since he has a little more context on this after our brief convo.
3 years, 9 months ago (2017-03-02 01:14:50 UTC) #4
Daniel Erat
lgtm yay, i guess this code didn't have any tests so none need to be ...
3 years, 9 months ago (2017-03-02 01:23:02 UTC) #9
Evan Stade
On 2017/03/02 01:23:02, Daniel Erat wrote: > lgtm > > yay, i guess this code ...
3 years, 9 months ago (2017-03-02 01:39:02 UTC) #11
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/2727073002/40001
3 years, 9 months ago (2017-03-02 01:39:59 UTC) #13
commit-bot: I haz the power
Failed to apply patch for ash/common/shelf/shelf_button.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 9 months ago (2017-03-02 01:57:32 UTC) #15
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/2727073002/60001
3 years, 9 months ago (2017-03-02 03:23:53 UTC) #18
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 04:26:53 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/db8636d2cf1ba306fb968a3717da...

Powered by Google App Engine
This is Rietveld 408576698