OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/gfx/android/device_display_info.h" | 5 #include "ui/gfx/android/device_display_info.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ui/gfx/android/shared_device_display_info.h" | 8 #include "ui/gfx/android/shared_device_display_info.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
11 | 11 |
12 DeviceDisplayInfo::DeviceDisplayInfo() { | 12 DeviceDisplayInfo::DeviceDisplayInfo() { |
13 } | 13 } |
14 | 14 |
15 DeviceDisplayInfo::~DeviceDisplayInfo() { | 15 DeviceDisplayInfo::~DeviceDisplayInfo() { |
16 } | 16 } |
17 | 17 |
18 int DeviceDisplayInfo::GetDisplayHeight() { | 18 int DeviceDisplayInfo::GetDisplayHeight() { |
19 return SharedDeviceDisplayInfo::GetInstance()->GetDisplayHeight(); | 19 return SharedDeviceDisplayInfo::GetInstance()->GetDisplayHeight(); |
20 } | 20 } |
21 | 21 |
22 int DeviceDisplayInfo::GetDisplayWidth() { | 22 int DeviceDisplayInfo::GetDisplayWidth() { |
23 return SharedDeviceDisplayInfo::GetInstance()->GetDisplayWidth(); | 23 return SharedDeviceDisplayInfo::GetInstance()->GetDisplayWidth(); |
24 } | 24 } |
25 | 25 |
| 26 int DeviceDisplayInfo::GetPhysicalDisplayHeight() { |
| 27 return SharedDeviceDisplayInfo::GetInstance()->GetPhysicalDisplayHeight(); |
| 28 } |
| 29 |
| 30 int DeviceDisplayInfo::GetPhysicalDisplayWidth() { |
| 31 return SharedDeviceDisplayInfo::GetInstance()->GetPhysicalDisplayWidth(); |
| 32 } |
| 33 |
26 int DeviceDisplayInfo::GetBitsPerPixel() { | 34 int DeviceDisplayInfo::GetBitsPerPixel() { |
27 return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerPixel(); | 35 return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerPixel(); |
28 } | 36 } |
29 | 37 |
30 int DeviceDisplayInfo::GetBitsPerComponent() { | 38 int DeviceDisplayInfo::GetBitsPerComponent() { |
31 return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerComponent(); | 39 return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerComponent(); |
32 } | 40 } |
33 | 41 |
34 double DeviceDisplayInfo::GetDIPScale() { | 42 double DeviceDisplayInfo::GetDIPScale() { |
35 return SharedDeviceDisplayInfo::GetInstance()->GetDIPScale(); | 43 return SharedDeviceDisplayInfo::GetInstance()->GetDIPScale(); |
36 } | 44 } |
37 | 45 |
38 int DeviceDisplayInfo::GetSmallestDIPWidth() { | 46 int DeviceDisplayInfo::GetSmallestDIPWidth() { |
39 return SharedDeviceDisplayInfo::GetInstance()->GetSmallestDIPWidth(); | 47 return SharedDeviceDisplayInfo::GetInstance()->GetSmallestDIPWidth(); |
40 } | 48 } |
41 | 49 |
42 } // namespace gfx | 50 } // namespace gfx |
OLD | NEW |