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

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: . 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // BrowserActions. 54 // BrowserActions.
55 GtkWidget* GetBrowserActionWidget(const extensions::Extension* extension); 55 GtkWidget* GetBrowserActionWidget(const extensions::Extension* extension);
56 56
57 int button_count() { return extension_button_map_.size(); } 57 int button_count() { return extension_button_map_.size(); }
58 58
59 Browser* browser() { return browser_; } 59 Browser* browser() { return browser_; }
60 60
61 ExtensionToolbarModel* model() { return model_; } 61 ExtensionToolbarModel* model() { return model_; }
62 62
63 // Returns the currently selected tab ID, or -1 if there is none. 63 // Returns the currently selected tab ID, or -1 if there is none.
64 int GetCurrentTabId(); 64 int GetCurrentTabId() const;
65 65
66 // Update the display of all buttons. 66 // Update the display of all buttons.
67 void Update(); 67 void Update();
68 68
69 // content::NotificationObserver implementation. 69 // content::NotificationObserver implementation.
70 virtual void Observe(int type, 70 virtual void Observe(int type,
71 const content::NotificationSource& source, 71 const content::NotificationSource& source,
72 const content::NotificationDetails& details) OVERRIDE; 72 const content::NotificationDetails& details) OVERRIDE;
73 73
74 bool animating() { 74 bool animating() {
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 ui::GtkSignalRegistrar signals_; 224 ui::GtkSignalRegistrar signals_;
225 225
226 content::NotificationRegistrar registrar_; 226 content::NotificationRegistrar registrar_;
227 227
228 base::WeakPtrFactory<BrowserActionsToolbarGtk> weak_factory_; 228 base::WeakPtrFactory<BrowserActionsToolbarGtk> weak_factory_;
229 229
230 DISALLOW_COPY_AND_ASSIGN(BrowserActionsToolbarGtk); 230 DISALLOW_COPY_AND_ASSIGN(BrowserActionsToolbarGtk);
231 }; 231 };
232 232
233 #endif // CHROME_BROWSER_UI_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ 233 #endif // CHROME_BROWSER_UI_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698