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

Unified Diff: chrome/browser/gtk/browser_actions_toolbar_gtk.h

Issue 306044: Refactor implementation of BrowserActions, and add support for (Closed)
Patch Set: Make it work on linux too Created 11 years, 2 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
« no previous file with comments | « chrome/browser/extensions/extensions_service.cc ('k') | chrome/browser/gtk/browser_actions_toolbar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/browser_actions_toolbar_gtk.h
diff --git a/chrome/browser/gtk/browser_actions_toolbar_gtk.h b/chrome/browser/gtk/browser_actions_toolbar_gtk.h
index 421088972501b7c13e5ddf707f1c098ef7a866df..015b5c9c13e9dd5ff16159170fac43c29a0c3835 100644
--- a/chrome/browser/gtk/browser_actions_toolbar_gtk.h
+++ b/chrome/browser/gtk/browser_actions_toolbar_gtk.h
@@ -29,6 +29,14 @@ class BrowserActionsToolbarGtk : public NotificationObserver {
int button_count() { return extension_button_map_.size(); }
+ Browser* browser() { return browser_; }
+
+ // Returns the currently selected tab ID, or -1 if there is none.
+ int GetCurrentTabId();
+
+ // Update the display of all buttons.
+ void Update();
+
// NotificationObserver implementation.
void Observe(NotificationType type,
const NotificationSource& source,
@@ -63,7 +71,9 @@ class BrowserActionsToolbarGtk : public NotificationObserver {
// Map from extension ID to BrowserActionButton, which is a wrapper for
// a chrome button and related functionality. There should be one entry
// for every extension that has a browser action.
- std::map<std::string, linked_ptr<BrowserActionButton> > extension_button_map_;
+ typedef std::map<std::string, linked_ptr<BrowserActionButton> >
+ ExtensionButtonMap;
+ ExtensionButtonMap extension_button_map_;
DISALLOW_COPY_AND_ASSIGN(BrowserActionsToolbarGtk);
};
« no previous file with comments | « chrome/browser/extensions/extensions_service.cc ('k') | chrome/browser/gtk/browser_actions_toolbar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698