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

Unified Diff: ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java

Issue 973403002: Address NewApi warnings in src/ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java
diff --git a/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java b/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java
index 38569513d08dce233844643a069be3e3919372e6..da8e0262a1f9e202086b5d4095cc61b47555dd48 100644
--- a/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java
+++ b/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java
@@ -4,6 +4,7 @@
package org.chromium.ui.gfx;
+import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.PixelFormat;
import android.graphics.Point;
@@ -57,6 +58,7 @@ public class DeviceDisplayInfo {
/**
* @return Real physical display height in physical pixels.
*/
+ @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
@CalledByNative
public int getPhysicalDisplayHeight() {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR1) {
@@ -69,6 +71,7 @@ public class DeviceDisplayInfo {
/**
* @return Real physical display width in physical pixels.
*/
+ @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
@CalledByNative
public int getPhysicalDisplayWidth() {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR1) {

Powered by Google App Engine
This is Rietveld 408576698