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

Commit 6e0e4409 authored by Joel Hockey's avatar Joel Hockey
Browse files

Add changeId for File System Access

Bug: 364980165
Test: not avaible for test right now
Flag: android.webkit.file_system_access

Change-Id: Icc242a646e390cb85382b5d13c2b4ea605269d5f
parent 4fd9e938
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -18784,6 +18784,10 @@ package android.webkit {
    method @Deprecated public void openFileChooser(android.webkit.ValueCallback<android.net.Uri>, String, String);
  }
  public abstract static class WebChromeClient.FileChooserParams {
    field @FlaggedApi("android.webkit.file_system_access") public static final long ENABLE_FILE_SYSTEM_ACCESS = 364980165L; // 0x15c127c5L
  }
  public abstract class WebHistoryItem implements java.lang.Cloneable {
    method @Deprecated public abstract int getId();
  }
+19 −0
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@ import android.annotation.FlaggedApi;
import android.annotation.IntDef;
import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.compat.annotation.ChangeId;
import android.compat.annotation.EnabledAfter;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.graphics.Bitmap;
@@ -552,6 +554,23 @@ public class WebChromeClient {
     * Parameters used in the {@link #onShowFileChooser} method.
     */
    public static abstract class FileChooserParams {
        /**
         * Enable File System Access for webview.
         *
         * File System Access JS APIs window.showOpenFileChooser(), showDirectoryChooser(), and
         * showSaveFilePicker() will invoke #onFileChooser(). Additional MODE_OPEN_FOLDER will be
         * returned by #getMode(), #getIntent() will return ACTION_OPEN_DOCUMENT,
         * ACTION_OPEN_DOCUMENT_TREE, and ACTION_CREATE_DOCUMENT rather than the current
         * ACTION_GET_CONTENT, and new function #getPermissionMode() will be available.
         *
         * @hide
         */
        @ChangeId
        @EnabledAfter(targetSdkVersion = android.os.Build.VERSION_CODES.VANILLA_ICE_CREAM)
        @FlaggedApi(android.webkit.Flags.FLAG_FILE_SYSTEM_ACCESS)
        @SystemApi
        public static final long ENABLE_FILE_SYSTEM_ACCESS = 364980165L;

        /** @hide */
        @IntDef(prefix = { "MODE_" }, value = {
            MODE_OPEN,