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

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: add another test expectation 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..8d159b8a6e8df0488471cfe6f83312d4767ac704 100644
--- a/ui/display/display_util.h
+++ b/ui/display/display_util.h
@@ -14,6 +14,11 @@ namespace ui {
// be ignored.
DISPLAY_EXPORT bool IsDisplaySizeBlackListed(const gfx::Size& physical_size);
+// Returns the device scale factor for the specific monitor and mode.
oshima 2014/04/09 23:35:29 // Returns the desired device scale factor for the
Jun Mukai 2014/04/09 23:50:17 Done.
+DISPLAY_EXPORT float GetScaleFactor(
+ const gfx::Size& physical_size,
oshima 2014/04/09 23:35:29 physical_size_in_mm
Jun Mukai 2014/04/09 23:50:17 Done.
+ const gfx::Size& screen_size);
oshima 2014/04/09 23:35:29 screen_size_in_pixels
Jun Mukai 2014/04/09 23:50:17 Done.
+
} // 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