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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
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 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, ViewOrderingTest); |
78 | 79 |
79 void CreateOrUpdateViews(const Notification& notification); | 80 void CreateOrUpdateViews(const Notification& notification); |
80 void SetAccessibleName(const Notification& notification); | 81 void SetAccessibleName(const Notification& notification); |
81 | 82 |
82 void CreateOrUpdateTitleView(const Notification& notification); | 83 void CreateOrUpdateTitleView(const Notification& notification); |
83 void CreateOrUpdateMessageView(const Notification& notification); | 84 void CreateOrUpdateMessageView(const Notification& notification); |
84 void CreateOrUpdateContextMessageView(const Notification& notification); | 85 void CreateOrUpdateContextMessageView(const Notification& notification); |
85 void CreateOrUpdateProgressBarView(const Notification& notification); | 86 void CreateOrUpdateProgressBarView(const Notification& notification); |
86 void CreateOrUpdateListItemViews(const Notification& notification); | 87 void CreateOrUpdateListItemViews(const Notification& notification); |
87 void CreateOrUpdateIconView(const Notification& notification); | 88 void CreateOrUpdateIconView(const Notification& notification); |
(...skipping 20 matching lines...) Expand all Loading... |
108 views::ProgressBar* progress_bar_view_; | 109 views::ProgressBar* progress_bar_view_; |
109 std::vector<NotificationButton*> action_buttons_; | 110 std::vector<NotificationButton*> action_buttons_; |
110 std::vector<views::View*> separators_; | 111 std::vector<views::View*> separators_; |
111 | 112 |
112 DISALLOW_COPY_AND_ASSIGN(NotificationView); | 113 DISALLOW_COPY_AND_ASSIGN(NotificationView); |
113 }; | 114 }; |
114 | 115 |
115 } // namespace message_center | 116 } // namespace message_center |
116 | 117 |
117 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ | 118 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
OLD | NEW |