| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ | 6 #define CHROME_BROWSER_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 void Observe(NotificationType type, | 64 virtual void Observe(NotificationType 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 |
| 75 // Initialize drag and drop. | 75 // Initialize drag and drop. |
| 76 void SetupDrags(); | 76 void SetupDrags(); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 GtkSignalRegistrar signals_; | 216 GtkSignalRegistrar signals_; |
| 217 | 217 |
| 218 NotificationRegistrar registrar_; | 218 NotificationRegistrar registrar_; |
| 219 | 219 |
| 220 ScopedRunnableMethodFactory<BrowserActionsToolbarGtk> method_factory_; | 220 ScopedRunnableMethodFactory<BrowserActionsToolbarGtk> method_factory_; |
| 221 | 221 |
| 222 DISALLOW_COPY_AND_ASSIGN(BrowserActionsToolbarGtk); | 222 DISALLOW_COPY_AND_ASSIGN(BrowserActionsToolbarGtk); |
| 223 }; | 223 }; |
| 224 | 224 |
| 225 #endif // CHROME_BROWSER_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ | 225 #endif // CHROME_BROWSER_GTK_BROWSER_ACTIONS_TOOLBAR_GTK_H_ |
| OLD | NEW |