Implement the new Photo picker, part two

Desktop / Chromium - finnur [chromium.org] - 8 April 2017 09:46 EDT

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}

67f2239 Implement the new Photo picker, part two.
.../java/res/layout/photo_picker_bitmap_view.xml | 43 ++++
.../java/res/layout/photo_picker_dialog.xml | 11 +
.../java/res/layout/photo_picker_toolbar.xml | 14 ++
chrome/android/java/res/menu/photo_picker_menu.xml | 24 ++
chrome/android/java/res/values/colors.xml | 10 +-
chrome/android/java/res/values/dimens.xml | 7 +
.../browser/init/ProcessInitializationHandler.java | 13 +-
.../browser/photo_picker/PhotoPickerDialog.java | 49 +++++
.../browser/photo_picker/PhotoPickerToolbar.java | 21 ++
.../chrome/browser/photo_picker/PickerAdapter.java | 53 +++++
.../chrome/browser/photo_picker/PickerBitmap.java | 76 +++++++
.../browser/photo_picker/PickerBitmapView.java | 241 +++++++++++++++++++++
.../photo_picker/PickerBitmapViewHolder.java | 101 +++++++++
.../browser/photo_picker/PickerCategoryView.java | 229 ++++++++++++++++++++
chrome/android/java_sources.gni | 7 +
.../src/org/chromium/ui/PhotoPickerListener.java | 1 +
.../src/org/chromium/ui/base/SelectFileDialog.java | 4 +
ui/android/java/strings/android_ui_strings.grd | 13 +-
18 files changed, 911 insertions(+), 6 deletions(-)

Upstream: git.chromium.org


  • Share