Remove WebKitTestRunner::setClientWindowRect.
[chromium-blink-merge.git] / ui / gfx / android / device_display_info.cc
blob2de8440e1d3e2b41e9b7b0bc5384188d7fd8b929
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::GetBitsPerPixel() {
27 return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerPixel();
30 int DeviceDisplayInfo::GetBitsPerComponent() {
31 return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerComponent();
34 double DeviceDisplayInfo::GetDIPScale() {
35 return SharedDeviceDisplayInfo::GetInstance()->GetDIPScale();
38 int DeviceDisplayInfo::GetSmallestDIPWidth() {
39 return SharedDeviceDisplayInfo::GetInstance()->GetSmallestDIPWidth();
42 } // namespace gfx