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

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

Issue 11588004: Move ScriptBadge, ActionInfo out of Extension; preparation for BrowserAction (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for CQ Created 7 years, 11 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/badge_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/string16.h" 10 #include "base/string16.h"
11 #include "chrome/common/extensions/extension.h" 11 #include "chrome/common/extensions/api/extension_action/action_info.h"
12 #include "third_party/skia/include/core/SkBitmap.h" 12 #include "third_party/skia/include/core/SkBitmap.h"
13 13
14 class SkPaint; 14 class SkPaint;
15 15
16 namespace gfx { 16 namespace gfx {
17 class Canvas; 17 class Canvas;
18 class Rect; 18 class Rect;
19 } 19 }
20 20
21 // badge_util provides a set of helper routines for rendering dynamically 21 // badge_util provides a set of helper routines for rendering dynamically
(...skipping 12 matching lines...) Expand all
34 const string16& text, 34 const string16& text,
35 const string16& fallback); 35 const string16& fallback);
36 36
37 // Paints badge with specified parameters to |canvas|. 37 // Paints badge with specified parameters to |canvas|.
38 void PaintBadge(gfx::Canvas* canvas, 38 void PaintBadge(gfx::Canvas* canvas,
39 const gfx::Rect& bounds, 39 const gfx::Rect& bounds,
40 const std::string& text, 40 const std::string& text,
41 const SkColor& text_color_in, 41 const SkColor& text_color_in,
42 const SkColor& background_color_in, 42 const SkColor& background_color_in,
43 int icon_width, 43 int icon_width,
44 extensions::Extension::ActionInfo::Type action_type); 44 extensions::ActionInfo::Type action_type);
45 45
46 } // namespace badge_util; 46 } // namespace badge_util;
47 47
48 #endif // CHROME_COMMON_BADGE_UTIL_H_ 48 #endif // CHROME_COMMON_BADGE_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/badge_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698