| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |