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

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

Issue 23498059: Remove last dependencies on ui/base from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last rebase Created 7 years, 2 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/gfx/DEPS ('k') | ui/gfx/android/java_bitmap.h » ('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 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
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 #include "ui/gfx/gfx_export.h" 13 #include "ui/gfx/gfx_export.h"
14 14
15 namespace gfx { 15 namespace gfx {
16 16
17 // Facilitates access to device information typically only 17 // Facilitates access to device information typically only
18 // available using the Android SDK, including Display properties. 18 // available using the Android SDK, including Display properties.
19 class UI_EXPORT DeviceDisplayInfo { 19 class GFX_EXPORT DeviceDisplayInfo {
20 public: 20 public:
21 DeviceDisplayInfo(); 21 DeviceDisplayInfo();
22 ~DeviceDisplayInfo(); 22 ~DeviceDisplayInfo();
23 23
24 // Returns display height in physical pixels. 24 // Returns display height in physical pixels.
25 int GetDisplayHeight(); 25 int GetDisplayHeight();
26 26
27 // Returns display width in physical pixels. 27 // Returns display width in physical pixels.
28 int GetDisplayWidth(); 28 int GetDisplayWidth();
29 29
(...skipping 12 matching lines...) Expand all
42 42
43 private: 43 private:
44 base::android::ScopedJavaGlobalRef<jobject> j_device_info_; 44 base::android::ScopedJavaGlobalRef<jobject> j_device_info_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(DeviceDisplayInfo); 46 DISALLOW_COPY_AND_ASSIGN(DeviceDisplayInfo);
47 }; 47 };
48 48
49 } // namespace gfx 49 } // namespace gfx
50 50
51 #endif // UI_GFX_ANDROID_DEVICE_DISPLAY_INFO_H_ 51 #endif // UI_GFX_ANDROID_DEVICE_DISPLAY_INFO_H_
OLDNEW
« no previous file with comments | « ui/gfx/DEPS ('k') | ui/gfx/android/java_bitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698