OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TOOLBAR_WRENCH_MENU_BADGE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_BADGE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_BADGE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_BADGE_CONTROLLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/ui/toolbar/wrench_icon_painter.h" | 9 #include "chrome/browser/ui/toolbar/wrench_icon_painter.h" |
10 #include "content/public/browser/notification_details.h" | 10 #include "content/public/browser/notification_details.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // Forces an update of the UI based on the current state of the world. This | 47 // Forces an update of the UI based on the current state of the world. This |
48 // will check whether there are any current pending updates, global errors, | 48 // will check whether there are any current pending updates, global errors, |
49 // etc. and based on that information trigger an appropriate call to the | 49 // etc. and based on that information trigger an appropriate call to the |
50 // delegate. | 50 // delegate. |
51 void UpdateDelegate(); | 51 void UpdateDelegate(); |
52 | 52 |
53 private: | 53 private: |
54 // content::NotificationObserver: | 54 // content::NotificationObserver: |
55 virtual void Observe(int type, | 55 virtual void Observe(int type, |
56 const content::NotificationSource& source, | 56 const content::NotificationSource& source, |
57 const content::NotificationDetails& details) OVERRIDE; | 57 const content::NotificationDetails& details) override; |
58 | 58 |
59 Profile* profile_; | 59 Profile* profile_; |
60 Delegate* delegate_; | 60 Delegate* delegate_; |
61 content::NotificationRegistrar registrar_; | 61 content::NotificationRegistrar registrar_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(WrenchMenuBadgeController); | 63 DISALLOW_COPY_AND_ASSIGN(WrenchMenuBadgeController); |
64 }; | 64 }; |
65 | 65 |
66 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_BADGE_CONTROLLER_H_ | 66 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_BADGE_CONTROLLER_H_ |
OLD | NEW |