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 "ui/message_center/message_center_export.h" | 9 #include "ui/message_center/message_center_export.h" |
10 #include "ui/message_center/message_center_observer.h" | 10 #include "ui/message_center/message_center_observer.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 virtual void OnNotificationButtonClicked( | 73 virtual void OnNotificationButtonClicked( |
74 const std::string& notification_id, | 74 const std::string& notification_id, |
75 int button_index) OVERRIDE; | 75 int button_index) OVERRIDE; |
76 virtual void OnNotificationDisplayed( | 76 virtual void OnNotificationDisplayed( |
77 const std::string& notification_id) OVERRIDE; | 77 const std::string& notification_id) OVERRIDE; |
78 virtual void OnQuietModeChanged(bool in_quiet_mode) OVERRIDE; | 78 virtual void OnQuietModeChanged(bool in_quiet_mode) OVERRIDE; |
79 | 79 |
80 private: | 80 private: |
81 void OnMessageCenterChanged(); | 81 void OnMessageCenterChanged(); |
82 void NotifyMessageCenterTrayChanged(); | 82 void NotifyMessageCenterTrayChanged(); |
| 83 void HidePopupBubbleInternal(); |
83 | 84 |
84 // |message_center_| is a weak pointer that must live longer than | 85 // |message_center_| is a weak pointer that must live longer than |
85 // MessageCenterTray. | 86 // MessageCenterTray. |
86 message_center::MessageCenter* message_center_; | 87 message_center::MessageCenter* message_center_; |
87 bool message_center_visible_; | 88 bool message_center_visible_; |
88 bool popups_visible_; | 89 bool popups_visible_; |
89 // |delegate_| is a weak pointer that must live longer than MessageCenterTray. | 90 // |delegate_| is a weak pointer that must live longer than MessageCenterTray. |
90 MessageCenterTrayDelegate* delegate_; | 91 MessageCenterTrayDelegate* delegate_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray); | 93 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace message_center | 96 } // namespace message_center |
96 | 97 |
97 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ | 98 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ |
OLD | NEW |