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