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

Side by Side Diff: android_webview/glue/java/src/com/android/webview/chromium/ContentSettingsAdapter.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 | « no previous file | android_webview/glue/java/src/com/android/webview/chromium/WebViewDatabaseAdapter.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 com.android.webview.chromium; 5 package com.android.webview.chromium;
6 6
7 import android.webkit.WebSettings.LayoutAlgorithm; 7 import android.webkit.WebSettings.LayoutAlgorithm;
8 import android.webkit.WebSettings.PluginState; 8 import android.webkit.WebSettings.PluginState;
9 import android.webkit.WebSettings.RenderPriority; 9 import android.webkit.WebSettings.RenderPriority;
10 import android.webkit.WebSettings.ZoomDensity; 10 import android.webkit.WebSettings.ZoomDensity;
11 11
12 import org.chromium.android_webview.AwSettings; 12 import org.chromium.android_webview.AwSettings;
13 import org.chromium.base.BuildInfo;
13 import org.chromium.base.annotations.SuppressFBWarnings; 14 import org.chromium.base.annotations.SuppressFBWarnings;
14 15
15 /** 16 /**
16 * Type adaptation layer between {@link android.webkit.WebSettings} and 17 * Type adaptation layer between {@link android.webkit.WebSettings} and
17 * {@link org.chromium.android_webview.AwSettings}. 18 * {@link org.chromium.android_webview.AwSettings}.
18 */ 19 */
19 @SuppressWarnings("deprecation") 20 @SuppressWarnings("deprecation")
20 @SuppressFBWarnings("CHROMIUM_SYNCHRONIZED_METHOD") 21 @SuppressFBWarnings("CHROMIUM_SYNCHRONIZED_METHOD")
21 public class ContentSettingsAdapter extends android.webkit.WebSettings { 22 public class ContentSettingsAdapter extends android.webkit.WebSettings {
22 private AwSettings mAwSettings; 23 private AwSettings mAwSettings;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 } 130 }
130 131
131 @Override 132 @Override
132 public boolean getUseWebViewBackgroundForOverscrollBackground() { 133 public boolean getUseWebViewBackgroundForOverscrollBackground() {
133 // Intentional no-op. 134 // Intentional no-op.
134 return false; 135 return false;
135 } 136 }
136 137
137 @Override 138 @Override
138 public void setSaveFormData(boolean save) { 139 public void setSaveFormData(boolean save) {
140 if (BuildInfo.isAtLeastO()) return;
141
139 mAwSettings.setSaveFormData(save); 142 mAwSettings.setSaveFormData(save);
140 } 143 }
141 144
142 @Override 145 @Override
143 public boolean getSaveFormData() { 146 public boolean getSaveFormData() {
147 if (BuildInfo.isAtLeastO()) return false;
148
144 return mAwSettings.getSaveFormData(); 149 return mAwSettings.getSaveFormData();
145 } 150 }
146 151
147 @Override 152 @Override
148 public void setSavePassword(boolean save) { 153 public void setSavePassword(boolean save) {
149 // Intentional no-op. 154 // Intentional no-op.
150 } 155 }
151 156
152 @Override 157 @Override
153 public boolean getSavePassword() { 158 public boolean getSavePassword() {
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 public void setVideoOverlayForEmbeddedEncryptedVideoEnabled(boolean flag) { 560 public void setVideoOverlayForEmbeddedEncryptedVideoEnabled(boolean flag) {
556 // No-op, see http://crbug.com/616583 561 // No-op, see http://crbug.com/616583
557 } 562 }
558 563
559 @Override 564 @Override
560 public boolean getVideoOverlayForEmbeddedEncryptedVideoEnabled() { 565 public boolean getVideoOverlayForEmbeddedEncryptedVideoEnabled() {
561 // Always false, see http://crbug.com/616583 566 // Always false, see http://crbug.com/616583
562 return false; 567 return false;
563 } 568 }
564 } 569 }
OLDNEW
« no previous file with comments | « no previous file | android_webview/glue/java/src/com/android/webview/chromium/WebViewDatabaseAdapter.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698