Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: ui/gfx/android/device_display_info.cc

Issue 2623653002: android: Remove DeviceDisplayInfo (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gfx/android/device_display_info.h ('k') | ui/gfx/android/gfx_jni_registrar.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
10 namespace gfx {
11
12 DeviceDisplayInfo::DeviceDisplayInfo() {
13 }
14
15 DeviceDisplayInfo::~DeviceDisplayInfo() {
16 }
17
18 int DeviceDisplayInfo::GetDisplayHeight() const {
19 return SharedDeviceDisplayInfo::GetInstance()->GetDisplayHeight();
20 }
21
22 int DeviceDisplayInfo::GetDisplayWidth() const {
23 return SharedDeviceDisplayInfo::GetInstance()->GetDisplayWidth();
24 }
25
26 int DeviceDisplayInfo::GetPhysicalDisplayHeight() const {
27 return SharedDeviceDisplayInfo::GetInstance()->GetPhysicalDisplayHeight();
28 }
29
30 int DeviceDisplayInfo::GetPhysicalDisplayWidth() const {
31 return SharedDeviceDisplayInfo::GetInstance()->GetPhysicalDisplayWidth();
32 }
33
34 int DeviceDisplayInfo::GetBitsPerPixel() const {
35 return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerPixel();
36 }
37
38 int DeviceDisplayInfo::GetBitsPerComponent() const {
39 return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerComponent();
40 }
41
42 double DeviceDisplayInfo::GetDIPScale() const {
43 return SharedDeviceDisplayInfo::GetInstance()->GetDIPScale();
44 }
45
46 int DeviceDisplayInfo::GetSmallestDIPWidth() const {
47 return SharedDeviceDisplayInfo::GetInstance()->GetSmallestDIPWidth();
48 }
49
50 int DeviceDisplayInfo::GetRotationDegrees() const {
51 return SharedDeviceDisplayInfo::GetInstance()->GetRotationDegrees();
52 }
53
54 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/android/device_display_info.h ('k') | ui/gfx/android/gfx_jni_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698