Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7ff619f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Webkit: add to support file uploading"

parents 62b094c5 04022aad
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -383,6 +383,22 @@ public class WebChromeClient {
        uploadFile.onReceiveValue(null);
    }

    /**
     * Tell the client to show a file chooser.
     * @param uploadFilePaths A ValueCallback to set paths of the files to upload.
     *      onReceiveValue must be called to wake up the thread.a
     * @param acceptType The value of the 'accept' attribute of the input tag
     *         associated with this file picker.
     * @param capture Whether the 'capture' attribute exists in the input tag
     *         associated with this file picker.
     * @hide
     */
    public void showFileChooser(ValueCallback<String[]> uploadFilePaths,
                                String acceptTypes,
                                boolean capture) {
        uploadFilePaths.onReceiveValue(null);
    }

    /**
     * Tell the client that the page being viewed has an autofillable
     * form and the user would like to set a profile up.