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

Unified Diff: ash/display/display_info.h

Issue 1289043002: Hookup device dpi for ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use 96 for black listed displays Created 5 years, 3 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_info.h
diff --git a/ash/display/display_info.h b/ash/display/display_info.h
index 4261da939192979c48bc1ae26c108b8197c18e0c..57cd18a26c6b1a9da3706837ba3d076dfdfe73ab 100644
--- a/ash/display/display_info.h
+++ b/ash/display/display_info.h
@@ -122,6 +122,10 @@ class ASH_EXPORT DisplayInfo {
float device_scale_factor() const { return device_scale_factor_; }
void set_device_scale_factor(float scale) { device_scale_factor_ = scale; }
+ // Gets/Sets the device DPI of the display.
+ float device_dpi() const { return device_dpi_; }
+ void set_device_dpi(float dpi) { device_dpi_ = dpi; }
+
// The native bounds for the display. The size of this can be
// different from the |size_in_pixel| when overscan insets are set
// and/or |configured_ui_scale_| is set.
@@ -260,6 +264,9 @@ class ASH_EXPORT DisplayInfo {
float device_scale_factor_;
gfx::Rect bounds_in_native_;
+ // This specifies the device's DPI.
+ float device_dpi_;
+
// The size of the display in use. The size can be different from the size
// of |bounds_in_native_| if the display has overscan insets and/or rotation.
gfx::Size size_in_pixel_;

Powered by Google App Engine
This is Rietveld 408576698