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

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: 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/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..9ab2fd02ef079155c6999b269a409a03dd111393 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 GetPhysicalDisplayHeight();
bulach 2014/01/08 10:34:57 nit: since this is the effective API via GetInstan
+ int GetPhysicalDisplayWidth();
int GetBitsPerPixel();
int GetBitsPerComponent();
double GetDIPScale();
@@ -32,6 +34,8 @@ class SharedDeviceDisplayInfo {
jobject jobj,
jint display_height,
jint display_width,
+ jint physical_display_height,
+ jint physical_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 physical_display_height,
+ jint physical_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 physical_display_height_;
+ int physical_display_width_;
int bits_per_pixel_;
int bits_per_component_;
double dip_scale_;

Powered by Google App Engine
This is Rietveld 408576698