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 | 8 |
9 #include "ui/gfx/animation/animation_delegate.h" | 9 #include "ui/gfx/animation/animation_delegate.h" |
10 #include "ui/message_center/message_center_export.h" | 10 #include "ui/message_center/message_center_export.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 class MESSAGE_CENTER_EXPORT MessageCenterView : public views::View, | 42 class MESSAGE_CENTER_EXPORT MessageCenterView : public views::View, |
43 public MessageCenterObserver, | 43 public MessageCenterObserver, |
44 public MessageCenterController, | 44 public MessageCenterController, |
45 public gfx::AnimationDelegate { | 45 public gfx::AnimationDelegate { |
46 public: | 46 public: |
47 MessageCenterView(MessageCenter* message_center, | 47 MessageCenterView(MessageCenter* message_center, |
48 MessageCenterTray* tray, | 48 MessageCenterTray* tray, |
49 int max_height, | 49 int max_height, |
50 bool initially_settings_visible, | 50 bool initially_settings_visible, |
51 bool top_down); | 51 bool top_down, |
| 52 const base::string16& title); |
52 virtual ~MessageCenterView(); | 53 virtual ~MessageCenterView(); |
53 | 54 |
54 void SetNotifications(const NotificationList::Notifications& notifications); | 55 void SetNotifications(const NotificationList::Notifications& notifications); |
55 | 56 |
56 void ClearAllNotifications(); | 57 void ClearAllNotifications(); |
57 void OnAllNotificationsCleared(); | 58 void OnAllNotificationsCleared(); |
58 | 59 |
59 size_t NumMessageViewsForTest() const; | 60 size_t NumMessageViewsForTest() const; |
60 | 61 |
61 void SetSettingsVisible(bool visible); | 62 void SetSettingsVisible(bool visible); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 bool is_closing_; | 138 bool is_closing_; |
138 | 139 |
139 scoped_ptr<MessageViewContextMenuController> context_menu_controller_; | 140 scoped_ptr<MessageViewContextMenuController> context_menu_controller_; |
140 | 141 |
141 DISALLOW_COPY_AND_ASSIGN(MessageCenterView); | 142 DISALLOW_COPY_AND_ASSIGN(MessageCenterView); |
142 }; | 143 }; |
143 | 144 |
144 } // namespace message_center | 145 } // namespace message_center |
145 | 146 |
146 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ | 147 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ |
OLD | NEW |