| 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/base/models/simple_menu_model.h" | 9 #include "ui/base/models/simple_menu_model.h" |
| 10 #include "ui/message_center/message_center_export.h" | 10 #include "ui/message_center/message_center_export.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 public: | 31 public: |
| 32 MessageCenterTray(MessageCenterTrayDelegate* delegate, | 32 MessageCenterTray(MessageCenterTrayDelegate* delegate, |
| 33 message_center::MessageCenter* message_center); | 33 message_center::MessageCenter* message_center); |
| 34 virtual ~MessageCenterTray(); | 34 virtual ~MessageCenterTray(); |
| 35 | 35 |
| 36 // Shows or updates the message center bubble and hides the popup bubble. | 36 // Shows or updates the message center bubble and hides the popup bubble. |
| 37 // Returns whether the message center is visible after the call, whether or | 37 // Returns whether the message center is visible after the call, whether or |
| 38 // not it was visible before. | 38 // not it was visible before. |
| 39 bool ShowMessageCenterBubble(); | 39 bool ShowMessageCenterBubble(); |
| 40 | 40 |
| 41 // Returns whether the message center was visible before. | 41 // Hides the message center if visible and returns whether the message center |
| 42 // was visible before. |
| 42 bool HideMessageCenterBubble(); | 43 bool HideMessageCenterBubble(); |
| 43 | 44 |
| 45 // Marks the message center as "not visible" (this method will not hide the |
| 46 // message center). |
| 47 void MarkMessageCenterHidden(); |
| 48 |
| 44 void ToggleMessageCenterBubble(); | 49 void ToggleMessageCenterBubble(); |
| 45 | 50 |
| 46 // Causes an update if the popup bubble is already shown. | 51 // Causes an update if the popup bubble is already shown. |
| 47 void ShowPopupBubble(); | 52 void ShowPopupBubble(); |
| 48 | 53 |
| 49 // Returns whether the popup was visible before. | 54 // Returns whether the popup was visible before. |
| 50 bool HidePopupBubble(); | 55 bool HidePopupBubble(); |
| 51 | 56 |
| 52 // Toggles the visibility of the settings view in the message center bubble. | 57 // Toggles the visibility of the settings view in the message center bubble. |
| 53 void ShowNotifierSettingsBubble(); | 58 void ShowNotifierSettingsBubble(); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 bool popups_visible_; | 102 bool popups_visible_; |
| 98 // |delegate_| is a weak pointer that must live longer than MessageCenterTray. | 103 // |delegate_| is a weak pointer that must live longer than MessageCenterTray. |
| 99 MessageCenterTrayDelegate* delegate_; | 104 MessageCenterTrayDelegate* delegate_; |
| 100 | 105 |
| 101 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray); | 106 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray); |
| 102 }; | 107 }; |
| 103 | 108 |
| 104 } // namespace message_center | 109 } // namespace message_center |
| 105 | 110 |
| 106 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ | 111 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ |
| OLD | NEW |