| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 void LoadImages(); | 205 void LoadImages(); |
| 206 | 206 |
| 207 bool is_display_mode_normal() const { | 207 bool is_display_mode_normal() const { |
| 208 return display_mode_ == DISPLAYMODE_NORMAL; | 208 return display_mode_ == DISPLAYMODE_NORMAL; |
| 209 } | 209 } |
| 210 | 210 |
| 211 // Shows the critical notification bubble against the wrench menu. | 211 // Shows the critical notification bubble against the wrench menu. |
| 212 void ShowCriticalNotification(); | 212 void ShowCriticalNotification(); |
| 213 | 213 |
| 214 // Shows the outdated install notification bubble against the wrench menu. | 214 // Shows the outdated install notification bubble against the wrench menu. |
| 215 void ShowOutdatedInstallNotification(); | 215 // |auto_update_enabled| is set to true when auto-upate is on. |
| 216 void ShowOutdatedInstallNotification(bool auto_update_enabled); |
| 216 | 217 |
| 217 // Updates the badge and the accessible name of the app menu (Wrench). | 218 // Updates the badge and the accessible name of the app menu (Wrench). |
| 218 void UpdateAppMenuState(); | 219 void UpdateAppMenuState(); |
| 219 | 220 |
| 220 // Updates the severity level on the wrench menu button. | 221 // Updates the severity level on the wrench menu button. |
| 221 void UpdateWrenchButtonSeverity(); | 222 void UpdateWrenchButtonSeverity(); |
| 222 | 223 |
| 223 void OnShowHomeButtonChanged(); | 224 void OnShowHomeButtonChanged(); |
| 224 | 225 |
| 225 int content_shadow_height() const; | 226 int content_shadow_height() const; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 254 | 255 |
| 255 // A list of listeners to call when the menu opens. | 256 // A list of listeners to call when the menu opens. |
| 256 ObserverList<views::MenuListener> menu_listeners_; | 257 ObserverList<views::MenuListener> menu_listeners_; |
| 257 | 258 |
| 258 content::NotificationRegistrar registrar_; | 259 content::NotificationRegistrar registrar_; |
| 259 | 260 |
| 260 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); | 261 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); |
| 261 }; | 262 }; |
| 262 | 263 |
| 263 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ | 264 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_TOOLBAR_VIEW_H_ |
| OLD | NEW |