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

Unified Diff: ui/base/layout.h

Issue 211493009: Ensure that extension resources are loaded with the correct scaling applied on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unnecessary include Created 6 years, 9 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 | « no previous file | ui/base/layout.cc » ('j') | ui/base/layout.cc » ('J')
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 2ea39a289e2cb482e0d658629f232096dde4738d..6c09331571938fb719fda0a388c193ce9693b9a8 100644
--- a/ui/base/layout.h
+++ b/ui/base/layout.h
@@ -58,6 +58,13 @@ UI_BASE_EXPORT void SetSupportedScaleFactors(
UI_BASE_EXPORT const std::vector<ScaleFactor>& GetSupportedScaleFactors();
// Returns the float scale value for |scale_factor|.
+UI_BASE_EXPORT float GetImageScaleForScaleFactor(ScaleFactor scale_factor);
+
+// Returns the actual image scale to be used for the scale factor passed in.
+// For all platforms except Windows high dpi, this returns the value returned
+// by the GetImageScaleForScaleFactor function above.
+// For Windows with high dpi enabled it returns the dpi scale for the
+// display.
UI_BASE_EXPORT float GetImageScale(ScaleFactor scale_factor);
// Returns the supported ScaleFactor which most closely matches |scale|.
« no previous file with comments | « no previous file | ui/base/layout.cc » ('j') | ui/base/layout.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698