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

Unified Diff: ui/base/layout.h

Issue 10412004: Revert "Revert 137734 - Select theme resources from ResourceBundle at requested scale factor." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master Created 8 years, 7 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/test/test_content_client.cc ('k') | ui/base/layout.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/layout.h
diff --git a/ui/base/layout.h b/ui/base/layout.h
index be65e6e038bc7374b83819d438cc1b9417e6c325..e7cf91986930bff04247a6b8ca301ad1f26a2999 100644
--- a/ui/base/layout.h
+++ b/ui/base/layout.h
@@ -27,6 +27,21 @@ enum DisplayLayout {
// the .pak file of theme resources to load.
UI_EXPORT DisplayLayout GetDisplayLayout();
+// Supported UI scale factors for the platform. This is used as an index
+// into the array |kScaleFactorScales| which maps the enum value to a float.
+enum ScaleFactor {
+ SCALE_FACTOR_100P = 0,
+
+ // The scale factor used for unscaled binary data, the 1x (default) scale
+ // factor data packs.
+ SCALE_FACTOR_NONE = SCALE_FACTOR_100P,
+
+ SCALE_FACTOR_200P,
+};
+
+// Returns the float scale value for |scale_factor|.
+UI_EXPORT float GetScaleFactorScale(ScaleFactor scale_factor);
+
} // namespace ui
#endif // UI_BASE_LAYOUT_H_
« no previous file with comments | « content/test/test_content_client.cc ('k') | ui/base/layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698