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

Unified Diff: ui/gfx/nine_image_painter.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/nine_image_painter.h ('k') | ui/gfx/paint_throbber.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/nine_image_painter.cc
diff --git a/ui/gfx/nine_image_painter.cc b/ui/gfx/nine_image_painter.cc
index cfed62a828588d0fa2c4430286772420173de43a..1f14f0eea5408ee9e86b82e398cc91cabd8690c9 100644
--- a/ui/gfx/nine_image_painter.cc
+++ b/ui/gfx/nine_image_painter.cc
@@ -4,8 +4,11 @@
#include "ui/gfx/nine_image_painter.h"
+#include <stddef.h>
+
#include <limits>
+#include "base/macros.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkRect.h"
#include "third_party/skia/include/core/SkScalar.h"
@@ -79,12 +82,12 @@ Size NineImagePainter::GetMinimumSize() const {
void NineImagePainter::Paint(Canvas* canvas, const Rect& bounds) {
// When no alpha value is specified, use default value of 100% opacity.
- Paint(canvas, bounds, std::numeric_limits<uint8>::max());
+ Paint(canvas, bounds, std::numeric_limits<uint8_t>::max());
}
void NineImagePainter::Paint(Canvas* canvas,
const Rect& bounds,
- const uint8 alpha) {
+ const uint8_t alpha) {
if (IsEmpty())
return;
« no previous file with comments | « ui/gfx/nine_image_painter.h ('k') | ui/gfx/paint_throbber.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698