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

Unified Diff: ui/gfx/android/shared_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/shared_device_display_info.h
diff --git a/ui/gfx/android/shared_device_display_info.h b/ui/gfx/android/shared_device_display_info.h
index 1e1fc0c666244edb1a96b060a1472ba1d8e4c852..ef73a3cb49d34f28810bab3b19ac84706d02f1a2 100644
--- a/ui/gfx/android/shared_device_display_info.h
+++ b/ui/gfx/android/shared_device_display_info.h
@@ -20,6 +20,8 @@ class SharedDeviceDisplayInfo {
int GetDisplayHeight();
int GetDisplayWidth();
+ int GetRealDisplayHeight();
+ int GetRealDisplayWidth();
int GetBitsPerPixel();
no sievers 2013/12/20 19:32:45 nit: I think GetPhysicalDisplayWidth/Height() woul
epennerAtGoogle 2013/12/20 19:42:55 Will do.
int GetBitsPerComponent();
double GetDIPScale();
@@ -32,6 +34,8 @@ class SharedDeviceDisplayInfo {
jobject jobj,
jint display_height,
jint display_width,
+ jint real_display_height,
+ jint real_display_width,
jint bits_per_pixel,
jint bits_per_component,
jdouble dip_scale,
@@ -45,6 +49,8 @@ class SharedDeviceDisplayInfo {
jobject jobj,
jint display_height,
jint display_width,
+ jint real_display_height,
+ jint real_display_width,
jint bits_per_pixel,
jint bits_per_component,
jdouble dip_scale,
@@ -55,6 +61,8 @@ class SharedDeviceDisplayInfo {
int display_height_;
int display_width_;
+ int real_display_height_;
+ int real_display_width_;
int bits_per_pixel_;
int bits_per_component_;
double dip_scale_;

Powered by Google App Engine
This is Rietveld 408576698