12a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
22a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
32a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// found in the LICENSE file.
42a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
52a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#include "ui/gfx/android/device_display_info.h"
62a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
72a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#include "base/logging.h"
81e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#include "ui/gfx/android/shared_device_display_info.h"
92a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)namespace gfx {
112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)DeviceDisplayInfo::DeviceDisplayInfo() {
132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)}
142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)DeviceDisplayInfo::~DeviceDisplayInfo() {
162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)}
172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)int DeviceDisplayInfo::GetDisplayHeight() {
191e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  return SharedDeviceDisplayInfo::GetInstance()->GetDisplayHeight();
202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)}
212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)int DeviceDisplayInfo::GetDisplayWidth() {
231e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  return SharedDeviceDisplayInfo::GetInstance()->GetDisplayWidth();
242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)}
252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)int DeviceDisplayInfo::GetPhysicalDisplayHeight() {
275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  return SharedDeviceDisplayInfo::GetInstance()->GetPhysicalDisplayHeight();
285d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)}
295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
305d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)int DeviceDisplayInfo::GetPhysicalDisplayWidth() {
315d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  return SharedDeviceDisplayInfo::GetInstance()->GetPhysicalDisplayWidth();
325d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)}
335d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)int DeviceDisplayInfo::GetBitsPerPixel() {
351e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerPixel();
362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)}
372a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
382a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)int DeviceDisplayInfo::GetBitsPerComponent() {
391e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerComponent();
402a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)}
412a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
422a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)double DeviceDisplayInfo::GetDIPScale() {
431e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  return SharedDeviceDisplayInfo::GetInstance()->GetDIPScale();
442a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)}
452a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
468bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)int DeviceDisplayInfo::GetSmallestDIPWidth() {
471e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  return SharedDeviceDisplayInfo::GetInstance()->GetSmallestDIPWidth();
482a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)}
492a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
500529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochint DeviceDisplayInfo::GetRotationDegrees() {
510529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch  return SharedDeviceDisplayInfo::GetInstance()->GetRotationDegrees();
520529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch}
530529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch
542a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)}  // namespace gfx
55