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

Unified Diff: chrome/browser/ui/views/browser_action_view.h

Issue 10827191: Convert extension action icons code to use ImageSkia instead of SkBitmap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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
Index: chrome/browser/ui/views/browser_action_view.h
diff --git a/chrome/browser/ui/views/browser_action_view.h b/chrome/browser/ui/views/browser_action_view.h
index e8a89aa2d0ddcd062c6c18b9aab5a53f3db07e59..81494b5c3fedce05ffb240f45a5d3192078e15ac 100644
--- a/chrome/browser/ui/views/browser_action_view.h
+++ b/chrome/browser/ui/views/browser_action_view.h
@@ -64,10 +64,8 @@ class BrowserActionView : public views::View {
BrowserActionButton* button() { return button_; }
- // Allocates a canvas object on the heap and draws into it the icon for the
- // view as well as the badge (if any). Caller is responsible for deleting the
- // returned object.
- gfx::Canvas* GetIconWithBadge();
+ // Gets browser action button icon with the badge.
+ gfx::ImageSkia GetIconWithBadge();
// Overridden from views::View:
virtual void Layout() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698