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

Issue 2586643002: [Downloads] Add a horizontal material-styled ProgressBar (Closed)

Created:
4 years ago by gone
Modified:
4 years ago
Reviewers:
Ian Wen
CC:
chromium-reviews, asanka, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Downloads] Add a horizontal material-styled ProgressBar The support library's ProgressBar doesn't support JB or KK, and the ToolbarProgressBar doesn't support JB. In the tradition of re-inventing the wheel, introduce a ProgressBar that is styled according to Material Design that works on all versions of Android that Clank supports. * Introduce the MaterialProgressBar, which mimics the Material Design spec on how horizontal progress bars are supposed to look for both determinate and indeterminate modes. * Switch DownloadItemView and SpaceDisplay to use the newfangled widget, then nuke unnecessary styling. * Delete old, unused, experimental ProgressBars. Video: https://drive.google.com/a/chromium.org/file/d/0B8k2SmEN8xS3ZGtzU3FxMGFMWlU/view?usp=sharing BUG=658246 Committed: https://crrev.com/afb0abd44f95e654b68553097db825e4771b2cfa Cr-Commit-Position: refs/heads/master@{#440287}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Get rid of specialized throbber color #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -318 lines) Patch
D chrome/android/java/res/drawable/material_progressbar.xml View 1 chunk +0 lines, -30 lines 0 comments Download
M chrome/android/java/res/layout/download_item_view.xml View 1 chunk +5 lines, -3 lines 2 comments Download
M chrome/android/java/res/layout/download_manager_ui_space_widget.xml View 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/android/java/res/values-v17/styles.xml View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/android/java/res/values/attrs.xml View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/android/java/res/values/colors.xml View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadItemView.java View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ui/SpaceDisplay.java View 4 chunks +3 lines, -3 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/widget/MaterialProgressBar.java View 1 1 chunk +243 lines, -0 lines 2 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/widget/SlowedProgressBar.java View 1 chunk +0 lines, -109 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/widget/SmoothProgressBar.java View 1 chunk +0 lines, -154 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
gone
4 years ago (2016-12-17 02:15:09 UTC) #2
gone
Ian: Just sending this out before I forget; don't look at it yet. Still need ...
4 years ago (2016-12-17 02:17:23 UTC) #3
gone
Welp, I can't even test on JB because my local builds refuse to run on ...
4 years ago (2016-12-19 22:55:44 UTC) #4
Ian Wen
Looks good overall. Wish we could drop the support for determinate progress bar. https://codereview.chromium.org/2586643002/diff/1/chrome/android/java/res/values/attrs.xml File ...
4 years ago (2016-12-20 23:17:58 UTC) #5
gone
https://codereview.chromium.org/2586643002/diff/1/chrome/android/java/res/values/attrs.xml File chrome/android/java/res/values/attrs.xml (right): https://codereview.chromium.org/2586643002/diff/1/chrome/android/java/res/values/attrs.xml#newcode64 chrome/android/java/res/values/attrs.xml:64: <attr name="colorThrobber" format="reference|color" /> On 2016/12/20 23:17:58, Ian Wen ...
4 years ago (2016-12-21 00:54:24 UTC) #6
Ian Wen
lgtm https://codereview.chromium.org/2586643002/diff/20001/chrome/android/java/res/layout/download_item_view.xml File chrome/android/java/res/layout/download_item_view.xml (right): https://codereview.chromium.org/2586643002/diff/20001/chrome/android/java/res/layout/download_item_view.xml#newcode108 chrome/android/java/res/layout/download_item_view.xml:108: chrome:colorBackground="@color/google_grey_400" Up to you, optional, nit: Maybe we ...
4 years ago (2016-12-21 23:17:27 UTC) #11
gone
Going to submit this to get some builds to test with, but can revisit after ...
4 years ago (2016-12-22 00:58:38 UTC) #12
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/2586643002/20001
4 years ago (2016-12-22 00:59:05 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-22 01:04:29 UTC) #17
commit-bot: I haz the power
4 years ago (2016-12-22 01:09:51 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/afb0abd44f95e654b68553097db825e4771b2cfa
Cr-Commit-Position: refs/heads/master@{#440287}

Powered by Google App Engine
This is Rietveld 408576698