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

Unified Diff: ui/display/manager/managed_display_info.h

Issue 2426103004: Specify a default display UI scale to reset the zoom to (Closed)
Patch Set: Working test Created 4 years, 2 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/display/manager/display_manager_utilities.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/manager/managed_display_info.h
diff --git a/ui/display/manager/managed_display_info.h b/ui/display/manager/managed_display_info.h
index 41b6948bb6670d93e5e746a47f92062f634e56d1..0b1beaa853a25a9221398d63472e67d7758044dd 100644
--- a/ui/display/manager/managed_display_info.h
+++ b/ui/display/manager/managed_display_info.h
@@ -52,6 +52,9 @@ class DISPLAY_EXPORT ManagedDisplayMode
bool native() const { return native_; }
+ bool is_default() const { return is_default_; }
+ void set_is_default(bool is_default) { is_default_ = is_default; }
+
// Missing from ui::ManagedDisplayMode
float ui_scale() const { return ui_scale_; }
float device_scale_factor() const { return device_scale_factor_; }
@@ -64,6 +67,7 @@ class DISPLAY_EXPORT ManagedDisplayMode
float refresh_rate_; // Refresh rate of the display, in Hz.
bool is_interlaced_; // True if mode is interlaced.
bool native_; // True if mode is native mode of the display.
+ bool is_default_ = false; // True if mode is one with default UI scale.
float ui_scale_; // The UI scale factor of the mode.
float device_scale_factor_; // The device scale factor of the mode.
« no previous file with comments | « ui/display/manager/display_manager_utilities.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698