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/basictypes.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 jint display_height, | 37 jint display_height, |
38 jint display_width, | 38 jint display_width, |
39 jint physical_display_height, | 39 jint physical_display_height, |
40 jint physical_display_width, | 40 jint physical_display_width, |
41 jint bits_per_pixel, | 41 jint bits_per_pixel, |
42 jint bits_per_component, | 42 jint bits_per_component, |
43 jdouble dip_scale, | 43 jdouble dip_scale, |
44 jint smallest_dip_width, | 44 jint smallest_dip_width, |
45 jint rotation_degrees); | 45 jint rotation_degrees); |
46 private: | 46 private: |
47 friend struct DefaultSingletonTraits<SharedDeviceDisplayInfo>; | 47 friend struct base::DefaultSingletonTraits<SharedDeviceDisplayInfo>; |
48 | 48 |
49 SharedDeviceDisplayInfo(); | 49 SharedDeviceDisplayInfo(); |
50 ~SharedDeviceDisplayInfo(); | 50 ~SharedDeviceDisplayInfo(); |
51 void UpdateDisplayInfo(JNIEnv* env, | 51 void UpdateDisplayInfo(JNIEnv* env, |
52 jobject jobj, | 52 jobject jobj, |
53 jint display_height, | 53 jint display_height, |
54 jint display_width, | 54 jint display_width, |
55 jint physical_display_height, | 55 jint physical_display_height, |
56 jint physical_display_width, | 56 jint physical_display_width, |
57 jint bits_per_pixel, | 57 jint bits_per_pixel, |
(...skipping 14 matching lines...) Expand all 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 |