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_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "chrome/browser/status_icons/status_icon_menu_model.h" | 9 #include "chrome/browser/status_icons/status_icon_menu_model.h" |
10 #include "chrome/browser/status_icons/status_icon_observer.h" | 10 #include "chrome/browser/status_icons/status_icon_observer.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 message_center::MessageCenter* message_center(); | 49 message_center::MessageCenter* message_center(); |
50 | 50 |
51 // MessageCenterTrayDelegate implementation. | 51 // MessageCenterTrayDelegate implementation. |
52 virtual bool ShowPopups() OVERRIDE; | 52 virtual bool ShowPopups() OVERRIDE; |
53 virtual void HidePopups() OVERRIDE; | 53 virtual void HidePopups() OVERRIDE; |
54 virtual bool ShowMessageCenter() OVERRIDE; | 54 virtual bool ShowMessageCenter() OVERRIDE; |
55 virtual void HideMessageCenter() OVERRIDE; | 55 virtual void HideMessageCenter() OVERRIDE; |
56 virtual void OnMessageCenterTrayChanged() OVERRIDE; | 56 virtual void OnMessageCenterTrayChanged() OVERRIDE; |
57 virtual bool ShowNotifierSettings() OVERRIDE; | 57 virtual bool ShowNotifierSettings() OVERRIDE; |
| 58 virtual bool IsContextMenuEnabled() const OVERRIDE; |
58 | 59 |
59 // StatusIconObserver implementation. | 60 // StatusIconObserver implementation. |
60 virtual void OnStatusIconClicked() OVERRIDE; | 61 virtual void OnStatusIconClicked() OVERRIDE; |
61 #if defined(OS_WIN) | 62 #if defined(OS_WIN) |
62 virtual void OnBalloonClicked() OVERRIDE; | 63 virtual void OnBalloonClicked() OVERRIDE; |
63 | 64 |
64 // This shows a platform-specific balloon informing the user of the existence | 65 // This shows a platform-specific balloon informing the user of the existence |
65 // of the message center in the status tray area. | 66 // of the message center in the status tray area. |
66 void DisplayFirstRunBalloon(); | 67 void DisplayFirstRunBalloon(); |
67 #endif | 68 #endif |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 105 |
105 bool should_update_tray_content_; | 106 bool should_update_tray_content_; |
106 bool last_quiet_mode_state_; | 107 bool last_quiet_mode_state_; |
107 | 108 |
108 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 109 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
109 }; | 110 }; |
110 | 111 |
111 } // namespace message_center | 112 } // namespace message_center |
112 | 113 |
113 #endif // CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ | 114 #endif // CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ |
OLD | NEW |