diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-02 01:14:46 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-02 01:14:46 +0000 |
commit | 7a0f5a3abf37e21eb15f4fe4058e917426e2e105 (patch) | |
tree | 0fc8f80d0e36998ecca30c8a35aee11152f43e63 /chrome/browser/views/browser_actions_container.h | |
parent | abd86cb1650db1fe9d14876006a93a10262f3fe1 (diff) | |
download | chromium_src-7a0f5a3abf37e21eb15f4fe4058e917426e2e105.zip chromium_src-7a0f5a3abf37e21eb15f4fe4058e917426e2e105.tar.gz chromium_src-7a0f5a3abf37e21eb15f4fe4058e917426e2e105.tar.bz2 |
Check in http://codereview.chromium.org/259004 again.
First cut at badge implementation.
TBR=erikkay@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27812 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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/views/browser_actions_container.h b/chrome/browser/views/browser_actions_container.h index fd83437..3f1e93f6 100644 --- a/chrome/browser/views/browser_actions_container.h +++ b/chrome/browser/views/browser_actions_container.h @@ -55,6 +55,14 @@ class BrowserActionsContainer : public views::View, const NotificationDetails& details); private: + // We override PaintChildren so that we can paint the badges on top of them. + virtual void PaintChildren(gfx::Canvas* canvas); + + // Paints an individual badge. + virtual void PaintBadge(gfx::Canvas* canvas, views::TextButton* button, + const SkColor& badge_color, + const std::string& text); + // The vector of browser actions (icons/image buttons for each action). std::vector<views::TextButton*> browser_action_views_; |