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

Unified Diff: ui/android/java/src/org/chromium/ui/UiUtils.java

Issue 2932433002: Photo Picker dialog: Pipe through the MIME type selections from the web page. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/android/java/src/org/chromium/ui/UiUtils.java
diff --git a/ui/android/java/src/org/chromium/ui/UiUtils.java b/ui/android/java/src/org/chromium/ui/UiUtils.java
index 279ff70bbab214d332b9ccbb44896f2937167936..861320dc937b182675f8b8142030c5f0f5be906f 100644
--- a/ui/android/java/src/org/chromium/ui/UiUtils.java
+++ b/ui/android/java/src/org/chromium/ui/UiUtils.java
@@ -83,8 +83,10 @@ public class UiUtils {
* @param listener The listener that will be notified of the action the user took in the
* picker.
* @param allowMultiple Whether the dialog should allow multiple images to be selected.
+ * @param mimeTypes A list of mime types to show in the dialog.
*/
- void showPhotoPicker(Context context, PhotoPickerListener listener, boolean allowMultiple);
+ void showPhotoPicker(Context context, PhotoPickerListener listener, boolean allowMultiple,
+ List<String> mimeTypes);
/**
* Called when the photo picker dialog should be dismissed.
@@ -115,11 +117,12 @@ public class UiUtils {
* @param listener The listener that will be notified of the action the user took in the
* picker.
* @param allowMultiple Whether the dialog should allow multiple images to be selected.
+ * @param mimeTypes A list of mime types to show in the dialog.
*/
- public static boolean showPhotoPicker(
- Context context, PhotoPickerListener listener, boolean allowMultiple) {
+ public static boolean showPhotoPicker(Context context, PhotoPickerListener listener,
+ boolean allowMultiple, List<String> mimeTypes) {
if (sPhotoPickerDelegate == null) return false;
- sPhotoPickerDelegate.showPhotoPicker(context, listener, allowMultiple);
+ sPhotoPickerDelegate.showPhotoPicker(context, listener, allowMultiple, mimeTypes);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698