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

Side by Side Diff: ui/message_center/message_center_tray.h

Issue 2807623002: Fix the settings button and UMA metrics for the message center (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « ui/message_center/message_center_observer.h ('k') | ui/message_center/message_center_tray.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 message_center::MessageCenter* message_center() { return message_center_; } 70 message_center::MessageCenter* message_center() { return message_center_; }
71 71
72 // Overridden from MessageCenterObserver: 72 // Overridden from MessageCenterObserver:
73 void OnNotificationAdded(const std::string& notification_id) override; 73 void OnNotificationAdded(const std::string& notification_id) override;
74 void OnNotificationRemoved(const std::string& notification_id, 74 void OnNotificationRemoved(const std::string& notification_id,
75 bool by_user) override; 75 bool by_user) override;
76 void OnNotificationUpdated(const std::string& notification_id) override; 76 void OnNotificationUpdated(const std::string& notification_id) override;
77 void OnNotificationClicked(const std::string& notification_id) override; 77 void OnNotificationClicked(const std::string& notification_id) override;
78 void OnNotificationButtonClicked(const std::string& notification_id, 78 void OnNotificationButtonClicked(const std::string& notification_id,
79 int button_index) override; 79 int button_index) override;
80 void OnNotificationSettingsClicked(bool handled) override;
80 void OnNotificationDisplayed(const std::string& notification_id, 81 void OnNotificationDisplayed(const std::string& notification_id,
81 const DisplaySource source) override; 82 const DisplaySource source) override;
82 void OnQuietModeChanged(bool in_quiet_mode) override; 83 void OnQuietModeChanged(bool in_quiet_mode) override;
83 void OnBlockingStateChanged(NotificationBlocker* blocker) override; 84 void OnBlockingStateChanged(NotificationBlocker* blocker) override;
84 85
85 private: 86 private:
86 void OnMessageCenterChanged(); 87 void OnMessageCenterChanged();
87 void NotifyMessageCenterTrayChanged(); 88 void NotifyMessageCenterTrayChanged();
88 void HidePopupBubbleInternal(); 89 void HidePopupBubbleInternal();
89 90
90 // |message_center_| is a weak pointer that must live longer than 91 // |message_center_| is a weak pointer that must live longer than
91 // MessageCenterTray. 92 // MessageCenterTray.
92 message_center::MessageCenter* message_center_; 93 message_center::MessageCenter* message_center_;
93 bool message_center_visible_; 94 bool message_center_visible_;
94 bool popups_visible_; 95 bool popups_visible_;
95 // |delegate_| is a weak pointer that must live longer than MessageCenterTray. 96 // |delegate_| is a weak pointer that must live longer than MessageCenterTray.
96 MessageCenterTrayDelegate* delegate_; 97 MessageCenterTrayDelegate* delegate_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray); 99 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray);
99 }; 100 };
100 101
101 } // namespace message_center 102 } // namespace message_center
102 103
103 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ 104 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_
OLDNEW
« no previous file with comments | « ui/message_center/message_center_observer.h ('k') | ui/message_center/message_center_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698