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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java

Issue 1704263002: Set the linter target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java
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 528d6a335abf49b1dbdcae90bcb769378cd06d1b..dff2d0e165df7d2aa358d46fddc1fb26c260d281 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 =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698