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

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

Issue 11886074: Use correct favicon scale factor on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Correct name in the include guard. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/layout.cc ('k') | ui/gfx/android/device_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_COMMON_ANDROID_DEVICE_INFO_H_ 5 #ifndef UI_GFX_ANDROID_DEVICE_INFO_H_
6 #define CONTENT_COMMON_ANDROID_DEVICE_INFO_H_ 6 #define UI_GFX_ANDROID_DEVICE_INFO_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
11 #include "base/android/scoped_java_ref.h" 11 #include "base/android/scoped_java_ref.h"
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 13
14 namespace content { 14 namespace gfx {
15 15
16 // Facilitates access to device information typically only 16 // Facilitates access to device information typically only
17 // available using the Android SDK, including Display properties. 17 // available using the Android SDK, including Display properties.
18 class DeviceInfo { 18 class DeviceInfo {
19 public: 19 public:
20 DeviceInfo(); 20 DeviceInfo();
21 ~DeviceInfo(); 21 ~DeviceInfo();
22 22
23 int GetHeight(); 23 int GetHeight();
nilesh 2013/01/16 20:24:01 It will be nice to have one line documentation on
aruslan 2013/01/16 23:14:45 Done.
24 int GetWidth(); 24 int GetWidth();
25 int GetBitsPerPixel(); 25 int GetBitsPerPixel();
26 int GetBitsPerComponent(); 26 int GetBitsPerComponent();
27 double GetDPIScale(); 27 double GetDPIScale();
28 double GetRefreshRate(); 28 double GetRefreshRate();
29 std::string GetNetworkCountryIso(); 29 std::string GetNetworkCountryIso();
30 30
31 static bool RegisterDeviceInfo(JNIEnv* env);
32
31 private: 33 private:
32 base::android::ScopedJavaGlobalRef<jobject> j_device_info_; 34 base::android::ScopedJavaGlobalRef<jobject> j_device_info_;
33 35
34 DISALLOW_COPY_AND_ASSIGN(DeviceInfo); 36 DISALLOW_COPY_AND_ASSIGN(DeviceInfo);
35 }; 37 };
36 38
37 bool RegisterDeviceInfo(JNIEnv* env); 39 } // namespace gfx
38 40
39 } // namespace content 41 #endif // UI_GFX_ANDROID_DEVICE_INFO_H_
40
41 #endif // CONTENT_COMMON_ANDROID_DEVICE_INFO_H_
OLDNEW
« no previous file with comments | « ui/base/layout.cc ('k') | ui/gfx/android/device_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698