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

Side by Side Diff: components/favicon/core/fallback_icon_service.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "components/favicon/core/fallback_icon_service.h" 5 #include "components/favicon/core/fallback_icon_service.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 10
9 #include "components/favicon/core/fallback_icon_client.h" 11 #include "components/favicon/core/fallback_icon_client.h"
10 #include "components/favicon/core/fallback_url_util.h" 12 #include "components/favicon/core/fallback_url_util.h"
11 #include "components/favicon_base/fallback_icon_style.h" 13 #include "components/favicon_base/fallback_icon_style.h"
12 #include "third_party/skia/include/core/SkPaint.h" 14 #include "third_party/skia/include/core/SkPaint.h"
13 #include "ui/gfx/canvas.h" 15 #include "ui/gfx/canvas.h"
14 #include "ui/gfx/codec/png_codec.h" 16 #include "ui/gfx/codec/png_codec.h"
15 #include "ui/gfx/font_list.h" 17 #include "ui/gfx/font_list.h"
16 #include "ui/gfx/geometry/rect.h" 18 #include "ui/gfx/geometry/rect.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 canvas->DrawStringRectWithFlags( 79 canvas->DrawStringRectWithFlags(
78 icon_text, 80 icon_text,
79 gfx::FontList(fallback_icon_client_->GetFontNameList(), gfx::Font::NORMAL, 81 gfx::FontList(fallback_icon_client_->GetFontNameList(), gfx::Font::NORMAL,
80 font_size), 82 font_size),
81 style.text_color, 83 style.text_color,
82 gfx::Rect(kOffsetX, kOffsetY, size, size), 84 gfx::Rect(kOffsetX, kOffsetY, size, size),
83 gfx::Canvas::TEXT_ALIGN_CENTER); 85 gfx::Canvas::TEXT_ALIGN_CENTER);
84 } 86 }
85 87
86 } // namespace favicon 88 } // namespace favicon
OLDNEW
« no previous file with comments | « components/favicon/content/content_favicon_driver_unittest.cc ('k') | components/favicon/core/fallback_url_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698