OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // Loads the images for all the child views. | 183 // Loads the images for all the child views. |
184 void LoadImages(); | 184 void LoadImages(); |
185 | 185 |
186 bool is_display_mode_normal() const { | 186 bool is_display_mode_normal() const { |
187 return display_mode_ == DISPLAYMODE_NORMAL; | 187 return display_mode_ == DISPLAYMODE_NORMAL; |
188 } | 188 } |
189 | 189 |
190 // Shows the critical notification bubble against the wrench menu. | 190 // Shows the critical notification bubble against the wrench menu. |
191 void ShowCriticalNotification(); | 191 void ShowCriticalNotification(); |
192 | 192 |
| 193 // Shows the outdated install notification bubble against the wrench menu. |
| 194 void ShowOutdatedInstallNotification(); |
| 195 |
193 // Updates the badge and the accessible name of the app menu (Wrench). | 196 // Updates the badge and the accessible name of the app menu (Wrench). |
194 void UpdateAppMenuState(); | 197 void UpdateAppMenuState(); |
195 | 198 |
196 void OnShowHomeButtonChanged(); | 199 void OnShowHomeButtonChanged(); |
197 | 200 |
198 // The model that contains the security level, text, icon to display... | 201 // The model that contains the security level, text, icon to display... |
199 ToolbarModel* model_; | 202 ToolbarModel* model_; |
200 | 203 |
201 // Controls | 204 // Controls |
202 views::ImageButton* back_; | 205 views::ImageButton* back_; |
(...skipping 22 matching lines...) Expand all Loading... |
225 | 228 |
226 // A list of listeners to call when the menu opens. | 229 // A list of listeners to call when the menu opens. |
227 ObserverList<views::MenuListener> menu_listeners_; | 230 ObserverList<views::MenuListener> menu_listeners_; |
228 | 231 |
229 content::NotificationRegistrar registrar_; | 232 content::NotificationRegistrar registrar_; |
230 | 233 |
231 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); | 234 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); |
232 }; | 235 }; |
233 | 236 |
234 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ | 237 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ |
OLD | NEW |