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/observer_list.h" | 8 #include "base/observer_list.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "ui/message_center/message_center_export.h" | 10 #include "ui/message_center/message_center_export.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 virtual void OnNotificationRemoved(const std::string& notification_id, | 78 virtual void OnNotificationRemoved(const std::string& notification_id, |
79 bool by_user) OVERRIDE; | 79 bool by_user) OVERRIDE; |
80 virtual void OnNotificationUpdated( | 80 virtual void OnNotificationUpdated( |
81 const std::string& notification_id) OVERRIDE; | 81 const std::string& notification_id) OVERRIDE; |
82 virtual void OnNotificationClicked( | 82 virtual void OnNotificationClicked( |
83 const std::string& notification_id) OVERRIDE; | 83 const std::string& notification_id) OVERRIDE; |
84 virtual void OnNotificationButtonClicked( | 84 virtual void OnNotificationButtonClicked( |
85 const std::string& notification_id, | 85 const std::string& notification_id, |
86 int button_index) OVERRIDE; | 86 int button_index) OVERRIDE; |
87 virtual void OnNotificationDisplayed( | 87 virtual void OnNotificationDisplayed( |
88 const std::string& notification_id) OVERRIDE; | 88 const std::string& notification_id, |
| 89 const DisplaySource source) OVERRIDE; |
89 virtual void OnQuietModeChanged(bool in_quiet_mode) OVERRIDE; | 90 virtual void OnQuietModeChanged(bool in_quiet_mode) OVERRIDE; |
90 virtual void OnBlockingStateChanged(NotificationBlocker* blocker) OVERRIDE; | 91 virtual void OnBlockingStateChanged(NotificationBlocker* blocker) OVERRIDE; |
91 | 92 |
92 private: | 93 private: |
93 void OnMessageCenterChanged(); | 94 void OnMessageCenterChanged(); |
94 void NotifyMessageCenterTrayChanged(); | 95 void NotifyMessageCenterTrayChanged(); |
95 void HidePopupBubbleInternal(); | 96 void HidePopupBubbleInternal(); |
96 | 97 |
97 // |message_center_| is a weak pointer that must live longer than | 98 // |message_center_| is a weak pointer that must live longer than |
98 // MessageCenterTray. | 99 // MessageCenterTray. |
99 message_center::MessageCenter* message_center_; | 100 message_center::MessageCenter* message_center_; |
100 bool message_center_visible_; | 101 bool message_center_visible_; |
101 bool popups_visible_; | 102 bool popups_visible_; |
102 // |delegate_| is a weak pointer that must live longer than MessageCenterTray. | 103 // |delegate_| is a weak pointer that must live longer than MessageCenterTray. |
103 MessageCenterTrayDelegate* delegate_; | 104 MessageCenterTrayDelegate* delegate_; |
104 | 105 |
105 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray); | 106 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray); |
106 }; | 107 }; |
107 | 108 |
108 } // namespace message_center | 109 } // namespace message_center |
109 | 110 |
110 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ | 111 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ |
OLD | NEW |