Chromium Code Reviews| Index: ui/gfx/android/device_display_info.cc |
| diff --git a/ui/gfx/android/device_display_info.cc b/ui/gfx/android/device_display_info.cc |
| index 2de8440e1d3e2b41e9b7b0bc5384188d7fd8b929..90d060cd7595be726e52b741dabb05473e9f1152 100644 |
| --- a/ui/gfx/android/device_display_info.cc |
| +++ b/ui/gfx/android/device_display_info.cc |
| @@ -23,6 +23,20 @@ int DeviceDisplayInfo::GetDisplayWidth() { |
| return SharedDeviceDisplayInfo::GetInstance()->GetDisplayWidth(); |
| } |
| +int DeviceDisplayInfo::GetRealDisplayHeight(bool& supported) { |
| + int height = SharedDeviceDisplayInfo::GetInstance()->GetRealDisplayHeight(); |
| + if (!(supported = height > 0)) |
|
no sievers
2013/12/20 19:51:19
And could we just return 0 here and below if not s
|
| + height = GetDisplayHeight(); |
| + return height; |
| +} |
| + |
| +int DeviceDisplayInfo::GetRealDisplayWidth(bool& supported) { |
| + int width = SharedDeviceDisplayInfo::GetInstance()->GetRealDisplayWidth(); |
| + if (!(supported = width > 0)) |
| + width = GetDisplayWidth(); |
| + return width; |
| +} |
| + |
| int DeviceDisplayInfo::GetBitsPerPixel() { |
| return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerPixel(); |
| } |