OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_ |
| 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_ |
| 7 |
| 8 namespace message_center { |
| 9 |
| 10 // A MessageCenterTrayDelegate class is responsible for managing the various UI |
| 11 // surfaces that should be displayed when the MessageCenter is changed. |
| 12 class MESSAGE_CENTER_EXPORT MessageCenterTrayDelegate { |
| 13 public: |
| 14 virtual ~MessageCenterTrayDelegate() {}; |
| 15 |
| 16 // Called whenever a change to the visible UI has occurred. |
| 17 virtual void OnMessageCenterTrayChanged() = 0; |
| 18 |
| 19 // Display the popup bubbles for new notifications to the user. Returns true |
| 20 // if popups were actually displayed to the user. |
| 21 virtual bool ShowPopups() = 0; |
| 22 |
| 23 // Remove the popup bubbles from the UI. |
| 24 virtual void HidePopups() = 0; |
| 25 |
| 26 // Called when a change to the message center could cause a change to popups |
| 27 // that are currently being displayed. |
| 28 virtual void UpdatePopups() = 0; |
| 29 |
| 30 // Display the message center containing all undismissed notifications to the |
| 31 // user. Returns true if the center was actually displayed to the user. |
| 32 virtual bool ShowMessageCenter() = 0; |
| 33 |
| 34 // Remove the message center from the UI. |
| 35 virtual void HideMessageCenter() = 0; |
| 36 |
| 37 // Called when a change to the message center could cause a change to the |
| 38 // message center widget that is currently being displayed. |
| 39 virtual void UpdateMessageCenter() = 0; |
| 40 }; |
| 41 |
| 42 } // namespace message_center |
| 43 |
| 44 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_ |
OLD | NEW |