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

Unified Diff: ui/gfx/display.cc

Issue 1543183002: Switch to standard integer types in ui/gfx/. (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/display.h ('k') | ui/gfx/display_change_notifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/display.cc
diff --git a/ui/gfx/display.cc b/ui/gfx/display.cc
index e31e737f1806600f5af322fab94a5f0baa0ceed2..1777e87e5433822f6769e053a6459a0cd18499dd 100644
--- a/ui/gfx/display.cc
+++ b/ui/gfx/display.cc
@@ -10,6 +10,7 @@
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
+#include "build/build_config.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/point_conversions.h"
#include "ui/gfx/geometry/point_f.h"
@@ -48,7 +49,7 @@ float GetForcedDeviceScaleFactorImpl() {
return static_cast<float>(scale_in_double);
}
-int64 internal_display_id_ = -1;
+int64_t internal_display_id_ = -1;
} // namespace
@@ -79,14 +80,13 @@ Display::Display()
touch_support_(TOUCH_SUPPORT_UNKNOWN) {
}
-Display::Display(int64 id)
+Display::Display(int64_t id)
: id_(id),
device_scale_factor_(GetForcedDeviceScaleFactor()),
rotation_(ROTATE_0),
- touch_support_(TOUCH_SUPPORT_UNKNOWN) {
-}
+ touch_support_(TOUCH_SUPPORT_UNKNOWN) {}
-Display::Display(int64 id, const gfx::Rect& bounds)
+Display::Display(int64_t id, const gfx::Rect& bounds)
: id_(id),
bounds_(bounds),
work_area_(bounds),
@@ -196,18 +196,18 @@ bool Display::IsInternal() const {
}
// static
-int64 Display::InternalDisplayId() {
+int64_t Display::InternalDisplayId() {
DCHECK_NE(kInvalidDisplayID, internal_display_id_);
return internal_display_id_;
}
// static
-void Display::SetInternalDisplayId(int64 internal_display_id) {
+void Display::SetInternalDisplayId(int64_t internal_display_id) {
internal_display_id_ = internal_display_id;
}
// static
-bool Display::IsInternalDisplayId(int64 display_id) {
+bool Display::IsInternalDisplayId(int64_t display_id) {
DCHECK_NE(kInvalidDisplayID, display_id);
return HasInternalDisplay() && internal_display_id_ == display_id;
}
« no previous file with comments | « ui/gfx/display.h ('k') | ui/gfx/display_change_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698