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

Issue 2758313002: Implement the new Photo picker, part two. (Closed)

Created:
3 years, 9 months ago by Finnur
Modified:
3 years, 8 months ago
Reviewers:
Ted C, Theresa
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement the new Photo picker, part two. This replaces the "Not implemented" Toast with a fully working dialog, except the images used are all placeholder gray tiles (instead of actual decoded images). BUG=656015 Review-Url: https://codereview.chromium.org/2758313002 Cr-Commit-Position: refs/heads/master@{#463133} Committed: https://chromium.googlesource.com/chromium/src/+/67f22396e43ea69024f3f158bfcd5ec411042dee

Patch Set 1 #

Patch Set 2 : RemoveDecoder #

Patch Set 3 : Resolve findbugs #

Patch Set 4 : Polish #

Total comments: 34

Patch Set 5 : Address feedback #

Patch Set 6 : Fix scrim color #

Total comments: 89

Patch Set 7 : Address feedback #

Patch Set 8 : Trim changelist #

Total comments: 48

Patch Set 9 : Address feedback #

Total comments: 43

Patch Set 10 : Address remaining feedback #

Patch Set 11 : Address Theresa's feedback #

Total comments: 8

Patch Set 12 : Address Theresa's feedback #

Total comments: 10

Patch Set 13 : Address Theresa's feedback #

Total comments: 8

Patch Set 14 : Last bit of comments #

Patch Set 15 : Fix build #

Total comments: 22

Patch Set 16 : Address Ted's comments (and sync to latest) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+911 lines, -6 lines) Patch
A chrome/android/java/res/layout/photo_picker_bitmap_view.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/android/java/res/layout/photo_picker_dialog.xml View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/android/java/res/layout/photo_picker_toolbar.xml View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/android/java/res/menu/photo_picker_menu.xml View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/android/java/res/values/colors.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +9 lines, -1 line 0 comments Download
M chrome/android/java/res/values/dimens.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/init/ProcessInitializationHandler.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +9 lines, -4 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PhotoPickerDialog.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PhotoPickerToolbar.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerAdapter.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmap.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +76 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +241 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapViewHolder.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +101 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerCategoryView.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +229 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +7 lines, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/PhotoPickerListener.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M ui/android/java/strings/android_ui_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 92 (55 generated)
Finnur
3 years, 9 months ago (2017-03-20 17:15:14 UTC) #4
Finnur
Looks a bit daunting, but about two-thirds of the files are png, xml and string ...
3 years, 9 months ago (2017-03-20 17:15:57 UTC) #5
Finnur
Looks like Michael is out today; was going to have him do an initial pass ...
3 years, 9 months ago (2017-03-21 14:23:13 UTC) #15
Theresa
From a very high-level, what's the reason(s) that the photo picker isn't using the SelectableListLayout ...
3 years, 9 months ago (2017-03-21 15:37:00 UTC) #18
Theresa
On 2017/03/20 17:15:57, Finnur wrote: > Looks a bit daunting, but about two-thirds of the ...
3 years, 9 months ago (2017-03-21 15:45:32 UTC) #19
Finnur
I haven't updated the code, just wanted to have a round of discussion before deciding ...
3 years, 9 months ago (2017-03-23 14:56:01 UTC) #20
Theresa
On 2017/03/23 14:56:01, Finnur wrote: > I haven't updated the code, just wanted to have ...
3 years, 9 months ago (2017-03-23 15:37:25 UTC) #21
Finnur
I've taken all your comments into consideration, I believe, and adapted the SelectableListLayout. I've also ...
3 years, 9 months ago (2017-03-27 16:24:01 UTC) #31
Finnur
Now with comments. https://codereview.chromium.org/2758313002/diff/60001/chrome/android/java/res/drawable/file_picker_scrim.xml File chrome/android/java/res/drawable/file_picker_scrim.xml (right): https://codereview.chromium.org/2758313002/diff/60001/chrome/android/java/res/drawable/file_picker_scrim.xml#newcode1 chrome/android/java/res/drawable/file_picker_scrim.xml:1: <?xml version="1.0" encoding="utf-8"?> On 2017/03/21 15:36:59, ...
3 years, 9 months ago (2017-03-27 16:50:42 UTC) #33
Theresa
I got through a rough first pass. This is patch is HUGE, though, and as ...
3 years, 8 months ago (2017-03-28 20:40:29 UTC) #37
Finnur
No code update, just a question. And sorry about the size of the CL. I'd ...
3 years, 8 months ago (2017-03-30 16:33:04 UTC) #38
Theresa
On 2017/03/30 16:33:04, Finnur wrote: > No code update, just a question. > > And ...
3 years, 8 months ago (2017-03-30 16:55:51 UTC) #39
Finnur
This is a code update, but does not yet address the size of the CL. ...
3 years, 8 months ago (2017-03-31 14:26:50 UTC) #40
Finnur
OK, I've trimmed away a bunch of stuff. Hopefully it is more manageable now. PTAL.
3 years, 8 months ago (2017-03-31 16:07:09 UTC) #41
Finnur
On 2017/03/31 16:07:09, Finnur wrote: > OK, I've trimmed away a bunch of stuff. Hopefully ...
3 years, 8 months ago (2017-03-31 16:08:07 UTC) #42
Theresa
Thank you for splitting this up! Please run "tools/resources/optimize-png-files.sh -o2" on the new assets if ...
3 years, 8 months ago (2017-03-31 18:05:56 UTC) #43
Finnur
I'll make a pass at removing the image assets. My first attempt was unsuccessful (it ...
3 years, 8 months ago (2017-04-03 17:30:30 UTC) #44
Theresa
https://codereview.chromium.org/2758313002/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java File chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java (right): https://codereview.chromium.org/2758313002/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java#newcode163 chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java:163: int size = mCategoryView.getImageSize(); On 2017/04/03 17:30:29, Finnur wrote: ...
3 years, 8 months ago (2017-04-04 15:48:34 UTC) #45
Finnur
PTAL. https://codereview.chromium.org/2758313002/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java File chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java (right): https://codereview.chromium.org/2758313002/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java#newcode163 chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java:163: int size = mCategoryView.getImageSize(); I've introduced the vector ...
3 years, 8 months ago (2017-04-04 18:05:38 UTC) #46
Theresa
This is getting close! https://codereview.chromium.org/2758313002/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java File chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java (right): https://codereview.chromium.org/2758313002/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java#newcode163 chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java:163: int size = mCategoryView.getImageSize(); On ...
3 years, 8 months ago (2017-04-04 18:40:46 UTC) #47
Finnur
> This is getting close! Woot! :) https://codereview.chromium.org/2758313002/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java File chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java (right): https://codereview.chromium.org/2758313002/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java#newcode163 chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java:163: int size ...
3 years, 8 months ago (2017-04-05 15:14:39 UTC) #48
Theresa
These should be the last of the nits/comments :) https://codereview.chromium.org/2758313002/diff/300001/chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java File chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java (right): https://codereview.chromium.org/2758313002/diff/300001/chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java#newcode171 chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java:171: ...
3 years, 8 months ago (2017-04-05 15:48:24 UTC) #49
Theresa
Another quick thought, it looks like file_picker_scrim.xml, file_picker_selected_background.xml and bitmap_list_row.xml aren't used in this patch. ...
3 years, 8 months ago (2017-04-05 16:13:41 UTC) #50
Finnur
> Should we wait and commit them with the next CL? Absolutely. All comments addressed, ...
3 years, 8 months ago (2017-04-06 13:22:04 UTC) #53
Theresa
lgtm https://codereview.chromium.org/2758313002/diff/340001/chrome/android/java/res/drawable/circle_white.xml File chrome/android/java/res/drawable/circle_white.xml (right): https://codereview.chromium.org/2758313002/diff/340001/chrome/android/java/res/drawable/circle_white.xml#newcode2 chrome/android/java/res/drawable/circle_white.xml:2: <!-- Copyright 2017 The Chromium Authors. All rights ...
3 years, 8 months ago (2017-04-06 15:13:52 UTC) #56
Theresa
https://codereview.chromium.org/2758313002/diff/340001/chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java File chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java (right): https://codereview.chromium.org/2758313002/diff/340001/chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java#newcode203 chrome/android/java/src/org/chromium/chrome/browser/photo_picker/PickerBitmapView.java:203: boolean checked = super.isChecked(); nit: findbugs reported a deadstore ...
3 years, 8 months ago (2017-04-06 15:15:29 UTC) #57
Finnur
Thanks, Theresa. Ted, mind providing an OWNERS check?
3 years, 8 months ago (2017-04-06 15:46:29 UTC) #62
Finnur
Forgot to publish my comments... https://codereview.chromium.org/2758313002/diff/340001/chrome/android/java/res/drawable/circle_white.xml File chrome/android/java/res/drawable/circle_white.xml (right): https://codereview.chromium.org/2758313002/diff/340001/chrome/android/java/res/drawable/circle_white.xml#newcode2 chrome/android/java/res/drawable/circle_white.xml:2: <!-- Copyright 2017 The ...
3 years, 8 months ago (2017-04-06 15:46:47 UTC) #63
Finnur
Fixed compile error due to file rename. (Failed on bots but worked locally because the ...
3 years, 8 months ago (2017-04-06 17:43:07 UTC) #68
Ted C
https://codereview.chromium.org/2758313002/diff/380001/chrome/android/java/src/org/chromium/chrome/browser/init/ProcessInitializationHandler.java File chrome/android/java/src/org/chromium/chrome/browser/init/ProcessInitializationHandler.java (right): https://codereview.chromium.org/2758313002/diff/380001/chrome/android/java/src/org/chromium/chrome/browser/init/ProcessInitializationHandler.java#newcode63 chrome/android/java/src/org/chromium/chrome/browser/init/ProcessInitializationHandler.java:63: private PhotoPickerDialog mDialog; will this ever need to be ...
3 years, 8 months ago (2017-04-06 23:52:15 UTC) #71
Finnur
PTAL. If it meets your bar, feel free to check the CQ box after giving ...
3 years, 8 months ago (2017-04-07 13:52:21 UTC) #76
Finnur
Note: The try bot errors are not isolated to this patch... See: https://bugs.chromium.org/p/chromium/issues/detail?id=709459
3 years, 8 months ago (2017-04-07 13:55:45 UTC) #79
Finnur
Woot! Bot errors have cleared up (as evident above). Would really appreciate if you find ...
3 years, 8 months ago (2017-04-08 00:12:01 UTC) #84
Ted C
baaah...I had a window open with an lgtm from hours and hours ago. Sigh. LGTM!!!
3 years, 8 months ago (2017-04-08 00:43:15 UTC) #85
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/2758313002/440001
3 years, 8 months ago (2017-04-08 13:42:05 UTC) #88
Finnur
No harm, no foul. Just happy to see this go in before EOD Sunday, so ...
3 years, 8 months ago (2017-04-08 13:43:06 UTC) #89
commit-bot: I haz the power
3 years, 8 months ago (2017-04-08 13:46:55 UTC) #92
Message was sent while issue was closed.
Committed patchset #16 (id:440001) as
https://chromium.googlesource.com/chromium/src/+/67f22396e43ea69024f3f158bfcd...

Powered by Google App Engine
This is Rietveld 408576698