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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 views::View* actions_row_ = nullptr; | 107 views::View* actions_row_ = nullptr; |
107 | 108 |
108 // Containers for left and right side on |content_row_| | 109 // Containers for left and right side on |content_row_| |
109 views::View* left_content_ = nullptr; | 110 views::View* left_content_ = nullptr; |
110 views::View* right_content_ = nullptr; | 111 views::View* right_content_ = nullptr; |
111 | 112 |
112 // Views which are dinamicallly created inside view hierarchy. | 113 // Views which are dinamicallly created inside view hierarchy. |
113 views::Label* title_view_ = nullptr; | 114 views::Label* title_view_ = nullptr; |
114 BoundedLabel* message_view_ = nullptr; | 115 BoundedLabel* message_view_ = nullptr; |
115 ProportionalImageView* icon_view_ = nullptr; | 116 ProportionalImageView* icon_view_ = nullptr; |
116 views::View* image_container_ = nullptr; | 117 LargeImageView* image_view_ = nullptr; |
117 ProportionalImageView* image_view_ = nullptr; | |
118 std::vector<views::LabelButton*> action_buttons_; | 118 std::vector<views::LabelButton*> action_buttons_; |
119 std::vector<ItemView*> item_views_; | 119 std::vector<ItemView*> item_views_; |
120 views::ProgressBar* progress_bar_view_ = nullptr; | 120 views::ProgressBar* progress_bar_view_ = nullptr; |
121 CompactTitleMessageView* compact_title_message_view_ = nullptr; | 121 CompactTitleMessageView* compact_title_message_view_ = nullptr; |
122 | 122 |
123 DISALLOW_COPY_AND_ASSIGN(NotificationViewMD); | 123 DISALLOW_COPY_AND_ASSIGN(NotificationViewMD); |
124 }; | 124 }; |
125 | 125 |
126 } // namespace message_center | 126 } // namespace message_center |
127 | 127 |
128 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_ | 128 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_ |
OLD | NEW |