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

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

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.cc ('k') | ui/base/resource/resource_bundle_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle_android.h
diff --git a/ui/base/resource/resource_bundle_android.h b/ui/base/resource/resource_bundle_android.h
index c558ad34f7174f5d4c2535c85b1ac54f7bbd500b..2123eb053d809efe3a64757eae036dee4e484cab 100644
--- a/ui/base/resource/resource_bundle_android.h
+++ b/ui/base/resource/resource_bundle_android.h
@@ -41,6 +41,10 @@ UI_BASE_EXPORT void SetLocalePaksStoredInApk(bool value);
UI_BASE_EXPORT std::string GetPathForAndroidLocalePakWithinApk(
const std::string& locale);
+// Get the density of the primary display. Use this instead of using Display
+// to avoid initializing Display in child processes.
+float GetPrimaryDisplayScale();
+
} // namespace ui
#endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_ANDROID_H_
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/base/resource/resource_bundle_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698