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

Side by Side Diff: chrome/browser/ui/gtk/browser_actions_toolbar_gtk.h

Issue 10700007: Page actions behave as disableable browser actions when script badges are enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: estade + sky Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // BrowserActions. 53 // BrowserActions.
54 GtkWidget* GetBrowserActionWidget(const extensions::Extension* extension); 54 GtkWidget* GetBrowserActionWidget(const extensions::Extension* extension);
55 55
56 int button_count() { return extension_button_map_.size(); } 56 int button_count() { return extension_button_map_.size(); }
57 57
58 Browser* browser() { return browser_; } 58 Browser* browser() { return browser_; }
59 59
60 ExtensionToolbarModel* model() { return model_; } 60 ExtensionToolbarModel* model() { return model_; }
61 61
62 // Returns the currently selected tab ID, or -1 if there is none. 62 // Returns the currently selected tab ID, or -1 if there is none.
63 int GetCurrentTabId(); 63 int GetCurrentTabId() const;
64 64
65 // Update the display of all buttons. 65 // Update the display of all buttons.
66 void Update(); 66 void Update();
67 67
68 // content::NotificationObserver implementation. 68 // content::NotificationObserver implementation.
69 virtual void Observe(int type, 69 virtual void Observe(int type,
70 const content::NotificationSource& source, 70 const content::NotificationSource& source,
71 const content::NotificationDetails& details) OVERRIDE; 71 const content::NotificationDetails& details) OVERRIDE;
72 72
73 bool animating() { 73 bool animating() {
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 ui::GtkSignalRegistrar signals_; 223 ui::GtkSignalRegistrar signals_;
224 224
225 content::NotificationRegistrar registrar_; 225 content::NotificationRegistrar registrar_;
226 226
227 base::WeakPtrFactory<BrowserActionsToolbarGtk> weak_factory_; 227 base::WeakPtrFactory<BrowserActionsToolbarGtk> weak_factory_;
228 228
229 DISALLOW_COPY_AND_ASSIGN(BrowserActionsToolbarGtk); 229 DISALLOW_COPY_AND_ASSIGN(BrowserActionsToolbarGtk);
230 }; 230 };
231 231
232 #endif // CHROME_BROWSER_UI_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ 232 #endif // CHROME_BROWSER_UI_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm ('k') | chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698