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

Unified Diff: ash/display/display_manager.h

Issue 417113012: Introduce user customization of external HighDPI mode for 4K monitor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 5 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 | « ash/display/display_info.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager.h
diff --git a/ash/display/display_manager.h b/ash/display/display_manager.h
index cb1850722ea187170ce1e49ebef318f509a5737b..bc3c7dae453e6bf00a528b592c3433db574a9b2b 100644
--- a/ash/display/display_manager.h
+++ b/ash/display/display_manager.h
@@ -162,11 +162,19 @@ class ASH_EXPORT DisplayManager
void SetDisplayRotation(int64 display_id, gfx::Display::Rotation rotation);
// Sets the display's ui scale.
+ // TODO(mukai): remove this and merge into SetDisplayMode.
void SetDisplayUIScale(int64 display_id, float ui_scale);
// Sets the display's resolution.
+ // TODO(mukai): remove this and merge into SetDisplayMode.
void SetDisplayResolution(int64 display_id, const gfx::Size& resolution);
+ // Sets the external display's configuration, including resolution change,
+ // ui-scale change, and device scale factor change. Returns true if it changes
+ // the display resolution so that the caller needs to show a notification in
+ // case the new resolution actually doesn't work.
+ bool SetDisplayMode(int64 display_id, const DisplayMode& display_mode);
+
// Register per display properties. |overscan_insets| is NULL if
// the display has no custom overscan insets.
void RegisterDisplayProperty(int64 display_id,
@@ -176,7 +184,11 @@ class ASH_EXPORT DisplayManager
const gfx::Size& resolution_in_pixels,
ui::ColorCalibrationProfile color_profile);
- // Returns the display's selected mode.
+ // Returns the display mode of |display_id| which is currently used.
+ DisplayMode GetActiveModeForDisplayId(int64 display_id) const;
+
+ // Returns the display's selected mode. This returns false and doesn't
+ // set |mode_out| if the display mode is in default.
bool GetSelectedModeForDisplayId(int64 display_id,
DisplayMode* mode_out) const;
« no previous file with comments | « ash/display/display_info.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698