| 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_VIEWS_MESSAGE_CENTER_VIEW_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ |
| 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 MessageCenterView(MessageCenter* message_center, | 43 MessageCenterView(MessageCenter* message_center, |
| 44 MessageCenterTray* tray, | 44 MessageCenterTray* tray, |
| 45 int max_height, | 45 int max_height, |
| 46 bool initially_settings_visible, | 46 bool initially_settings_visible, |
| 47 bool top_down, | 47 bool top_down, |
| 48 const base::string16& title); | 48 const base::string16& title); |
| 49 ~MessageCenterView() override; | 49 ~MessageCenterView() override; |
| 50 | 50 |
| 51 void SetNotifications(const NotificationList::Notifications& notifications); | 51 void SetNotifications(const NotificationList::Notifications& notifications); |
| 52 | 52 |
| 53 void ClearAllNotifications(); | 53 void ClearAllClosableNotifications(); |
| 54 void OnAllNotificationsCleared(); | 54 void OnAllNotificationsCleared(); |
| 55 | 55 |
| 56 size_t NumMessageViewsForTest() const; | 56 size_t NumMessageViewsForTest() const; |
| 57 | 57 |
| 58 void SetSettingsVisible(bool visible); | 58 void SetSettingsVisible(bool visible); |
| 59 void OnSettingsChanged(); | 59 void OnSettingsChanged(); |
| 60 bool settings_visible() const { return settings_visible_; } | 60 bool settings_visible() const { return settings_visible_; } |
| 61 MessageCenterTray* tray() { return tray_; } | 61 MessageCenterTray* tray() { return tray_; } |
| 62 | 62 |
| 63 void SetIsClosing(bool is_closing); | 63 void SetIsClosing(bool is_closing); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 bool is_closing_; | 134 bool is_closing_; |
| 135 | 135 |
| 136 scoped_ptr<MessageViewContextMenuController> context_menu_controller_; | 136 scoped_ptr<MessageViewContextMenuController> context_menu_controller_; |
| 137 | 137 |
| 138 DISALLOW_COPY_AND_ASSIGN(MessageCenterView); | 138 DISALLOW_COPY_AND_ASSIGN(MessageCenterView); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace message_center | 141 } // namespace message_center |
| 142 | 142 |
| 143 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ | 143 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ |
| OLD | NEW |