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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 ReloadButtonGtk* GetReloadButton() { return reload_.get(); } | 76 ReloadButtonGtk* GetReloadButton() { return reload_.get(); } |
77 | 77 |
78 GtkWidget* GetAppMenuButton() { return app_menu_button_.get(); } | 78 GtkWidget* GetAppMenuButton() { return app_menu_button_.get(); } |
79 | 79 |
80 BrowserActionsToolbarGtk* GetBrowserActionsToolbar() { | 80 BrowserActionsToolbarGtk* GetBrowserActionsToolbar() { |
81 return actions_toolbar_.get(); | 81 return actions_toolbar_.get(); |
82 } | 82 } |
83 | 83 |
84 LocationBarViewGtk* GetLocationBarView() { return location_bar_.get(); } | 84 LocationBarViewGtk* GetLocationBarView() { return location_bar_.get(); } |
85 | 85 |
86 bool collapsed() const { return collapsed_; } | |
87 void set_collapsed(bool val); | |
88 | |
89 // We have to show padding on the bottom of the toolbar when the bookmark | 86 // We have to show padding on the bottom of the toolbar when the bookmark |
90 // is in floating mode. Otherwise the bookmark bar will paint it for us. | 87 // is in floating mode. Otherwise the bookmark bar will paint it for us. |
91 void UpdateForBookmarkBarVisibility(bool show_bottom_padding); | 88 void UpdateForBookmarkBarVisibility(bool show_bottom_padding); |
92 | 89 |
93 void ShowPageMenu(); | 90 void ShowPageMenu(); |
94 void ShowAppMenu(); | 91 void ShowAppMenu(); |
95 | 92 |
96 // Overridden from CommandUpdater::CommandObserver: | 93 // Overridden from CommandUpdater::CommandObserver: |
97 virtual void EnabledStateChangedForCommand(int id, bool enabled); | 94 virtual void EnabledStateChangedForCommand(int id, bool enabled); |
98 | 95 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 MenuBarHelper menu_bar_helper_; | 271 MenuBarHelper menu_bar_helper_; |
275 | 272 |
276 // Manages the home button drop signal handler. | 273 // Manages the home button drop signal handler. |
277 scoped_ptr<GtkSignalRegistrar> drop_handler_; | 274 scoped_ptr<GtkSignalRegistrar> drop_handler_; |
278 | 275 |
279 ThrobAnimation upgrade_reminder_animation_; | 276 ThrobAnimation upgrade_reminder_animation_; |
280 | 277 |
281 // We have already shown and dismissed the upgrade reminder animation. | 278 // We have already shown and dismissed the upgrade reminder animation. |
282 bool upgrade_reminder_canceled_; | 279 bool upgrade_reminder_canceled_; |
283 | 280 |
284 // When collapsed, the toolbar is just a tiny strip, no controls are visible. | |
285 bool collapsed_; | |
286 | |
287 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk); | 281 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk); |
288 }; | 282 }; |
289 | 283 |
290 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ | 284 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ |
OLD | NEW |