| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_GROUP_VIEW_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_GROUP_VIEW_H_ |
| 6 #define UI_MESSAGE_CENTER_VIEWS_GROUP_VIEW_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_GROUP_VIEW_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/image/image_skia.h" | 8 #include "ui/gfx/image/image_skia.h" |
| 9 #include "ui/message_center/views/message_center_controller.h" | 9 #include "ui/message_center/views/message_center_controller.h" |
| 10 #include "ui/message_center/views/message_center_view.h" | 10 #include "ui/message_center/views/message_center_view.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 const ui::Event& event) OVERRIDE; | 44 const ui::Event& event) OVERRIDE; |
| 45 | 45 |
| 46 // Overridden from MessageViewController: | 46 // Overridden from MessageViewController: |
| 47 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE; | 47 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE; |
| 48 virtual void RemoveNotification(const std::string& notification_id, | 48 virtual void RemoveNotification(const std::string& notification_id, |
| 49 bool by_user) OVERRIDE; | 49 bool by_user) OVERRIDE; |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 MessageCenterController* controller_; // Weak, controls lifetime of views. | 52 MessageCenterController* controller_; // Weak, controls lifetime of views. |
| 53 NotifierId notifier_id_; | 53 NotifierId notifier_id_; |
| 54 string16 display_source_; | 54 base::string16 display_source_; |
| 55 gfx::ImageSkia group_icon_; | 55 gfx::ImageSkia group_icon_; |
| 56 int group_size_; | 56 int group_size_; |
| 57 std::string last_notification_id_; | 57 std::string last_notification_id_; |
| 58 | 58 |
| 59 // Weak references to GroupView descendants owned by their parents. | 59 // Weak references to GroupView descendants owned by their parents. |
| 60 views::View* top_view_; | 60 views::View* top_view_; |
| 61 views::View* bottom_view_; | 61 views::View* bottom_view_; |
| 62 BoundedLabel* title_view_; | 62 BoundedLabel* title_view_; |
| 63 BoundedLabel* message_view_; | 63 BoundedLabel* message_view_; |
| 64 BoundedLabel* context_message_view_; | 64 BoundedLabel* context_message_view_; |
| 65 views::View* icon_view_; | 65 views::View* icon_view_; |
| 66 NotificationButton* more_button_; | 66 NotificationButton* more_button_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(GroupView); | 68 DISALLOW_COPY_AND_ASSIGN(GroupView); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace message_center | 71 } // namespace message_center |
| 72 | 72 |
| 73 #endif // UI_MESSAGE_CENTER_VIEWS_GROUP_VIEW_H_ | 73 #endif // UI_MESSAGE_CENTER_VIEWS_GROUP_VIEW_H_ |
| OLD | NEW |