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

Unified Diff: chrome/common/badge_util.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/badge_util.h ('k') | chrome/common/extensions/api/extension_action/action_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/badge_util.cc
diff --git a/chrome/common/badge_util.cc b/chrome/common/badge_util.cc
index 7ed6edf8b2bca414a0b59f2e902d9efa4a9b254f..0e255513365861a0b69c6478bcf5832a08ad01c5 100644
--- a/chrome/common/badge_util.cc
+++ b/chrome/common/badge_util.cc
@@ -145,7 +145,7 @@ void PaintBadge(gfx::Canvas* canvas,
const SkColor& text_color_in,
const SkColor& background_color_in,
int icon_width,
- extensions::Extension::ActionInfo::Type action_type) {
+ extensions::ActionInfo::Type action_type) {
if (text.empty())
return;
@@ -180,7 +180,7 @@ void PaintBadge(gfx::Canvas* canvas,
// right-aligned, but it can also be center-aligned if it is large.
int rect_height = kBadgeHeight;
int bottom_margin =
- action_type == extensions::Extension::ActionInfo::TYPE_BROWSER ?
+ action_type == extensions::ActionInfo::TYPE_BROWSER ?
kBottomMarginBrowserAction : kBottomMarginPageAction;
int rect_y = bounds.bottom() - bottom_margin - kBadgeHeight;
int rect_width = badge_width;
« no previous file with comments | « chrome/common/badge_util.h ('k') | chrome/common/extensions/api/extension_action/action_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698