Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: ash/system/web_notification/web_notification_tray.h

Issue 10834164: Add message to Ash message center for no notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698