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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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
« no previous file with comments | « ui/events/x/events_x.cc ('k') | ui/gfx/android/shared_device_display_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 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
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
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_
OLDNEW
« no previous file with comments | « ui/events/x/events_x.cc ('k') | ui/gfx/android/shared_device_display_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698