Index: ui/gfx/display.h |
diff --git a/ui/gfx/display.h b/ui/gfx/display.h |
index c6df7e703ad54dba04977ee2ce6ed1a6d9df791a..357016985a866a22e80ab09dc3c2f74fd9d453a4 100644 |
--- a/ui/gfx/display.h |
+++ b/ui/gfx/display.h |
@@ -135,6 +135,13 @@ class GFX_EXPORT Display { |
// True if the display corresponds to internal panel. |
bool IsInternal() const; |
+ // True if the physical size information is available. |
+ bool IsPhysicalSizeAvailable() const; |
sky
2016/01/13 21:00:10
Is there a compelling reason to add api here? I do
Bret
2016/01/14 01:28:23
I talked with Scott and he's right, I'll revert th
|
+ |
+ // Gets/Sets the physical dimensions of the display in millimeters. |
+ gfx::Size GetPhysicalSizeMm() const; |
+ void SetPhysicalSizeMm(gfx::Size physical_size); |
+ |
// Gets/Sets an id of display corresponding to internal panel. |
static int64_t InternalDisplayId(); |
static void SetInternalDisplayId(int64_t internal_display_id); |
@@ -152,6 +159,7 @@ class GFX_EXPORT Display { |
float device_scale_factor_; |
Rotation rotation_; |
TouchSupport touch_support_; |
+ gfx::Size physical_size_mm_; |
}; |
} // namespace gfx |