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

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: Add temp point and fix braces. 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
« no previous file with comments | « ui/gfx/android/device_display_info.cc ('k') | ui/gfx/android/shared_device_display_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7d81353d11368261fd324a8c9cbae278db955434 100644
--- a/ui/gfx/android/shared_device_display_info.h
+++ b/ui/gfx/android/shared_device_display_info.h
@@ -18,8 +18,11 @@ class SharedDeviceDisplayInfo {
public:
static SharedDeviceDisplayInfo* GetInstance();
+ // See documentation in DeviceDisplayInfo.java
int GetDisplayHeight();
int GetDisplayWidth();
+ int GetPhysicalDisplayHeight();
+ int GetPhysicalDisplayWidth();
int GetBitsPerPixel();
int GetBitsPerComponent();
double GetDIPScale();
@@ -32,6 +35,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 +50,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 +62,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_;
« no previous file with comments | « ui/gfx/android/device_display_info.cc ('k') | ui/gfx/android/shared_device_display_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698