OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_GFX_ANDROID_SHARED_DEVICE_DISPLAY_INFO_H_ | 5 #ifndef UI_GFX_ANDROID_SHARED_DEVICE_DISPLAY_INFO_H_ |
6 #define UI_GFX_ANDROID_SHARED_DEVICE_DISPLAY_INFO_H_ | 6 #define UI_GFX_ANDROID_SHARED_DEVICE_DISPLAY_INFO_H_ |
7 | 7 |
8 #include "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
9 #include "base/basictypes.h" | 9 #include "base/macros.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
11 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 | 14 |
15 // Facilitates access to device information typically only | 15 // Facilitates access to device information typically only |
16 // available using the Android SDK, including Display properties. | 16 // available using the Android SDK, including Display properties. |
17 class SharedDeviceDisplayInfo { | 17 class SharedDeviceDisplayInfo { |
18 public: | 18 public: |
19 static SharedDeviceDisplayInfo* GetInstance(); | 19 static SharedDeviceDisplayInfo* GetInstance(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 double dip_scale_; | 72 double dip_scale_; |
73 int smallest_dip_width_; | 73 int smallest_dip_width_; |
74 int rotation_degrees_; | 74 int rotation_degrees_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(SharedDeviceDisplayInfo); | 76 DISALLOW_COPY_AND_ASSIGN(SharedDeviceDisplayInfo); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace gfx | 79 } // namespace gfx |
80 | 80 |
81 #endif // UI_GFX_ANDROID_SHARED_DEVICE_DISPLAY_INFO_H_ | 81 #endif // UI_GFX_ANDROID_SHARED_DEVICE_DISPLAY_INFO_H_ |
OLD | NEW |