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

Issue 2329633003: Implement progress bar spec (determinate and indeterminate). (Closed)

Created:
4 years, 3 months ago by Evan Stade
Modified:
4 years, 3 months ago
Reviewers:
tdanderson, sky
CC:
chromium-reviews, asanka, Matt Giuca, Peter Beverloo, tfarina, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement progress bar spec (determinate and indeterminate). This takes the implementation from the notification center (used for downloads) and moves it into views::. The color is updated as per sgabriel's orders to Blue 500, a default height of 5 is applied (shared in app list and notification center) but lesser heights are also permitted. If the height is small enough, we don't round the corners, which is exactly what we'll want for the cros detail views. The base views::ProgressBar class was not used on its own anywhere, and it had a lot of code that wasn't used either. All the progress bar classes are consolidated into a single class and unused code is culled. BUG=626846 Committed: https://crrev.com/a62b6b27f42e7259f7d3884184dce068de18b756 Cr-Commit-Position: refs/heads/master@{#418676}

Patch Set 1 #

Patch Set 2 : better example code #

Total comments: 6

Patch Set 3 : streamline #

Patch Set 4 : AutoclickRingHandler #

Patch Set 5 : self review #

Total comments: 12

Patch Set 6 : sky review #

Total comments: 4

Patch Set 7 : 2 more minor changes #

Patch Set 8 : fix app list test #

Patch Set 9 : attempt to unbreak mac and unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -754 lines) Patch
M ash/autoclick/common/autoclick_ring_handler.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/download/notification/download_item_notification.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/status_bubble_views.cc View 1 2 3 4 5 2 chunks +4 lines, -6 lines 0 comments Download
M ui/app_list/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/app_list/resources/app_list_resources.grd View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
D ui/app_list/resources/default_100_percent/common/app_list_progress_bar_background.png View 1 2 Binary file 0 comments Download
D ui/app_list/resources/default_100_percent/common/app_list_progress_bar_center.png View 1 2 Binary file 0 comments Download
D ui/app_list/resources/default_100_percent/common/app_list_progress_bar_left.png View 1 2 Binary file 0 comments Download
D ui/app_list/resources/default_100_percent/common/app_list_progress_bar_right.png View 1 2 Binary file 0 comments Download
D ui/app_list/resources/default_200_percent/common/app_list_progress_bar_background.png View 1 2 Binary file 0 comments Download
D ui/app_list/resources/default_200_percent/common/app_list_progress_bar_center.png View 1 2 Binary file 0 comments Download
D ui/app_list/resources/default_200_percent/common/app_list_progress_bar_left.png View 1 2 Binary file 0 comments Download
D ui/app_list/resources/default_200_percent/common/app_list_progress_bar_right.png View 1 2 Binary file 0 comments Download
M ui/app_list/views/app_list_item_view.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/app_list/views/app_list_item_view.cc View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
D ui/app_list/views/progress_bar_view.h View 1 chunk +0 lines, -38 lines 0 comments Download
D ui/app_list/views/progress_bar_view.cc View 1 chunk +0 lines, -62 lines 0 comments Download
M ui/app_list/views/search_result_list_view_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M ui/app_list/views/search_result_view.h View 3 chunks +2 lines, -2 lines 0 comments Download
M ui/app_list/views/search_result_view.cc View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M ui/gfx/animation/animation_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M ui/gfx/animation/linear_animation.h View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M ui/gfx/animation/linear_animation.cc View 1 2 3 4 5 1 chunk +2 lines, -8 lines 0 comments Download
M ui/gfx/animation/slide_animation.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M ui/message_center/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/message_center/message_center_style.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
D ui/message_center/views/notification_progress_bar.h View 1 chunk +0 lines, -64 lines 0 comments Download
D ui/message_center/views/notification_progress_bar.cc View 1 chunk +0 lines, -185 lines 0 comments Download
M ui/message_center/views/notification_view.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M ui/message_center/views/notification_view.cc View 1 2 3 4 6 chunks +18 lines, -42 lines 0 comments Download
M ui/views/controls/progress_bar.h View 1 2 3 4 5 6 1 chunk +34 lines, -32 lines 0 comments Download
M ui/views/controls/progress_bar.cc View 1 2 3 4 5 1 chunk +149 lines, -259 lines 0 comments Download
M ui/views/controls/progress_bar_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -12 lines 0 comments Download
M ui/views/examples/progress_bar_example.cc View 1 2 3 4 5 3 chunks +26 lines, -14 lines 0 comments Download

Messages

Total messages: 40 (25 generated)
Evan Stade
This code is pretty much ready to go but I think we should wait for ...
4 years, 3 months ago (2016-09-10 02:09:41 UTC) #2
tdanderson
lg with a couple of comments and a question below: https://chromiumcodereview.appspot.com/2329633003/diff/20001/ui/gfx/animation/linear_animation.h File ui/gfx/animation/linear_animation.h (right): https://chromiumcodereview.appspot.com/2329633003/diff/20001/ui/gfx/animation/linear_animation.h#newcode28 ...
4 years, 3 months ago (2016-09-12 17:11:14 UTC) #7
Evan Stade
+sky lots of changes in this patch, both to streamline and to update appearance as ...
4 years, 3 months ago (2016-09-13 02:05:14 UTC) #10
sky
https://codereview.chromium.org/2329633003/diff/80001/ui/gfx/animation/linear_animation.h File ui/gfx/animation/linear_animation.h (right): https://codereview.chromium.org/2329633003/diff/80001/ui/gfx/animation/linear_animation.h#newcode28 ui/gfx/animation/linear_animation.h:28: explicit LinearAnimation(AnimationDelegate* delegate); How about the following as the ...
4 years, 3 months ago (2016-09-13 02:30:08 UTC) #11
Evan Stade
https://codereview.chromium.org/2329633003/diff/80001/ui/gfx/animation/linear_animation.h File ui/gfx/animation/linear_animation.h (right): https://codereview.chromium.org/2329633003/diff/80001/ui/gfx/animation/linear_animation.h#newcode28 ui/gfx/animation/linear_animation.h:28: explicit LinearAnimation(AnimationDelegate* delegate); On 2016/09/13 02:30:08, sky wrote: > ...
4 years, 3 months ago (2016-09-13 15:45:40 UTC) #12
sky
LGTM https://codereview.chromium.org/2329633003/diff/100001/ui/gfx/animation/linear_animation.h File ui/gfx/animation/linear_animation.h (right): https://codereview.chromium.org/2329633003/diff/100001/ui/gfx/animation/linear_animation.h#newcode29 ui/gfx/animation/linear_animation.h:29: LinearAnimation(AnimationDelegate* delegate, As the second parameter is optional ...
4 years, 3 months ago (2016-09-13 19:22:15 UTC) #17
tdanderson
lgtm also
4 years, 3 months ago (2016-09-13 19:28:09 UTC) #18
Evan Stade
https://codereview.chromium.org/2329633003/diff/100001/ui/gfx/animation/linear_animation.h File ui/gfx/animation/linear_animation.h (right): https://codereview.chromium.org/2329633003/diff/100001/ui/gfx/animation/linear_animation.h#newcode29 ui/gfx/animation/linear_animation.h:29: LinearAnimation(AnimationDelegate* delegate, On 2016/09/13 19:22:15, sky wrote: > As ...
4 years, 3 months ago (2016-09-13 22:01:24 UTC) #21
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/2329633003/120001
4 years, 3 months ago (2016-09-13 22:02:25 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/262474) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 3 months ago (2016-09-13 22:18:52 UTC) #24
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/2329633003/140001
4 years, 3 months ago (2016-09-14 00:00:02 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/295750)
4 years, 3 months ago (2016-09-14 00:22:21 UTC) #29
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/2329633003/160001
4 years, 3 months ago (2016-09-14 21:10:28 UTC) #36
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 3 months ago (2016-09-14 21:16:41 UTC) #38
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 21:18:34 UTC) #40
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/a62b6b27f42e7259f7d3884184dce068de18b756
Cr-Commit-Position: refs/heads/master@{#418676}

Powered by Google App Engine
This is Rietveld 408576698