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

Side by Side Diff: android_webview/glue/java/src/com/android/webview/chromium/ContentSettingsAdapter.java

Issue 1000793002: [Android] Incorporate findbugs into android builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address cjhopman's comment + rebase Created 5 years, 9 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/CookieManagerAdapter.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.annotations.SuppressFBWarnings;
13 14
14 /** 15 /**
15 * Type adaptation layer between {@link android.webkit.WebSettings} and 16 * Type adaptation layer between {@link android.webkit.WebSettings} and
16 * {@link org.chromium.android_webview.AwSettings}. 17 * {@link org.chromium.android_webview.AwSettings}.
17 */ 18 */
18 @SuppressWarnings("deprecation") 19 @SuppressWarnings("deprecation")
20 @SuppressFBWarnings("CHROMIUM_SYNCHRONIZED_METHOD")
19 public class ContentSettingsAdapter extends android.webkit.WebSettings { 21 public class ContentSettingsAdapter extends android.webkit.WebSettings {
20 private AwSettings mAwSettings; 22 private AwSettings mAwSettings;
21 23
22 public ContentSettingsAdapter(AwSettings awSettings) { 24 public ContentSettingsAdapter(AwSettings awSettings) {
23 mAwSettings = awSettings; 25 mAwSettings = awSettings;
24 } 26 }
25 27
26 AwSettings getAwSettings() { 28 AwSettings getAwSettings() {
27 return mAwSettings; 29 return mAwSettings;
28 } 30 }
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 @Override 544 @Override
543 public void setVideoOverlayForEmbeddedEncryptedVideoEnabled(boolean flag) { 545 public void setVideoOverlayForEmbeddedEncryptedVideoEnabled(boolean flag) {
544 mAwSettings.setVideoOverlayForEmbeddedVideoEnabled(flag); 546 mAwSettings.setVideoOverlayForEmbeddedVideoEnabled(flag);
545 } 547 }
546 548
547 @Override 549 @Override
548 public boolean getVideoOverlayForEmbeddedEncryptedVideoEnabled() { 550 public boolean getVideoOverlayForEmbeddedEncryptedVideoEnabled() {
549 return mAwSettings.getVideoOverlayForEmbeddedVideoEnabled(); 551 return mAwSettings.getVideoOverlayForEmbeddedVideoEnabled();
550 } 552 }
551 } 553 }
OLDNEW
« no previous file with comments | « no previous file | android_webview/glue/java/src/com/android/webview/chromium/CookieManagerAdapter.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698