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

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/AwContentsAnchorViewTest.java

Issue 2394773006: android: Use DisplayAndroid in java (Closed)
Patch Set: javadoc Created 4 years, 2 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: android_webview/javatests/src/org/chromium/android_webview/test/AwContentsAnchorViewTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsAnchorViewTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsAnchorViewTest.java
index c688b39cbfaad577acff4250c7738a72cc49a132..cdb22e7fa63ad4a4d92b64deae95f22ba2818fe0 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsAnchorViewTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsAnchorViewTest.java
@@ -13,7 +13,7 @@ import android.widget.FrameLayout;
import org.chromium.android_webview.AwViewAndroidDelegate;
import org.chromium.base.test.util.Feature;
import org.chromium.content.browser.RenderCoordinates;
-import org.chromium.ui.gfx.DeviceDisplayInfo;
+import org.chromium.ui.display.DisplayAndroid;
/**
* Tests anchor views are correctly added/removed when their container view is updated.
@@ -181,7 +181,7 @@ public class AwContentsAnchorViewTest extends AwTestBase {
}
private LayoutParams setLayoutParams(View anchorView, int coords, int dimension) {
- float scale = (float) DeviceDisplayInfo.create(mContainerView.getContext()).getDIPScale();
+ float scale = (float) DisplayAndroid.get(mContainerView.getContext()).getDIPScale();
mViewDelegate.setViewPosition(
anchorView, coords, coords, dimension, dimension, scale, 10, 10);
return anchorView.getLayoutParams();

Powered by Google App Engine
This is Rietveld 408576698