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_DELEGATE_H_ | 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_ |
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_ | 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_ |
7 | 7 |
8 #include "ui/message_center/message_center_export.h" | 8 #include "ui/message_center/message_center_export.h" |
9 | 9 |
10 namespace message_center { | 10 namespace message_center { |
(...skipping 19 matching lines...) Expand all Loading... |
30 // Display the message center containing all undismissed notifications to the | 30 // Display the message center containing all undismissed notifications to the |
31 // user. Returns true if the center was actually displayed to the user. | 31 // user. Returns true if the center was actually displayed to the user. |
32 virtual bool ShowMessageCenter() = 0; | 32 virtual bool ShowMessageCenter() = 0; |
33 | 33 |
34 // Remove the message center from the UI. | 34 // Remove the message center from the UI. |
35 virtual void HideMessageCenter() = 0; | 35 virtual void HideMessageCenter() = 0; |
36 | 36 |
37 // Display the notifier settings as a bubble. | 37 // Display the notifier settings as a bubble. |
38 virtual bool ShowNotifierSettings() = 0; | 38 virtual bool ShowNotifierSettings() = 0; |
39 | 39 |
| 40 // Returns true if the context menu for a notification is currently enabled. |
| 41 virtual bool IsContextMenuEnabled() const = 0; |
| 42 |
40 // Show a platform-specific UI that informs the user how to open the message | 43 // Show a platform-specific UI that informs the user how to open the message |
41 // center. | 44 // center. |
42 virtual void DisplayFirstRunBalloon() {} | 45 virtual void DisplayFirstRunBalloon() {} |
43 | 46 |
44 virtual MessageCenterTray* GetMessageCenterTray() = 0; | 47 virtual MessageCenterTray* GetMessageCenterTray() = 0; |
45 }; | 48 }; |
46 | 49 |
47 } // namespace message_center | 50 } // namespace message_center |
48 | 51 |
49 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_ | 52 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_DELEGATE_H_ |
OLD | NEW |