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 "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, TestImageSizing); | 63 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, TestImageSizing); |
64 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, UpdateButtonsStateTest); | 64 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, UpdateButtonsStateTest); |
65 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, UpdateButtonCountTest); | 65 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, UpdateButtonCountTest); |
66 | 66 |
67 friend class NotificationViewTest; | 67 friend class NotificationViewTest; |
68 | 68 |
69 // views::ViewTargeterDelegate: | 69 // views::ViewTargeterDelegate: |
70 views::View* TargetForRect(views::View* root, const gfx::Rect& rect) override; | 70 views::View* TargetForRect(views::View* root, const gfx::Rect& rect) override; |
71 | 71 |
72 void CreateOrUpdateViews(const Notification& notification); | 72 void CreateOrUpdateViews(const Notification& notification); |
73 void SetAccessibleName(const Notification& notification); | |
74 | 73 |
75 void CreateOrUpdateTitleView(const Notification& notification); | 74 void CreateOrUpdateTitleView(const Notification& notification); |
76 void CreateOrUpdateMessageView(const Notification& notification); | 75 void CreateOrUpdateMessageView(const Notification& notification); |
77 void CreateOrUpdateContextMessageView(const Notification& notification); | 76 void CreateOrUpdateContextMessageView(const Notification& notification); |
78 void CreateOrUpdateSettingsButtonView(const Notification& notification); | 77 void CreateOrUpdateSettingsButtonView(const Notification& notification); |
79 void CreateOrUpdateProgressBarView(const Notification& notification); | 78 void CreateOrUpdateProgressBarView(const Notification& notification); |
80 void CreateOrUpdateListItemViews(const Notification& notification); | 79 void CreateOrUpdateListItemViews(const Notification& notification); |
81 void CreateOrUpdateIconView(const Notification& notification); | 80 void CreateOrUpdateIconView(const Notification& notification); |
82 void CreateOrUpdateImageView(const Notification& notification); | 81 void CreateOrUpdateImageView(const Notification& notification); |
83 void CreateOrUpdateActionButtonViews(const Notification& notification); | 82 void CreateOrUpdateActionButtonViews(const Notification& notification); |
(...skipping 24 matching lines...) Expand all Loading... |
108 NotificationProgressBarBase* progress_bar_view_ = nullptr; | 107 NotificationProgressBarBase* progress_bar_view_ = nullptr; |
109 std::vector<NotificationButton*> action_buttons_; | 108 std::vector<NotificationButton*> action_buttons_; |
110 std::vector<views::View*> separators_; | 109 std::vector<views::View*> separators_; |
111 | 110 |
112 DISALLOW_COPY_AND_ASSIGN(NotificationView); | 111 DISALLOW_COPY_AND_ASSIGN(NotificationView); |
113 }; | 112 }; |
114 | 113 |
115 } // namespace message_center | 114 } // namespace message_center |
116 | 115 |
117 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ | 116 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
OLD | NEW |