| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 void ShowCriticalNotification(); | 195 void ShowCriticalNotification(); |
| 196 | 196 |
| 197 // Shows the outdated install notification bubble against the app menu. | 197 // Shows the outdated install notification bubble against the app menu. |
| 198 // |auto_update_enabled| is set to true when auto-upate is on. | 198 // |auto_update_enabled| is set to true when auto-upate is on. |
| 199 void ShowOutdatedInstallNotification(bool auto_update_enabled); | 199 void ShowOutdatedInstallNotification(bool auto_update_enabled); |
| 200 | 200 |
| 201 void OnShowHomeButtonChanged(); | 201 void OnShowHomeButtonChanged(); |
| 202 | 202 |
| 203 int content_shadow_height() const; | 203 int content_shadow_height() const; |
| 204 | 204 |
| 205 // Controls | 205 // Controls. Most of these can be null, e.g. in popup windows. Only |
| 206 // |location_bar_| is guaranteed to exist. |
| 206 BackButton* back_; | 207 BackButton* back_; |
| 207 ToolbarButton* forward_; | 208 ToolbarButton* forward_; |
| 208 ReloadButton* reload_; | 209 ReloadButton* reload_; |
| 209 HomeButton* home_; | 210 HomeButton* home_; |
| 210 LocationBarView* location_bar_; | 211 LocationBarView* location_bar_; |
| 211 BrowserActionsContainer* browser_actions_; | 212 BrowserActionsContainer* browser_actions_; |
| 212 AppMenuButton* app_menu_button_; | 213 AppMenuButton* app_menu_button_; |
| 214 |
| 213 Browser* browser_; | 215 Browser* browser_; |
| 214 | 216 |
| 215 AppMenuBadgeController badge_controller_; | 217 AppMenuBadgeController badge_controller_; |
| 216 | 218 |
| 217 // Controls whether or not a home button should be shown on the toolbar. | 219 // Controls whether or not a home button should be shown on the toolbar. |
| 218 BooleanPrefMember show_home_button_; | 220 BooleanPrefMember show_home_button_; |
| 219 | 221 |
| 220 // The display mode used when laying out the toolbar. | 222 // The display mode used when laying out the toolbar. |
| 221 DisplayMode display_mode_; | 223 const DisplayMode display_mode_; |
| 222 | 224 |
| 223 content::NotificationRegistrar registrar_; | 225 content::NotificationRegistrar registrar_; |
| 224 | 226 |
| 225 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); | 227 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); |
| 226 }; | 228 }; |
| 227 | 229 |
| 228 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ | 230 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ |
| OLD | NEW |