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

Unified Diff: ui/base/resource/resource_bundle_android.cc

Issue 2616203002: android: Remove DeviceDisplayInfo from ResourceBundle (Closed)
Patch Set: move to resource_bundle_android Created 3 years, 11 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/base/resource/resource_bundle_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle_android.cc
diff --git a/ui/base/resource/resource_bundle_android.cc b/ui/base/resource/resource_bundle_android.cc
index 47a982093a06070ccd16f05badd81670758a5cd5..9b0ae24bfce1146d80cddf462e25d9ff7e84bcce 100644
--- a/ui/base/resource/resource_bundle_android.cc
+++ b/ui/base/resource/resource_bundle_android.cc
@@ -166,4 +166,9 @@ std::string GetPathForAndroidLocalePakWithinApk(const std::string& locale) {
return base::android::ConvertJavaStringToUTF8(env, ret.obj());
}
+float GetPrimaryDisplayScale() {
+ return Java_ResourceBundle_getPrimaryDisplayScale(
+ base::android::AttachCurrentThread());
+}
+
} // namespace ui
« no previous file with comments | « ui/base/resource/resource_bundle_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698