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

Unified Diff: ui/base/layout.h

Issue 1025513004: Ensure that the extension icons show up in the omnibox at fractional scales. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use g_supported_scale_factors to verify if the scale passed in is supported. Created 5 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
Index: ui/base/layout.h
diff --git a/ui/base/layout.h b/ui/base/layout.h
index ab838780c25b278d8c2611f372255892c030126d..c0ca3cb65e4b08b546d4b43c1f5d454082e791db 100644
--- a/ui/base/layout.h
+++ b/ui/base/layout.h
@@ -54,6 +54,10 @@ UI_BASE_EXPORT float GetScaleFactorForNativeView(gfx::NativeView view);
// Returns the image scale for the scale factor passed in.
UI_BASE_EXPORT float GetScaleForScaleFactor(ScaleFactor scale_factor);
+// Returns true if the scale passed in is the list of supported scales for
+// the platform.
+UI_BASE_EXPORT bool IsSupportedScale(float scale);
+
namespace test {
// Class which changes the value of GetSupportedScaleFactors() to
// |new_scale_factors| for the duration of its lifetime.

Powered by Google App Engine
This is Rietveld 408576698