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" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "ui/message_center/message_center_export.h" | 12 #include "ui/message_center/message_center_export.h" |
13 #include "ui/message_center/views/message_view.h" | 13 #include "ui/message_center/views/message_view.h" |
14 #include "ui/views/controls/button/button.h" | 14 #include "ui/views/controls/button/button.h" |
15 #include "ui/views/view_targeter_delegate.h" | 15 #include "ui/views/view_targeter_delegate.h" |
16 | 16 |
17 namespace views { | 17 namespace views { |
18 class Label; | 18 class Label; |
19 class LabelButton; | 19 class LabelButton; |
20 } | 20 } |
21 | 21 |
22 namespace message_center { | 22 namespace message_center { |
23 | 23 |
24 class BoundedLabel; | 24 class BoundedLabel; |
25 class NotificationHeaderView; | 25 class NotificationHeaderView; |
26 class ProportionalImageView; | 26 class ProportionalImageView; |
27 | 27 |
| 28 namespace { |
| 29 class ItemView; |
| 30 } |
| 31 |
28 // View that displays all current types of notification (web, basic, image, and | 32 // View that displays all current types of notification (web, basic, image, and |
29 // list) except the custom notification. Future notification types may be | 33 // list) except the custom notification. Future notification types may be |
30 // handled by other classes, in which case instances of those classes would be | 34 // handled by other classes, in which case instances of those classes would be |
31 // returned by the Create() factory method below. | 35 // returned by the Create() factory method below. |
32 class MESSAGE_CENTER_EXPORT NotificationViewMD | 36 class MESSAGE_CENTER_EXPORT NotificationViewMD |
33 : public MessageView, | 37 : public MessageView, |
34 public views::ButtonListener, | 38 public views::ButtonListener, |
35 public views::ViewTargeterDelegate { | 39 public views::ViewTargeterDelegate { |
36 public: | 40 public: |
37 NotificationViewMD(MessageCenterController* controller, | 41 NotificationViewMD(MessageCenterController* controller, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 views::View* left_content_ = nullptr; | 95 views::View* left_content_ = nullptr; |
92 views::View* right_content_ = nullptr; | 96 views::View* right_content_ = nullptr; |
93 | 97 |
94 // Views which are dinamicallly created inside view hierarchy. | 98 // Views which are dinamicallly created inside view hierarchy. |
95 views::Label* title_view_ = nullptr; | 99 views::Label* title_view_ = nullptr; |
96 BoundedLabel* message_view_ = nullptr; | 100 BoundedLabel* message_view_ = nullptr; |
97 ProportionalImageView* icon_view_ = nullptr; | 101 ProportionalImageView* icon_view_ = nullptr; |
98 views::View* image_container_ = nullptr; | 102 views::View* image_container_ = nullptr; |
99 ProportionalImageView* image_view_ = nullptr; | 103 ProportionalImageView* image_view_ = nullptr; |
100 std::vector<views::LabelButton*> action_buttons_; | 104 std::vector<views::LabelButton*> action_buttons_; |
101 std::vector<views::View*> item_views_; | 105 std::vector<ItemView*> item_views_; |
102 | 106 |
103 DISALLOW_COPY_AND_ASSIGN(NotificationViewMD); | 107 DISALLOW_COPY_AND_ASSIGN(NotificationViewMD); |
104 }; | 108 }; |
105 | 109 |
106 } // namespace message_center | 110 } // namespace message_center |
107 | 111 |
108 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_ | 112 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_ |
OLD | NEW |