OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |