| 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_TOOLBAR_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ | 6 #define CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 void UpdateForBookmarkBarVisibility(bool show_bottom_padding); | 86 void UpdateForBookmarkBarVisibility(bool show_bottom_padding); |
| 87 | 87 |
| 88 void ShowPageMenu(); | 88 void ShowPageMenu(); |
| 89 void ShowAppMenu(); | 89 void ShowAppMenu(); |
| 90 | 90 |
| 91 // Overridden from CommandUpdater::CommandObserver: | 91 // Overridden from CommandUpdater::CommandObserver: |
| 92 virtual void EnabledStateChangedForCommand(int id, bool enabled); | 92 virtual void EnabledStateChangedForCommand(int id, bool enabled); |
| 93 | 93 |
| 94 // Overridden from MenuGtk::Delegate: | 94 // Overridden from MenuGtk::Delegate: |
| 95 virtual void StoppedShowing(); | 95 virtual void StoppedShowing(); |
| 96 virtual GtkIconSet* GetIconSetForId(int idr); |
| 96 | 97 |
| 97 // Overridden from menus::SimpleMenuModel::Delegate: | 98 // Overridden from menus::SimpleMenuModel::Delegate: |
| 98 virtual bool IsCommandIdEnabled(int id) const; | 99 virtual bool IsCommandIdEnabled(int id) const; |
| 99 virtual bool IsCommandIdChecked(int id) const; | 100 virtual bool IsCommandIdChecked(int id) const; |
| 100 virtual void ExecuteCommand(int id); | 101 virtual void ExecuteCommand(int id); |
| 101 virtual bool GetAcceleratorForCommandId(int id, | 102 virtual bool GetAcceleratorForCommandId(int id, |
| 102 menus::Accelerator* accelerator); | 103 menus::Accelerator* accelerator); |
| 103 | 104 |
| 104 // NotificationObserver implementation. | 105 // NotificationObserver implementation. |
| 105 void Observe(NotificationType type, | 106 void Observe(NotificationType type, |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 262 |
| 262 // Manages the home button drop signal handler. | 263 // Manages the home button drop signal handler. |
| 263 scoped_ptr<GtkSignalRegistrar> drop_handler_; | 264 scoped_ptr<GtkSignalRegistrar> drop_handler_; |
| 264 | 265 |
| 265 ThrobAnimation upgrade_reminder_animation_; | 266 ThrobAnimation upgrade_reminder_animation_; |
| 266 | 267 |
| 267 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk); | 268 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk); |
| 268 }; | 269 }; |
| 269 | 270 |
| 270 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ | 271 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ |
| OLD | NEW |