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

Unified Diff: ui/gfx/display.h

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/color_utils.cc ('k') | ui/gfx/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/display.h
diff --git a/ui/gfx/display.h b/ui/gfx/display.h
index b24f2748c45304f26e705120a8af98626e0c3acf..c6df7e703ad54dba04977ee2ce6ed1a6d9df791a 100644
--- a/ui/gfx/display.h
+++ b/ui/gfx/display.h
@@ -5,7 +5,8 @@
#ifndef UI_GFX_DISPLAY_H_
#define UI_GFX_DISPLAY_H_
-#include "base/basictypes.h"
+#include <stdint.h>
+
#include "base/compiler_specific.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/gfx_export.h"
@@ -51,12 +52,12 @@ class GFX_EXPORT Display {
TOUCH_SUPPORT_UNAVAILABLE,
};
- enum : int64 { kInvalidDisplayID = -1 };
+ enum : int64_t { kInvalidDisplayID = -1 };
// Creates a display with kInvalidDisplayID as default.
Display();
- explicit Display(int64 id);
- Display(int64 id, const Rect& bounds);
+ explicit Display(int64_t id);
+ Display(int64_t id, const Rect& bounds);
~Display();
// Returns the forced device scale factor, which is given by
@@ -74,8 +75,8 @@ class GFX_EXPORT Display {
// Sets/Gets unique identifier associated with the display.
// -1 means invalid display and it doesn't not exit.
- int64 id() const { return id_; }
- void set_id(int64 id) { id_ = id; }
+ int64_t id() const { return id_; }
+ void set_id(int64_t id) { id_ = id; }
// Gets/Sets the display's bounds in gfx::Screen's coordinates.
const Rect& bounds() const { return bounds_; }
@@ -135,17 +136,17 @@ class GFX_EXPORT Display {
bool IsInternal() const;
// Gets/Sets an id of display corresponding to internal panel.
- static int64 InternalDisplayId();
- static void SetInternalDisplayId(int64 internal_display_id);
+ static int64_t InternalDisplayId();
+ static void SetInternalDisplayId(int64_t internal_display_id);
// Test if the |id| is for the internal display if any.
- static bool IsInternalDisplayId(int64 id);
+ static bool IsInternalDisplayId(int64_t id);
// True if there is an internal display.
static bool HasInternalDisplay();
private:
- int64 id_;
+ int64_t id_;
Rect bounds_;
Rect work_area_;
float device_scale_factor_;
« no previous file with comments | « ui/gfx/color_utils.cc ('k') | ui/gfx/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698