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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContentsClient.java

Issue 20666003: [Android] Expose showFileChooser in AwContentsClient interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix findbugs Created 7 years, 4 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: android_webview/java/src/org/chromium/android_webview/AwContentsClient.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java b/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java
index f1c7f45dc69b74273644be8262eb7784c51bc740..3f2245ca460cd2945ca94bfa13b920ac7dc4f53d 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java
@@ -199,6 +199,14 @@ public abstract class AwContentsClient {
// WebView specific methods that map directly to WebViewClient / WebChromeClient
//--------------------------------------------------------------------------------------------
+ public static class FileChooserParams {
+ public int mode;
+ public String acceptTypes;
+ public String title;
+ public String defaultFilename;
+ public boolean capture;
+ }
+
public abstract void getVisitedHistory(ValueCallback<String[]> callback);
public abstract void doUpdateVisitedHistory(String url, boolean isReload);
@@ -229,6 +237,10 @@ public abstract class AwContentsClient {
public abstract void onDownloadStart(String url, String userAgent, String contentDisposition,
String mimeType, long contentLength);
+ // TODO(joth): Make abstract once this has rolled in downstream.
+ public /*abstract*/ void showFileChooser(ValueCallback<String[]> uploadFilePathsCallback,
+ FileChooserParams fileChooserParams) { }
+
public abstract void onGeolocationPermissionsShowPrompt(String origin,
GeolocationPermissions.Callback callback);
« no previous file with comments | « android_webview/android_webview.gyp ('k') | android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698