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

Unified Diff: ui/gfx/monitor.h

Issue 10255020: Get the default device scale factor from monitor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated comment Created 8 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 | « ui/base/ui_base_switches.cc ('k') | ui/gfx/monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/monitor.h
diff --git a/ui/gfx/monitor.h b/ui/gfx/monitor.h
index f9bf86c62ddee1ee5d47d5cc3f82992954531ee2..704d6c2e55f291f0190b5161117dc328e7c6fc41 100644
--- a/ui/gfx/monitor.h
+++ b/ui/gfx/monitor.h
@@ -20,6 +20,10 @@ namespace gfx {
// TODO(oshima): Update the comment when ENABLE_DIP macro is removed.
class UI_EXPORT Monitor {
public:
+ // Returns the default value for the device scale factor, which is
+ // given by "--default-device-scale-factor".
+ static float GetDefaultDeviceScaleFactor();
+
// Creates a monitor with invalid id(-1) as default.
Monitor();
explicit Monitor(int id);
« no previous file with comments | « ui/base/ui_base_switches.cc ('k') | ui/gfx/monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698