OLD | NEW |
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 Loading... |
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 |
OLD | NEW |