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

Unified Diff: ui/gfx/android/device_display_info.cc

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 | « ui/gfx/android/device_display_info.h ('k') | webkit/common/webpreferences.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/android/device_display_info.cc
diff --git a/ui/gfx/android/device_display_info.cc b/ui/gfx/android/device_display_info.cc
index 16fd2acb1d8a280f67c787dce12ddab15645c650..23c6c2eeffd943c51bda15ce7912f71c43a8f7fe 100644
--- a/ui/gfx/android/device_display_info.cc
+++ b/ui/gfx/android/device_display_info.cc
@@ -58,6 +58,13 @@ double DeviceDisplayInfo::GetDIPScale() {
return static_cast<double>(result);
}
+int DeviceDisplayInfo::GetSmallestDIPWidth() {
+ JNIEnv* env = AttachCurrentThread();
+ jint result =
+ Java_DeviceDisplayInfo_getSmallestDIPWidth(env, j_device_info_.obj());
+ return static_cast<int>(result);
+}
+
// static
bool DeviceDisplayInfo::RegisterDeviceDisplayInfo(JNIEnv* env) {
return RegisterNativesImpl(env);
« no previous file with comments | « ui/gfx/android/device_display_info.h ('k') | webkit/common/webpreferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698