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/macros.h" | 8 #include "base/macros.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // Causes an update if the popup bubble is already shown. | 55 // Causes an update if the popup bubble is already shown. |
56 void ShowPopupBubble(); | 56 void ShowPopupBubble(); |
57 | 57 |
58 // Returns whether the popup was visible before. | 58 // Returns whether the popup was visible before. |
59 bool HidePopupBubble(); | 59 bool HidePopupBubble(); |
60 | 60 |
61 // Toggles the visibility of the settings view in the message center bubble. | 61 // Toggles the visibility of the settings view in the message center bubble. |
62 void ShowNotifierSettingsBubble(); | 62 void ShowNotifierSettingsBubble(); |
63 | 63 |
64 // Creates a model for the context menu for a notification card. | 64 // Creates a model for the context menu for a notification card. |
65 scoped_ptr<ui::MenuModel> CreateNotificationMenuModel( | 65 std::unique_ptr<ui::MenuModel> CreateNotificationMenuModel( |
66 const NotifierId& notifier_id, | 66 const NotifierId& notifier_id, |
67 const base::string16& display_source); | 67 const base::string16& display_source); |
68 | 68 |
69 bool message_center_visible() { return message_center_visible_; } | 69 bool message_center_visible() { return message_center_visible_; } |
70 bool popups_visible() { return popups_visible_; } | 70 bool popups_visible() { return popups_visible_; } |
71 MessageCenterTrayDelegate* delegate() { return delegate_; } | 71 MessageCenterTrayDelegate* delegate() { return delegate_; } |
72 const message_center::MessageCenter* message_center() const { | 72 const message_center::MessageCenter* message_center() const { |
73 return message_center_; | 73 return message_center_; |
74 } | 74 } |
75 message_center::MessageCenter* message_center() { return message_center_; } | 75 message_center::MessageCenter* message_center() { return message_center_; } |
(...skipping 23 matching lines...) Expand all Loading... |
99 bool popups_visible_; | 99 bool popups_visible_; |
100 // |delegate_| is a weak pointer that must live longer than MessageCenterTray. | 100 // |delegate_| is a weak pointer that must live longer than MessageCenterTray. |
101 MessageCenterTrayDelegate* delegate_; | 101 MessageCenterTrayDelegate* delegate_; |
102 | 102 |
103 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray); | 103 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray); |
104 }; | 104 }; |
105 | 105 |
106 } // namespace message_center | 106 } // namespace message_center |
107 | 107 |
108 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ | 108 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ |
OLD | NEW |