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