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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwViewAndroidDelegate.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
« no previous file with comments | « no previous file | android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java » ('j') | 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/AwViewAndroidDelegate.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwViewAndroidDelegate.java b/android_webview/java/src/org/chromium/android_webview/AwViewAndroidDelegate.java
index fdcfc94f3f7606f46d64d142cb1b4d325e94ce9a..59b785cfc7747ebcdfa67ed87aa5d46d23bf1242 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwViewAndroidDelegate.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwViewAndroidDelegate.java
@@ -11,7 +11,7 @@ import android.widget.FrameLayout;
import org.chromium.base.VisibleForTesting;
import org.chromium.content.browser.RenderCoordinates;
import org.chromium.ui.base.ViewAndroidDelegate;
-import org.chromium.ui.gfx.DeviceDisplayInfo;
+import org.chromium.ui.display.DisplayAndroid;
import java.util.LinkedHashMap;
import java.util.Map;
@@ -99,8 +99,7 @@ public class AwViewAndroidDelegate extends ViewAndroidDelegate {
}
containerView.addView(anchorView);
if (position != null) {
- float scale = (float) DeviceDisplayInfo.create(containerView.getContext())
- .getDIPScale();
+ float scale = (float) DisplayAndroid.get(containerView.getContext()).getDIPScale();
setViewPosition(anchorView, position.mX, position.mY,
position.mWidth, position.mHeight, scale,
position.mLeftMargin, position.mTopMargin);
« no previous file with comments | « no previous file | android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698