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

Unified Diff: chrome/browser/views/browser_actions_container.h

Issue 259004: First cut at badge implementation. Right now it just uses static (Closed)
Patch Set: cleanup Created 11 years, 3 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/views/browser_actions_container.h
diff --git a/chrome/browser/views/browser_actions_container.h b/chrome/browser/views/browser_actions_container.h
index fd8343753d92bd6bba71b8b4fdbc470437cb40b6..3f1e93f669362e0a8269214dfb908d961c252277 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_;

Powered by Google App Engine
This is Rietveld 408576698