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

Unified Diff: ui/gfx/android/device_display_info.h

Issue 93933016: Android: Add support for returning real screen resolution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 11 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: 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();

Powered by Google App Engine
This is Rietveld 408576698