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

Side by Side Diff: chrome/common/badge_util.h

Issue 1214243003: [Extensions UI] Clean up extension icon generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/skia/ImageSkia Created 5 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_COMMON_BADGE_UTIL_H_ 5 #ifndef CHROME_COMMON_BADGE_UTIL_H_
6 #define CHROME_COMMON_BADGE_UTIL_H_ 6 #define CHROME_COMMON_BADGE_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 14 matching lines...) Expand all
25 // Helper routine that returns a singleton SkPaint object configured for 25 // Helper routine that returns a singleton SkPaint object configured for
26 // rendering badge overlay text (correct font, typeface, etc). 26 // rendering badge overlay text (correct font, typeface, etc).
27 SkPaint* GetBadgeTextPaintSingleton(); 27 SkPaint* GetBadgeTextPaintSingleton();
28 28
29 // Paints badge with specified parameters to |canvas|. 29 // Paints badge with specified parameters to |canvas|.
30 void PaintBadge(gfx::Canvas* canvas, 30 void PaintBadge(gfx::Canvas* canvas,
31 const gfx::Rect& bounds, 31 const gfx::Rect& bounds,
32 const std::string& text, 32 const std::string& text,
33 const SkColor& text_color_in, 33 const SkColor& text_color_in,
34 const SkColor& background_color_in, 34 const SkColor& background_color_in,
35 int icon_width, 35 int icon_width);
36 extensions::ActionInfo::Type action_type);
37 36
38 } // namespace badge_util 37 } // namespace badge_util
39 38
40 #endif // CHROME_COMMON_BADGE_UTIL_H_ 39 #endif // CHROME_COMMON_BADGE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698