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

Unified Diff: ui/display/display_util.h

Issue 227593011: Modifies the threshold for hidpi displays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 8 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 | « chrome/browser/ui/webui/options/chromeos/display_options_handler.cc ('k') | ui/display/display_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/display_util.h
diff --git a/ui/display/display_util.h b/ui/display/display_util.h
index f8c0bd241074b21ad3662810e0f5d6d8fd808b26..0928ef5c84648914a51151f617f2c815399f8639 100644
--- a/ui/display/display_util.h
+++ b/ui/display/display_util.h
@@ -14,6 +14,12 @@ namespace ui {
// be ignored.
DISPLAY_EXPORT bool IsDisplaySizeBlackListed(const gfx::Size& physical_size);
+// Returns the desired device scale factor for the display with the given
+// physical_size and resoultion.
+DISPLAY_EXPORT float GetScaleFactor(
+ const gfx::Size& physical_size_in_mm,
+ const gfx::Size& screen_size_in_pixels);
+
} // namespace ui
#endif // UI_DISPLAY_DISPLAY_UTIL_H_
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/display_options_handler.cc ('k') | ui/display/display_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698