summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/browser_actions_container.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-02 01:14:46 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-02 01:14:46 +0000
commit7a0f5a3abf37e21eb15f4fe4058e917426e2e105 (patch)
tree0fc8f80d0e36998ecca30c8a35aee11152f43e63 /chrome/browser/views/browser_actions_container.h
parentabd86cb1650db1fe9d14876006a93a10262f3fe1 (diff)
downloadchromium_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.h8
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_;