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

Unified Diff: ui/gfx/android/device_display_info.cc

Issue 1505993009: Add const-specifier to DeviceDisplayInfo getters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/android/device_display_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/android/device_display_info.cc
diff --git a/ui/gfx/android/device_display_info.cc b/ui/gfx/android/device_display_info.cc
index 4d2c80c09d6c1d9c4c87102e0138901222943fb9..5611a7476b32bd1eae2084959ba1993158568589 100644
--- a/ui/gfx/android/device_display_info.cc
+++ b/ui/gfx/android/device_display_info.cc
@@ -15,39 +15,39 @@ DeviceDisplayInfo::DeviceDisplayInfo() {
DeviceDisplayInfo::~DeviceDisplayInfo() {
}
-int DeviceDisplayInfo::GetDisplayHeight() {
+int DeviceDisplayInfo::GetDisplayHeight() const {
return SharedDeviceDisplayInfo::GetInstance()->GetDisplayHeight();
}
-int DeviceDisplayInfo::GetDisplayWidth() {
+int DeviceDisplayInfo::GetDisplayWidth() const {
return SharedDeviceDisplayInfo::GetInstance()->GetDisplayWidth();
}
-int DeviceDisplayInfo::GetPhysicalDisplayHeight() {
+int DeviceDisplayInfo::GetPhysicalDisplayHeight() const {
return SharedDeviceDisplayInfo::GetInstance()->GetPhysicalDisplayHeight();
}
-int DeviceDisplayInfo::GetPhysicalDisplayWidth() {
+int DeviceDisplayInfo::GetPhysicalDisplayWidth() const {
return SharedDeviceDisplayInfo::GetInstance()->GetPhysicalDisplayWidth();
}
-int DeviceDisplayInfo::GetBitsPerPixel() {
+int DeviceDisplayInfo::GetBitsPerPixel() const {
return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerPixel();
}
-int DeviceDisplayInfo::GetBitsPerComponent() {
+int DeviceDisplayInfo::GetBitsPerComponent() const {
return SharedDeviceDisplayInfo::GetInstance()->GetBitsPerComponent();
}
-double DeviceDisplayInfo::GetDIPScale() {
+double DeviceDisplayInfo::GetDIPScale() const {
return SharedDeviceDisplayInfo::GetInstance()->GetDIPScale();
}
-int DeviceDisplayInfo::GetSmallestDIPWidth() {
+int DeviceDisplayInfo::GetSmallestDIPWidth() const {
return SharedDeviceDisplayInfo::GetInstance()->GetSmallestDIPWidth();
}
-int DeviceDisplayInfo::GetRotationDegrees() {
+int DeviceDisplayInfo::GetRotationDegrees() const {
return SharedDeviceDisplayInfo::GetInstance()->GetRotationDegrees();
}
« no previous file with comments | « ui/gfx/android/device_display_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698