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

Unified Diff: ui/base/layout.h

Issue 10828052: Makes ui::GetSupportedScaleFactors available on platforms other than Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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') | 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 447dfacc1cada26bfdb75d26951aa1c0390c56e5..35aa5675c9bd5586c4cc125c185133e0c31d0d6e 100644
--- a/ui/base/layout.h
+++ b/ui/base/layout.h
@@ -53,13 +53,13 @@ UI_EXPORT ScaleFactor GetScaleFactorFromScale(float scale);
// Returns the ScaleFactor used by |view|.
UI_EXPORT ScaleFactor GetScaleFactorForNativeView(gfx::NativeView view);
-#if defined(OS_MACOSX)
-
// Returns a vector with the scale factors which are supported by this
// platform.
-// Only required on Mac so far.
UI_EXPORT std::vector<ScaleFactor> GetSupportedScaleFactors();
+// Returns true if |scale_factor| is supported by this platform.
+UI_EXPORT bool IsScaleFactorSupported(ScaleFactor scale_factor);
+
namespace test {
UI_EXPORT void SetSupportedScaleFactors(
@@ -67,8 +67,6 @@ UI_EXPORT void SetSupportedScaleFactors(
} // namespace test
-#endif
-
} // namespace ui
#endif // UI_BASE_LAYOUT_H_
« no previous file with comments | « no previous file | ui/base/layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698