| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // Displays the app menu. | 96 // Displays the app menu. |
| 97 void RunAppMenu(GdkEvent* button_press_event); | 97 void RunAppMenu(GdkEvent* button_press_event); |
| 98 | 98 |
| 99 // Construct the Home button. | 99 // Construct the Home button. |
| 100 CustomDrawButton* MakeHomeButton(); | 100 CustomDrawButton* MakeHomeButton(); |
| 101 | 101 |
| 102 // Gtk widgets. The toolbar is an hbox with each of the other pieces of the | 102 // Gtk widgets. The toolbar is an hbox with each of the other pieces of the |
| 103 // toolbar placed side by side. | 103 // toolbar placed side by side. |
| 104 GtkWidget* toolbar_; | 104 GtkWidget* toolbar_; |
| 105 | 105 |
| 106 // Tooltip container for all GTK widgets in this class. | |
| 107 GtkTooltips* toolbar_tooltips_; | |
| 108 | |
| 109 // The location bar view. | 106 // The location bar view. |
| 110 scoped_ptr<LocationBarViewGtk> location_bar_; | 107 scoped_ptr<LocationBarViewGtk> location_bar_; |
| 111 | 108 |
| 112 // A pointer to our window's accelerator list. | 109 // A pointer to our window's accelerator list. |
| 113 GtkAccelGroup* accel_group_; | 110 GtkAccelGroup* accel_group_; |
| 114 | 111 |
| 115 // All the buttons in the toolbar. | 112 // All the buttons in the toolbar. |
| 116 scoped_ptr<CustomDrawButton> back_, forward_; | 113 scoped_ptr<CustomDrawButton> back_, forward_; |
| 117 scoped_ptr<CustomDrawButton> reload_; | 114 scoped_ptr<CustomDrawButton> reload_; |
| 118 scoped_ptr<CustomDrawButton> home_; // May be NULL. | 115 scoped_ptr<CustomDrawButton> home_; // May be NULL. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // The back/forward menu gets reset every time it is shown. | 154 // The back/forward menu gets reset every time it is shown. |
| 158 scoped_ptr<MenuGtk> back_forward_menu_; | 155 scoped_ptr<MenuGtk> back_forward_menu_; |
| 159 | 156 |
| 160 scoped_ptr<BackForwardMenuModelGtk> back_menu_model_; | 157 scoped_ptr<BackForwardMenuModelGtk> back_menu_model_; |
| 161 scoped_ptr<BackForwardMenuModelGtk> forward_menu_model_; | 158 scoped_ptr<BackForwardMenuModelGtk> forward_menu_model_; |
| 162 | 159 |
| 163 ScopedRunnableMethodFactory<BrowserToolbarGtk> show_menu_factory_; | 160 ScopedRunnableMethodFactory<BrowserToolbarGtk> show_menu_factory_; |
| 164 }; | 161 }; |
| 165 | 162 |
| 166 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ | 163 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ |
| OLD | NEW |