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); |