diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-05 03:34:54 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-05 03:34:54 +0000 |
commit | f106a756d10fbea1194123395be97c858b08dd95 (patch) | |
tree | 3e36c8758decec179a45b50c8b183accaa0a192e /chrome/browser/views/browser_actions_container.h | |
parent | c3a54ae2c9ac8dc5d093cc192388fdf686971b46 (diff) | |
download | chromium_src-f106a756d10fbea1194123395be97c858b08dd95.zip chromium_src-f106a756d10fbea1194123395be97c858b08dd95.tar.gz chromium_src-f106a756d10fbea1194123395be97c858b08dd95.tar.bz2 |
Now showing the browser action image (including badge) when dragging and
showing the badge in the overflow menu.
BUG=26990
TEST=Browser actions in container/overflow should show image and badge and
also while dragging back and forth.
Review URL: http://codereview.chromium.org/575016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38174 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/browser_actions_container.h')
-rw-r--r-- | chrome/browser/views/browser_actions_container.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/views/browser_actions_container.h b/chrome/browser/views/browser_actions_container.h index 600c1eb..147b48b 100644 --- a/chrome/browser/views/browser_actions_container.h +++ b/chrome/browser/views/browser_actions_container.h @@ -133,6 +133,11 @@ class BrowserActionView : public views::View { BrowserActionView(Extension* extension, BrowserActionsContainer* panel); 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(); + private: virtual void Layout(); |