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

Unified Diff: ui/base/layout.h

Issue 10946019: Don't return unsupported scales frrom GetScaleFactorFromScale() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up Created 8 years, 3 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 f8836a06c29ce76147b0470788069272de4824ce..ba97d6026dc09620898211b364ce15fe9e296861 100644
--- a/ui/base/layout.h
+++ b/ui/base/layout.h
@@ -53,6 +53,9 @@ UI_EXPORT float GetScaleFactorScale(ScaleFactor scale_factor);
// little as possible.
UI_EXPORT ScaleFactor GetScaleFactorFromScale(float scale);
oshima 2012/09/19 07:06:35 This shouldn't return unsupported scale factor, sh
+// Similar to GetScaleFactorFromScale but returns only supported ScaleFactor.
+UI_EXPORT ScaleFactor GetSupportedScaleFactorFromScale(float scale);
+
// Returns the ScaleFactor used by |view|.
UI_EXPORT ScaleFactor GetScaleFactorForNativeView(gfx::NativeView view);
« 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