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

Unified Diff: ash/display/display_manager.h

Issue 12848004: Add shortcut keys to ui scaling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stl hates me Created 7 years, 9 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
Index: ash/display/display_manager.h
diff --git a/ash/display/display_manager.h b/ash/display/display_manager.h
index cfc0cb6bed4fa8f07a9f92fabf23d9145bb25d87..ce515125d4a3e39dd0422322a35851e179e618b9 100644
--- a/ash/display/display_manager.h
+++ b/ash/display/display_manager.h
@@ -43,7 +43,7 @@ class ASH_EXPORT DisplayManager : public aura::RootWindowObserver {
// Used to emulate display change when run in a desktop environment instead
// of on a device.
static void CycleDisplay();
- static void ToggleDisplayScale();
+ static void ToggleDisplayScaleFactor();
// When set to true, the MonitorManager calls OnDisplayBoundsChanged
// even if the display's bounds didn't change. Used to swap primary
@@ -86,6 +86,13 @@ class ASH_EXPORT DisplayManager : public aura::RootWindowObserver {
// Sets the display's rotation.
void SetDisplayRotation(int64 display_id, gfx::Display::Rotation rotation);
+ // Sets the display's ui scale.
+ void SetDisplayUIScale(int64 display_id, float ui_scale);
+
+ // Tells if display rotation/ui scaling features are enabled.
+ bool IsDisplayRotationEnabled() const;
+ bool IsDisplayUIScalingEnabled() const;
+
// Returns the current overscan insets for the specified |display_id|.
// Returns an empty insets (0, 0, 0, 0) if no insets are specified for
// the display.

Powered by Google App Engine
This is Rietveld 408576698