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. 4 5#include "ui/gfx/android/device_display_info.h" 6 7#include "base/logging.h" 8#include "ui/gfx/android/shared_device_display_info.h" 9 10namespace gfx { 11 12DeviceDisplayInfo::DeviceDisplayInfo() { 13} 14 15DeviceDisplayInfo::~DeviceDisplayInfo() { 16} 17 18int DeviceDisplayInfo::GetDisplayHeight() { 19 return SharedDeviceDisplayInfo::GetInstance()->GetDisplayHeight(); 20} 21 22int DeviceDisplayInfo::GetDisplayWidth() { 23 return SharedDeviceDisplayInfo::GetInstance()->GetDisplayWidth(); 24} 25 26int DeviceDisplayInfo::GetPhysicalDisplayHeight() { 27 return SharedDeviceDisplayInfo::GetInstance()->GetPhysicalDisplayHeight(); 28} 29 30int DeviceDisplayInfo::GetPhysicalDisplayWidth() { 31 return SharedDeviceDisplayInfo::GetInstance()->GetPhysicalDisplayWidth(); 32} 33 34int DeviceDisplayInfo::GetBitsPerPixel() { 35 return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerPixel(); 36} 37 38int DeviceDisplayInfo::GetBitsPerComponent() { 39 return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerComponent(); 40} 41 42double DeviceDisplayInfo::GetDIPScale() { 43 return SharedDeviceDisplayInfo::GetInstance()->GetDIPScale(); 44} 45 46int DeviceDisplayInfo::GetSmallestDIPWidth() { 47 return SharedDeviceDisplayInfo::GetInstance()->GetSmallestDIPWidth(); 48} 49 50int DeviceDisplayInfo::GetRotationDegrees() { 51 return SharedDeviceDisplayInfo::GetInstance()->GetRotationDegrees(); 52} 53 54} // namespace gfx 55