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_MD_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_ |
6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_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 10 matching lines...) Expand all Loading... |
21 } | 21 } |
22 | 22 |
23 namespace message_center { | 23 namespace message_center { |
24 | 24 |
25 class BoundedLabel; | 25 class BoundedLabel; |
26 class NotificationHeaderView; | 26 class NotificationHeaderView; |
27 class ProportionalImageView; | 27 class ProportionalImageView; |
28 | 28 |
29 namespace { | 29 namespace { |
30 class CompactTitleMessageView; | 30 class CompactTitleMessageView; |
| 31 class ItemView; |
31 } | 32 } |
32 | 33 |
33 // View that displays all current types of notification (web, basic, image, and | 34 // View that displays all current types of notification (web, basic, image, and |
34 // list) except the custom notification. Future notification types may be | 35 // list) except the custom notification. Future notification types may be |
35 // handled by other classes, in which case instances of those classes would be | 36 // handled by other classes, in which case instances of those classes would be |
36 // returned by the Create() factory method below. | 37 // returned by the Create() factory method below. |
37 class MESSAGE_CENTER_EXPORT NotificationViewMD | 38 class MESSAGE_CENTER_EXPORT NotificationViewMD |
38 : public MessageView, | 39 : public MessageView, |
39 public views::ButtonListener, | 40 public views::ButtonListener, |
40 public views::ViewTargeterDelegate { | 41 public views::ViewTargeterDelegate { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 views::View* left_content_ = nullptr; | 98 views::View* left_content_ = nullptr; |
98 views::View* right_content_ = nullptr; | 99 views::View* right_content_ = nullptr; |
99 | 100 |
100 // Views which are dinamicallly created inside view hierarchy. | 101 // Views which are dinamicallly created inside view hierarchy. |
101 views::Label* title_view_ = nullptr; | 102 views::Label* title_view_ = nullptr; |
102 BoundedLabel* message_view_ = nullptr; | 103 BoundedLabel* message_view_ = nullptr; |
103 ProportionalImageView* icon_view_ = nullptr; | 104 ProportionalImageView* icon_view_ = nullptr; |
104 views::View* image_container_ = nullptr; | 105 views::View* image_container_ = nullptr; |
105 ProportionalImageView* image_view_ = nullptr; | 106 ProportionalImageView* image_view_ = nullptr; |
106 std::vector<views::LabelButton*> action_buttons_; | 107 std::vector<views::LabelButton*> action_buttons_; |
107 std::vector<views::View*> item_views_; | 108 std::vector<ItemView*> item_views_; |
108 views::ProgressBar* progress_bar_view_ = nullptr; | 109 views::ProgressBar* progress_bar_view_ = nullptr; |
109 CompactTitleMessageView* compact_title_message_view_ = nullptr; | 110 CompactTitleMessageView* compact_title_message_view_ = nullptr; |
110 | 111 |
111 DISALLOW_COPY_AND_ASSIGN(NotificationViewMD); | 112 DISALLOW_COPY_AND_ASSIGN(NotificationViewMD); |
112 }; | 113 }; |
113 | 114 |
114 } // namespace message_center | 115 } // namespace message_center |
115 | 116 |
116 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_ | 117 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_ |
OLD | NEW |