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

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

Issue 28053002: Add font_scale_factor_quirk pref. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master.pinned
Patch Set: Address review comments. Created 7 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 | « content/renderer/web_preferences.cc ('k') | ui/gfx/android/device_display_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 088c9c2476e7f2781572be7a56e1482965716dd3..895d3472ca7bc446f0d3363b0e9d512c1a359433 100644
--- a/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java
+++ b/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java
@@ -115,6 +115,15 @@ public class DeviceDisplayInfo {
return getMetrics().density;
}
+ /**
+ * @return Smallest screen size in density-independent pixels that the
+ * application will see, regardless of orientation.
+ */
+ @CalledByNative
+ private int getSmallestDIPWidth() {
+ return mAppContext.getResources().getConfiguration().smallestScreenWidthDp;
+ }
+
private Display getDisplay() {
return mWinManager.getDefaultDisplay();
}
« no previous file with comments | « content/renderer/web_preferences.cc ('k') | ui/gfx/android/device_display_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698