mojo: Fix map of booleans for python bindings.
[chromium-blink-merge.git] / ui / gfx / android / device_display_info.cc
blob4d2c80c09d6c1d9c4c87102e0138901222943fb9
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
3 // found in the LICENSE file.
5 #include "ui/gfx/android/device_display_info.h"
7 #include "base/logging.h"
8 #include "ui/gfx/android/shared_device_display_info.h"
10 namespace gfx {
12 DeviceDisplayInfo::DeviceDisplayInfo() {
15 DeviceDisplayInfo::~DeviceDisplayInfo() {
18 int DeviceDisplayInfo::GetDisplayHeight() {
19 return SharedDeviceDisplayInfo::GetInstance()->GetDisplayHeight();
22 int DeviceDisplayInfo::GetDisplayWidth() {
23 return SharedDeviceDisplayInfo::GetInstance()->GetDisplayWidth();
26 int DeviceDisplayInfo::GetPhysicalDisplayHeight() {
27 return SharedDeviceDisplayInfo::GetInstance()->GetPhysicalDisplayHeight();
30 int DeviceDisplayInfo::GetPhysicalDisplayWidth() {
31 return SharedDeviceDisplayInfo::GetInstance()->GetPhysicalDisplayWidth();
34 int DeviceDisplayInfo::GetBitsPerPixel() {
35 return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerPixel();
38 int DeviceDisplayInfo::GetBitsPerComponent() {
39 return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerComponent();
42 double DeviceDisplayInfo::GetDIPScale() {
43 return SharedDeviceDisplayInfo::GetInstance()->GetDIPScale();
46 int DeviceDisplayInfo::GetSmallestDIPWidth() {
47 return SharedDeviceDisplayInfo::GetInstance()->GetSmallestDIPWidth();
50 int DeviceDisplayInfo::GetRotationDegrees() {
51 return SharedDeviceDisplayInfo::GetInstance()->GetRotationDegrees();
54 } // namespace gfx