OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 54 |
55 Browser* browser() { return browser_; } | 55 Browser* browser() { return browser_; } |
56 | 56 |
57 // Returns the currently selected tab ID, or -1 if there is none. | 57 // Returns the currently selected tab ID, or -1 if there is none. |
58 int GetCurrentTabId(); | 58 int GetCurrentTabId(); |
59 | 59 |
60 // Update the display of all buttons. | 60 // Update the display of all buttons. |
61 void Update(); | 61 void Update(); |
62 | 62 |
63 // NotificationObserver implementation. | 63 // NotificationObserver implementation. |
64 virtual void Observe(NotificationType type, | 64 virtual void Observe(int type, |
65 const NotificationSource& source, | 65 const NotificationSource& source, |
66 const NotificationDetails& details); | 66 const NotificationDetails& details); |
67 | 67 |
68 bool animating() { | 68 bool animating() { |
69 return resize_animation_.is_animating(); | 69 return resize_animation_.is_animating(); |
70 } | 70 } |
71 | 71 |
72 private: | 72 private: |
73 friend class BrowserActionButton; | 73 friend class BrowserActionButton; |
74 | 74 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 ui::GtkSignalRegistrar signals_; | 214 ui::GtkSignalRegistrar signals_; |
215 | 215 |
216 NotificationRegistrar registrar_; | 216 NotificationRegistrar registrar_; |
217 | 217 |
218 ScopedRunnableMethodFactory<BrowserActionsToolbarGtk> method_factory_; | 218 ScopedRunnableMethodFactory<BrowserActionsToolbarGtk> method_factory_; |
219 | 219 |
220 DISALLOW_COPY_AND_ASSIGN(BrowserActionsToolbarGtk); | 220 DISALLOW_COPY_AND_ASSIGN(BrowserActionsToolbarGtk); |
221 }; | 221 }; |
222 | 222 |
223 #endif // CHROME_BROWSER_UI_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ | 223 #endif // CHROME_BROWSER_UI_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ |
OLD | NEW |