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

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

Issue 2823673002: Revert of 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;
81 void OnNotificationDisplayed(const std::string& notification_id, 80 void OnNotificationDisplayed(const std::string& notification_id,
82 const DisplaySource source) override; 81 const DisplaySource source) override;
83 void OnQuietModeChanged(bool in_quiet_mode) override; 82 void OnQuietModeChanged(bool in_quiet_mode) override;
84 void OnBlockingStateChanged(NotificationBlocker* blocker) override; 83 void OnBlockingStateChanged(NotificationBlocker* blocker) override;
85 84
86 private: 85 private:
87 void OnMessageCenterChanged(); 86 void OnMessageCenterChanged();
88 void NotifyMessageCenterTrayChanged(); 87 void NotifyMessageCenterTrayChanged();
89 void HidePopupBubbleInternal(); 88 void HidePopupBubbleInternal();
90 89
91 // |message_center_| is a weak pointer that must live longer than 90 // |message_center_| is a weak pointer that must live longer than
92 // MessageCenterTray. 91 // MessageCenterTray.
93 message_center::MessageCenter* message_center_; 92 message_center::MessageCenter* message_center_;
94 bool message_center_visible_; 93 bool message_center_visible_;
95 bool popups_visible_; 94 bool popups_visible_;
96 // |delegate_| is a weak pointer that must live longer than MessageCenterTray. 95 // |delegate_| is a weak pointer that must live longer than MessageCenterTray.
97 MessageCenterTrayDelegate* delegate_; 96 MessageCenterTrayDelegate* delegate_;
98 97
99 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray); 98 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray);
100 }; 99 };
101 100
102 } // namespace message_center 101 } // namespace message_center
103 102
104 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ 103 #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