| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |