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

Side by Side Diff: android_webview/java/src/org/chromium/android_webview/AwSettings.java

Issue 2794113002: Deprecate WebView Autocomplete (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « android_webview/glue/java/src/com/android/webview/chromium/WebViewDatabaseAdapter.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.android_webview; 5 package org.chromium.android_webview;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.pm.PackageManager; 9 import android.content.pm.PackageManager;
10 import android.os.Handler; 10 import android.os.Handler;
11 import android.os.Message; 11 import android.os.Message;
12 import android.os.Process; 12 import android.os.Process;
13 import android.provider.Settings; 13 import android.provider.Settings;
14 import android.util.Log; 14 import android.util.Log;
15 import android.webkit.WebSettings; 15 import android.webkit.WebSettings;
16 import android.webkit.WebSettings.LayoutAlgorithm; 16 import android.webkit.WebSettings.LayoutAlgorithm;
17 import android.webkit.WebSettings.PluginState; 17 import android.webkit.WebSettings.PluginState;
18 import android.webkit.WebSettings.ZoomDensity; 18 import android.webkit.WebSettings.ZoomDensity;
19 19
20 import org.chromium.base.BuildInfo;
20 import org.chromium.base.ThreadUtils; 21 import org.chromium.base.ThreadUtils;
21 import org.chromium.base.VisibleForTesting; 22 import org.chromium.base.VisibleForTesting;
22 import org.chromium.base.annotations.CalledByNative; 23 import org.chromium.base.annotations.CalledByNative;
23 import org.chromium.base.annotations.JNINamespace; 24 import org.chromium.base.annotations.JNINamespace;
24 import org.chromium.content_public.browser.WebContents; 25 import org.chromium.content_public.browser.WebContents;
25 26
26 /** 27 /**
27 * Stores Android WebView specific settings that does not need to be synced to W ebKit. 28 * Stores Android WebView specific settings that does not need to be synced to W ebKit.
28 * 29 *
29 * Methods in this class can be called from any thread, including threads create d by 30 * Methods in this class can be called from any thread, including threads create d by
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 98
98 private final boolean mPasswordEchoEnabled; 99 private final boolean mPasswordEchoEnabled;
99 100
100 // Not accessed by the native side. 101 // Not accessed by the native side.
101 private boolean mBlockNetworkLoads; // Default depends on permission of emb edding APK. 102 private boolean mBlockNetworkLoads; // Default depends on permission of emb edding APK.
102 private boolean mAllowContentUrlAccess = true; 103 private boolean mAllowContentUrlAccess = true;
103 private boolean mAllowFileUrlAccess = true; 104 private boolean mAllowFileUrlAccess = true;
104 private int mCacheMode = WebSettings.LOAD_DEFAULT; 105 private int mCacheMode = WebSettings.LOAD_DEFAULT;
105 private boolean mShouldFocusFirstNode = true; 106 private boolean mShouldFocusFirstNode = true;
106 private boolean mGeolocationEnabled = true; 107 private boolean mGeolocationEnabled = true;
107 private boolean mAutoCompleteEnabled = true; 108 private boolean mAutoCompleteEnabled = !BuildInfo.isAtLeastO();
108 private boolean mFullscreenSupported; 109 private boolean mFullscreenSupported;
109 private boolean mSupportZoom = true; 110 private boolean mSupportZoom = true;
110 private boolean mBuiltInZoomControls; 111 private boolean mBuiltInZoomControls;
111 private boolean mDisplayZoomControls = true; 112 private boolean mDisplayZoomControls = true;
112 113
113 static class LazyDefaultUserAgent{ 114 static class LazyDefaultUserAgent{
114 // Lazy Holder pattern 115 // Lazy Holder pattern
115 private static final String sInstance = nativeGetDefaultUserAgent(); 116 private static final String sInstance = nativeGetDefaultUserAgent();
116 } 117 }
117 118
(...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 private native void nativeUpdateWebkitPreferencesLocked(long nativeAwSetting s); 1784 private native void nativeUpdateWebkitPreferencesLocked(long nativeAwSetting s);
1784 1785
1785 private static native String nativeGetDefaultUserAgent(); 1786 private static native String nativeGetDefaultUserAgent();
1786 1787
1787 private native void nativeUpdateFormDataPreferencesLocked(long nativeAwSetti ngs); 1788 private native void nativeUpdateFormDataPreferencesLocked(long nativeAwSetti ngs);
1788 1789
1789 private native void nativeUpdateRendererPreferencesLocked(long nativeAwSetti ngs); 1790 private native void nativeUpdateRendererPreferencesLocked(long nativeAwSetti ngs);
1790 1791
1791 private native void nativeUpdateOffscreenPreRasterLocked(long nativeAwSettin gs); 1792 private native void nativeUpdateOffscreenPreRasterLocked(long nativeAwSettin gs);
1792 } 1793 }
OLDNEW
« no previous file with comments | « android_webview/glue/java/src/com/android/webview/chromium/WebViewDatabaseAdapter.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698