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 ASH_SYSTEM_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 5 #ifndef ASH_SYSTEM_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
6 #define ASH_SYSTEM_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 6 #define ASH_SYSTEM_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/system/tray/tray_background_view.h" | 9 #include "ash/system/tray/tray_background_view.h" |
10 #include "ash/system/user/login_status.h" | 10 #include "ash/system/user/login_status.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // Disable all notifications matching notification |id|. | 103 // Disable all notifications matching notification |id|. |
104 void DisableByExtension(const std::string& id); | 104 void DisableByExtension(const std::string& id); |
105 void DisableByUrl(const std::string& id); | 105 void DisableByUrl(const std::string& id); |
106 | 106 |
107 // Show the message center bubble. Should only be called by StatusAreaWidget. | 107 // Show the message center bubble. Should only be called by StatusAreaWidget. |
108 void ShowMessageCenterBubble(); | 108 void ShowMessageCenterBubble(); |
109 | 109 |
110 // Hide the message center bubble. Should only be called by StatusAreaWidget. | 110 // Hide the message center bubble. Should only be called by StatusAreaWidget. |
111 void HideMessageCenterBubble(); | 111 void HideMessageCenterBubble(); |
112 | 112 |
| 113 // Hide the message center bubble if there are no notifications. |
| 114 void HideMessageCenterBubbleIfEmpty(); |
| 115 |
113 // Show a single notification bubble for the most recent notification. | 116 // Show a single notification bubble for the most recent notification. |
114 void ShowNotificationBubble(); | 117 void ShowNotificationBubble(); |
115 | 118 |
116 // Hide the single notification bubble if visible. | 119 // Hide the single notification bubble if visible. |
117 void HideNotificationBubble(); | 120 void HideNotificationBubble(); |
118 | 121 |
119 // Updates tray visibility login status of the system changes. | 122 // Updates tray visibility login status of the system changes. |
120 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); | 123 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); |
121 | 124 |
122 // Request the Delegate to the settings dialog. | 125 // Request the Delegate to the settings dialog. |
(...skipping 29 matching lines...) Expand all Loading... |
152 views::Label* count_label_; | 155 views::Label* count_label_; |
153 Delegate* delegate_; | 156 Delegate* delegate_; |
154 bool show_message_center_on_unlock_; | 157 bool show_message_center_on_unlock_; |
155 | 158 |
156 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 159 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
157 }; | 160 }; |
158 | 161 |
159 } // namespace ash | 162 } // namespace ash |
160 | 163 |
161 #endif // ASH_SYSTEM_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 164 #endif // ASH_SYSTEM_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
OLD | NEW |