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

Unified Diff: chrome/browser/ui/views/message_center/web_notification_tray.h

Issue 17286015: Adds a first-run balloon to the Windows notification center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added some tests. Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/message_center/web_notification_tray.h
diff --git a/chrome/browser/ui/views/message_center/web_notification_tray.h b/chrome/browser/ui/views/message_center/web_notification_tray.h
index 86b867eb6b1ee486b86c965e216f923b2505fbaa..6c3ae5d2ffc500155bc379d50350f76b8c119bbc 100644
--- a/chrome/browser/ui/views/message_center/web_notification_tray.h
+++ b/chrome/browser/ui/views/message_center/web_notification_tray.h
@@ -61,11 +61,18 @@ class WebNotificationTray : public message_center::MessageCenterTrayDelegate,
// StatusIconObserver implementation.
virtual void OnStatusIconClicked() OVERRIDE;
+ virtual void OnBalloonClicked() OVERRIDE;
// Changes the icon and hovertext based on number of unread notifications.
void UpdateStatusIcon();
void HideBubbleWithView(const views::TrayBubbleView* bubble_view);
+#if defined(OS_WIN)
+ // This shows a platform-specific balloon informing the user of the existence
+ // of the message center in the status tray area.
+ void DisplayFirstRunBalloon();
+#endif
+
private:
FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, WebNotifications);
FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, WebNotificationPopupBubble);
@@ -81,6 +88,7 @@ class WebNotificationTray : public message_center::MessageCenterTrayDelegate,
scoped_ptr<internal::NotificationBubbleWrapper> message_center_bubble_;
scoped_ptr<message_center::MessagePopupCollection> popup_collection_;
+ bool shown_status_balloon_;
sky 2013/06/20 17:22:01 I don't see you using this any where.
dewittj 2013/06/20 17:51:51 Done.
StatusIcon* status_icon_;
bool message_center_visible_;
scoped_ptr<MessageCenterTray> message_center_tray_;

Powered by Google App Engine
This is Rietveld 408576698