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

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

Issue 28053002: Add font_scale_factor_quirk pref. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master.pinned
Patch Set: Address review comments. Created 7 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_DEVICE_DISPLAY_INFO_H_ 5 #ifndef UI_GFX_ANDROID_DEVICE_DISPLAY_INFO_H_
6 #define UI_GFX_ANDROID_DEVICE_DISPLAY_INFO_H_ 6 #define UI_GFX_ANDROID_DEVICE_DISPLAY_INFO_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 19 matching lines...) Expand all
30 // Returns number of bits per pixel. 30 // Returns number of bits per pixel.
31 int GetBitsPerPixel(); 31 int GetBitsPerPixel();
32 32
33 // Returns number of bits per component. 33 // Returns number of bits per component.
34 int GetBitsPerComponent(); 34 int GetBitsPerComponent();
35 35
36 // Returns a scaling factor for Density Independent Pixel unit 36 // Returns a scaling factor for Density Independent Pixel unit
37 // (1.0 is 160dpi, 0.75 is 120dpi, 2.0 is 320dpi). 37 // (1.0 is 160dpi, 0.75 is 120dpi, 2.0 is 320dpi).
38 double GetDIPScale(); 38 double GetDIPScale();
39 39
40 // Smallest possible screen size in density-independent pixels.
41 int GetSmallestDIPWidth();
42
40 // Registers methods with JNI and returns true if succeeded. 43 // Registers methods with JNI and returns true if succeeded.
41 static bool RegisterDeviceDisplayInfo(JNIEnv* env); 44 static bool RegisterDeviceDisplayInfo(JNIEnv* env);
42 45
43 private: 46 private:
44 base::android::ScopedJavaGlobalRef<jobject> j_device_info_; 47 base::android::ScopedJavaGlobalRef<jobject> j_device_info_;
45 48
46 DISALLOW_COPY_AND_ASSIGN(DeviceDisplayInfo); 49 DISALLOW_COPY_AND_ASSIGN(DeviceDisplayInfo);
47 }; 50 };
48 51
49 } // namespace gfx 52 } // namespace gfx
50 53
51 #endif // UI_GFX_ANDROID_DEVICE_DISPLAY_INFO_H_ 54 #endif // UI_GFX_ANDROID_DEVICE_DISPLAY_INFO_H_
OLDNEW
« no previous file with comments | « ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java ('k') | ui/gfx/android/device_display_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698