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); |