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

Commit 705626be authored by Joel Hockey's avatar Joel Hockey
Browse files

Add IntDef for FileChooserParams.Mode

Bug: 364980165
Test: n/a
Flag: DOCS_ONLY

Change-Id: If858f3b73f69bba3008c95c3b788e0c35b20981a
parent a205bd31
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -552,6 +552,16 @@ public class WebChromeClient {
     * Parameters used in the {@link #onShowFileChooser} method.
     */
    public static abstract class FileChooserParams {
        /** @hide */
        @IntDef(prefix = { "MODE_" }, value = {
            MODE_OPEN,
            MODE_OPEN_MULTIPLE,
            MODE_OPEN_FOLDER,
            MODE_SAVE,
        })
        @Retention(RetentionPolicy.SOURCE)
        public @interface Mode {}

        /** Open single file. Requires that the file exists before allowing the user to pick it. */
        public static final int MODE_OPEN = 0;
        /** Like Open but allows multiple files to be selected. */
@@ -603,6 +613,7 @@ public class WebChromeClient {
        /**
         * Returns file chooser mode.
         */
        @Mode
        public abstract int getMode();

        /**