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