summaryrefslogtreecommitdiffstats
path: root/android_webview/java/src/org
diff options
context:
space:
mode:
authorsgurun <sgurun@chromium.org>2016-02-17 17:39:20 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-18 01:40:17 +0000
commitb3e2647ddfa063cbb40dabba45ae7aa1e89c647e (patch)
treeb666dfa2b88f093a2c4ea9a64a0ca670e55e91ed /android_webview/java/src/org
parent64f422c06534c7ecfbcd12a9048b24215acddc81 (diff)
downloadchromium_src-b3e2647ddfa063cbb40dabba45ae7aa1e89c647e.zip
chromium_src-b3e2647ddfa063cbb40dabba45ae7aa1e89c647e.tar.gz
chromium_src-b3e2647ddfa063cbb40dabba45ae7aa1e89c647e.tar.bz2
Set the linter target for awwebcontentsdelegateadapter class
Set the target API for the class to 21 (lollipop) which is what is supported by updatable webview. This prevents us individually suppress lint messages. BUG= Review URL: https://codereview.chromium.org/1704263002 Cr-Commit-Position: refs/heads/master@{#376057}
Diffstat (limited to 'android_webview/java/src/org')
-rw-r--r--android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java b/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java
index 528d6a3..dff2d0e 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java
@@ -4,12 +4,13 @@
package org.chromium.android_webview;
-import android.annotation.SuppressLint;
+import android.annotation.TargetApi;
import android.content.ContentResolver;
import android.content.Context;
import android.media.AudioManager;
import android.net.Uri;
import android.os.AsyncTask;
+import android.os.Build;
import android.os.Handler;
import android.os.Message;
import android.provider.MediaStore;
@@ -29,6 +30,7 @@ import org.chromium.content_public.browser.InvalidateTypes;
* This class also serves a secondary function of routing certain callbacks from the content layer
* to specific listener interfaces.
*/
+@TargetApi(Build.VERSION_CODES.LOLLIPOP)
class AwWebContentsDelegateAdapter extends AwWebContentsDelegate {
private static final String TAG = "AwWebContentsDelegateAdapter";
@@ -111,7 +113,6 @@ class AwWebContentsDelegateAdapter extends AwWebContentsDelegate {
}
}
- @SuppressLint("NewApi") // View#getLayoutDirection requires API level 17.
@Override
public boolean takeFocus(boolean reverse) {
int direction =