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

Issue 2701253006: Download Home : Suggested pages header selection (Closed)

Created:
3 years, 10 months ago by shaktisahu
Modified:
3 years, 9 months ago
Reviewers:
Theresa, gone
CC:
chromium-reviews, asanka, dewittj+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, agrieve+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Download Home : Suggested pages header selection This CL enables user to select the suggested page section header. Details: - Long press enables selection mode. Tap during selection will toggle the selection, but doesn't expand/collapse the items. - Selecting the header internally selects all the related items. - If all the items are selected manually, the header gets selected automatically. - Deselecting any item will deselect the corresponding header if previously selected. - The badging at the top reflects the number of items currently selected excluding the headers. - When selected, the chrome logo on the header turns into tick mark similar to rest of the items. - In presence of search text, headers are not displayed (no grouping), but once the text is cleared out, the headers will be back in. TODO: Hide the date headers when there is an active search. BUG=689801 Review-Url: https://codereview.chromium.org/2701253006 Cr-Commit-Position: refs/heads/master@{#456001} Committed: https://chromium.googlesource.com/chromium/src/+/ba3f171d0f3e4300341ba8a719f4f98f61af0165

Patch Set 1 #

Patch Set 2 : talo@ feedback #

Total comments: 11

Patch Set 3 : More refactor #

Total comments: 26

Patch Set 4 : nits and fixed background color #

Total comments: 7

Patch Set 5 : nits #

Total comments: 3

Patch Set 6 : Introduced SubsectionHeaderSelectionObserver #

Total comments: 3

Patch Set 7 : nits #

Total comments: 1

Patch Set 8 : rebase #

Patch Set 9 : Fixed tests #

Messages

Total messages: 44 (20 generated)
shaktisahu
PTAL. The CL is almost ready. Would like some feedback on the SelectionDelegate subclassing. (see ...
3 years, 9 months ago (2017-03-02 19:26:24 UTC) #5
Theresa
Would a setup like this work: 1. OfflineGroupHeaderView extends SelectableItemView so that it can re-use ...
3 years, 9 months ago (2017-03-03 18:35:50 UTC) #6
shaktisahu
On 2017/03/03 18:35:50, Theresa wrote: > Would a setup like this work: > > 1. ...
3 years, 9 months ago (2017-03-03 23:30:09 UTC) #7
shaktisahu
I moved DownloadItemSelectionDelegate to a separate file which would be created during the construction of ...
3 years, 9 months ago (2017-03-04 03:56:09 UTC) #11
Theresa
Thank you for splitting the DonwloadItemSelectionDelegate into a separate class -- this feels much better! ...
3 years, 9 months ago (2017-03-06 17:10:25 UTC) #12
gone
Can you upload a movie of this in action? I'd normally ask for screenshots for ...
3 years, 9 months ago (2017-03-07 21:10:29 UTC) #13
shaktisahu
On 2017/03/07 21:10:29, dfalcantara (load balance plz) wrote: > Can you upload a movie of ...
3 years, 9 months ago (2017-03-07 21:48:14 UTC) #14
gone
On 2017/03/07 21:48:14, shaktisahu wrote: > On 2017/03/07 21:10:29, dfalcantara (load balance plz) wrote: > ...
3 years, 9 months ago (2017-03-07 22:44:36 UTC) #15
gone
https://codereview.chromium.org/2701253006/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java File chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java (right): https://codereview.chromium.org/2701253006/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java#newcode67 chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java:67: public class SubsectionHeader extends TimedItem { Does this class ...
3 years, 9 months ago (2017-03-07 23:55:17 UTC) #16
shaktisahu
Fixed the background color issue. PTAL https://codereview.chromium.org/2701253006/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java File chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java (right): https://codereview.chromium.org/2701253006/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java#newcode67 chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java:67: public class SubsectionHeader ...
3 years, 9 months ago (2017-03-08 02:35:31 UTC) #17
shaktisahu
On 2017/03/08 02:35:31, shaktisahu wrote: > Fixed the background color issue. PTAL > > https://codereview.chromium.org/2701253006/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java ...
3 years, 9 months ago (2017-03-08 07:09:26 UTC) #18
Theresa
Just a few nits -- this is really close https://codereview.chromium.org/2701253006/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadItemSelectionDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadItemSelectionDelegate.java (right): https://codereview.chromium.org/2701253006/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadItemSelectionDelegate.java#newcode61 chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadItemSelectionDelegate.java:61: ...
3 years, 9 months ago (2017-03-08 16:08:17 UTC) #19
gone
https://codereview.chromium.org/2701253006/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java File chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java (right): https://codereview.chromium.org/2701253006/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java#newcode497 chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java:497: // into subsections and shown directly. the suggested offline ...
3 years, 9 months ago (2017-03-08 22:20:33 UTC) #22
shaktisahu
Thanks for all the comments. There was an issue with the header not getting selected ...
3 years, 9 months ago (2017-03-09 06:03:33 UTC) #23
Theresa
lgtm % nits https://codereview.chromium.org/2701253006/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java File chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java (right): https://codereview.chromium.org/2701253006/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java#newcode279 chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java:279: public Map<Date, SubsectionHeader> getSubsectionHeaders() { nit: ...
3 years, 9 months ago (2017-03-09 18:23:19 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/2701253006/220001
3 years, 9 months ago (2017-03-09 19:06:07 UTC) #27
gone
On 2017/03/09 19:06:07, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
3 years, 9 months ago (2017-03-09 19:10:30 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/382171)
3 years, 9 months ago (2017-03-09 19:16:33 UTC) #30
shaktisahu
On 2017/03/09 19:10:30, dfalcantara (load balance plz) wrote: > On 2017/03/09 19:06:07, commit-bot: I haz ...
3 years, 9 months ago (2017-03-09 19:26:22 UTC) #31
gone
On 2017/03/09 19:26:22, shaktisahu wrote: > On 2017/03/09 19:10:30, dfalcantara (load balance plz) wrote: > ...
3 years, 9 months ago (2017-03-09 19:28:17 UTC) #32
gone
On 2017/03/09 19:26:22, shaktisahu wrote: > On 2017/03/09 19:10:30, dfalcantara (load balance plz) wrote: > ...
3 years, 9 months ago (2017-03-09 19:28:25 UTC) #33
gone
lgtm, but the tests are broken https://codereview.chromium.org/2701253006/diff/220001/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadItemSelectionDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadItemSelectionDelegate.java (right): https://codereview.chromium.org/2701253006/diff/220001/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadItemSelectionDelegate.java#newcode50 chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadItemSelectionDelegate.java:50: public void initialize(DownloadHistoryAdapter ...
3 years, 9 months ago (2017-03-10 01:38:07 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/2701253006/260001
3 years, 9 months ago (2017-03-10 05:16:18 UTC) #41
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 05:22:41 UTC) #44
Message was sent while issue was closed.
Committed patchset #9 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/ba3f171d0f3e4300341ba8a719f4...

Powered by Google App Engine
This is Rietveld 408576698