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 #ifndef UI_GFX_ANDROID_DEVICE_DISPLAY_INFO_H_
6 #define UI_GFX_ANDROID_DEVICE_DISPLAY_INFO_H_
11 #include "base/basictypes.h"
12 #include "ui/gfx/gfx_export.h"
16 // Facilitates access to device information typically only
17 // available using the Android SDK, including Display properties.
18 class GFX_EXPORT DeviceDisplayInfo {
23 // Returns display height in physical pixels.
24 int GetDisplayHeight();
26 // Returns display width in physical pixels.
27 int GetDisplayWidth();
29 // Returns number of bits per pixel.
30 int GetBitsPerPixel();
32 // Returns number of bits per component.
33 int GetBitsPerComponent();
35 // Returns a scaling factor for Density Independent Pixel unit
36 // (1.0 is 160dpi, 0.75 is 120dpi, 2.0 is 320dpi).
39 // Smallest possible screen size in density-independent pixels.
40 int GetSmallestDIPWidth();
43 DISALLOW_COPY_AND_ASSIGN(DeviceDisplayInfo);
48 #endif // UI_GFX_ANDROID_DEVICE_DISPLAY_INFO_H_