OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |