Index: ui/gfx/android/device_display_info.h |
diff --git a/ui/gfx/android/device_display_info.h b/ui/gfx/android/device_display_info.h |
index 83968e9b51eb537edcea484d7c39863510becd15..2c6db28df1fb4d39cb9605457a6f2035690af8d2 100644 |
--- a/ui/gfx/android/device_display_info.h |
+++ b/ui/gfx/android/device_display_info.h |
@@ -26,6 +26,18 @@ class GFX_EXPORT DeviceDisplayInfo { |
// Returns display width in physical pixels. |
int GetDisplayWidth(); |
+ // Returns real display height in physical pixels. |
+ // This version does not subtract window decorations etc. |
+ // WARNING: This is only supported on JB-MR1 (sdk >= 17). Either |
+ // check the SDK-level, or check for '0' being returned. |
+ int GetPhysicalDisplayHeight(); |
+ |
+ // Returns real display width in physical pixels. |
+ // This version does not subtract window decorations etc. |
+ // WARNING: This is only supported on JB-MR1 (sdk >= 17). Either |
+ // check the SDK-level, or check for '0' being returned. |
+ int GetPhysicalDisplayWidth(); |
+ |
// Returns number of bits per pixel. |
int GetBitsPerPixel(); |