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

Side by Side Diff: ui/display/display.h

Issue 2855143004: Implements a display scale tray setting behind a chrome switch (Closed)
Patch Set: Sync with ToT Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ui/display/display.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_DISPLAY_DISPLAY_H_ 5 #ifndef UI_DISPLAY_DISPLAY_H_
6 #define UI_DISPLAY_DISPLAY_H_ 6 #define UI_DISPLAY_DISPLAY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // Indicates if a device scale factor is being explicitly enforced from the 80 // Indicates if a device scale factor is being explicitly enforced from the
81 // command line via "--force-device-scale-factor". 81 // command line via "--force-device-scale-factor".
82 static bool HasForceDeviceScaleFactor(); 82 static bool HasForceDeviceScaleFactor();
83 83
84 // Resets the caches used to determine if a device scale factor is being 84 // Resets the caches used to determine if a device scale factor is being
85 // forced from the command line via "--force-device-scale-factor", and thus 85 // forced from the command line via "--force-device-scale-factor", and thus
86 // ensures that the command line is reevaluated. 86 // ensures that the command line is reevaluated.
87 static void ResetForceDeviceScaleFactorForTesting(); 87 static void ResetForceDeviceScaleFactorForTesting();
88 88
89 // Resets the cache and sets a new force device scale factor.
90 static void SetForceDeviceScaleFactor(double dsf);
91
89 // Sets/Gets unique identifier associated with the display. 92 // Sets/Gets unique identifier associated with the display.
90 // -1 means invalid display and it doesn't not exit. 93 // -1 means invalid display and it doesn't not exit.
91 int64_t id() const { return id_; } 94 int64_t id() const { return id_; }
92 void set_id(int64_t id) { id_ = id; } 95 void set_id(int64_t id) { id_ = id; }
93 96
94 // Gets/Sets the display's bounds in Screen's coordinates. 97 // Gets/Sets the display's bounds in Screen's coordinates.
95 const gfx::Rect& bounds() const { return bounds_; } 98 const gfx::Rect& bounds() const { return bounds_; }
96 void set_bounds(const gfx::Rect& bounds) { bounds_ = bounds; } 99 void set_bounds(const gfx::Rect& bounds) { bounds_ = bounds; }
97 100
98 // Gets/Sets the display's work area in Screen's coordinates. 101 // Gets/Sets the display's work area in Screen's coordinates.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 gfx::Size maximum_cursor_size_; 211 gfx::Size maximum_cursor_size_;
209 gfx::ICCProfile icc_profile_; 212 gfx::ICCProfile icc_profile_;
210 int color_depth_; 213 int color_depth_;
211 int depth_per_component_; 214 int depth_per_component_;
212 bool is_monochrome_ = false; 215 bool is_monochrome_ = false;
213 }; 216 };
214 217
215 } // namespace display 218 } // namespace display
216 219
217 #endif // UI_DISPLAY_DISPLAY_H_ 220 #endif // UI_DISPLAY_DISPLAY_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ui/display/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698