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

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: Return supported boolean. Created 7 years 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..33be06a9442f4a6a173d0d27a5fbffb84859448d 100644
--- a/ui/gfx/android/device_display_info.h
+++ b/ui/gfx/android/device_display_info.h
@@ -26,6 +26,14 @@ class GFX_EXPORT DeviceDisplayInfo {
// Returns display width in physical pixels.
int GetDisplayWidth();
+ // Returns real display height in physical pixels.
+ // If this isn't supported, display width is returned.
+ int GetRealDisplayHeight(bool& supported);
+
+ // Returns real display width in physical pixels.
+ // If this isn't supported, display width is returned.
+ int GetRealDisplayWidth(bool& supported);
+
// Returns number of bits per pixel.
int GetBitsPerPixel();

Powered by Google App Engine
This is Rietveld 408576698