| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_NOTIFICATION_VIEW_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
| 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ui/message_center/message_center_export.h" | 10 #include "ui/message_center/message_center_export.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 protected: | 69 protected: |
| 70 NotificationView(MessageCenterController* controller, | 70 NotificationView(MessageCenterController* controller, |
| 71 const Notification& notification); | 71 const Notification& notification); |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, CreateOrUpdateTest); | 74 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, CreateOrUpdateTest); |
| 75 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, TestLineLimits); | 75 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, TestLineLimits); |
| 76 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, UpdateButtonsStateTest); | 76 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, UpdateButtonsStateTest); |
| 77 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, UpdateButtonCountTest); | 77 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, UpdateButtonCountTest); |
| 78 | 78 |
| 79 friend class NotificationViewTest; |
| 80 |
| 79 void CreateOrUpdateViews(const Notification& notification); | 81 void CreateOrUpdateViews(const Notification& notification); |
| 80 void SetAccessibleName(const Notification& notification); | 82 void SetAccessibleName(const Notification& notification); |
| 81 | 83 |
| 82 void CreateOrUpdateTitleView(const Notification& notification); | 84 void CreateOrUpdateTitleView(const Notification& notification); |
| 83 void CreateOrUpdateMessageView(const Notification& notification); | 85 void CreateOrUpdateMessageView(const Notification& notification); |
| 84 void CreateOrUpdateContextMessageView(const Notification& notification); | 86 void CreateOrUpdateContextMessageView(const Notification& notification); |
| 85 void CreateOrUpdateProgressBarView(const Notification& notification); | 87 void CreateOrUpdateProgressBarView(const Notification& notification); |
| 86 void CreateOrUpdateListItemViews(const Notification& notification); | 88 void CreateOrUpdateListItemViews(const Notification& notification); |
| 87 void CreateOrUpdateIconView(const Notification& notification); | 89 void CreateOrUpdateIconView(const Notification& notification); |
| 88 void CreateOrUpdateImageView(const Notification& notification); | 90 void CreateOrUpdateImageView(const Notification& notification); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 108 views::ProgressBar* progress_bar_view_; | 110 views::ProgressBar* progress_bar_view_; |
| 109 std::vector<NotificationButton*> action_buttons_; | 111 std::vector<NotificationButton*> action_buttons_; |
| 110 std::vector<views::View*> separators_; | 112 std::vector<views::View*> separators_; |
| 111 | 113 |
| 112 DISALLOW_COPY_AND_ASSIGN(NotificationView); | 114 DISALLOW_COPY_AND_ASSIGN(NotificationView); |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 } // namespace message_center | 117 } // namespace message_center |
| 116 | 118 |
| 117 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ | 119 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
| OLD | NEW |