Chromium Code Reviews| 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; | |
| 20 class ProgressBar; | 19 class ProgressBar; |
| 21 } | 20 } |
| 22 | 21 |
| 23 namespace message_center { | 22 namespace message_center { |
| 24 | 23 |
| 25 class BoundedLabel; | 24 class BoundedLabel; |
| 26 class NotificationHeaderView; | 25 class NotificationHeaderView; |
| 27 class ProportionalImageView; | 26 class ProportionalImageView; |
| 28 | 27 |
| 29 namespace { | 28 namespace { |
| 30 class CompactTitleMessageView; | 29 class CompactTitleMessageView; |
| 31 class ItemView; | 30 class ItemView; |
| 31 class NotificationButtonMD; | |
| 32 } | 32 } |
| 33 | 33 |
| 34 // 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 |
| 35 // list) except the custom notification. Future notification types may be | 35 // list) except the custom notification. Future notification types may be |
| 36 // 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 |
| 37 // returned by the Create() factory method below. | 37 // returned by the Create() factory method below. |
| 38 class MESSAGE_CENTER_EXPORT NotificationViewMD | 38 class MESSAGE_CENTER_EXPORT NotificationViewMD |
| 39 : public MessageView, | 39 : public MessageView, |
| 40 public views::ButtonListener, | 40 public views::ButtonListener, |
| 41 public views::ViewTargeterDelegate { | 41 public views::ViewTargeterDelegate { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 97 // Containers for left and right side on |content_row_| | 97 // Containers for left and right side on |content_row_| |
| 98 views::View* left_content_ = nullptr; | 98 views::View* left_content_ = nullptr; |
| 99 views::View* right_content_ = nullptr; | 99 views::View* right_content_ = nullptr; |
| 100 | 100 |
| 101 // Views which are dinamicallly created inside view hierarchy. | 101 // Views which are dinamicallly created inside view hierarchy. |
| 102 views::Label* title_view_ = nullptr; | 102 views::Label* title_view_ = nullptr; |
| 103 BoundedLabel* message_view_ = nullptr; | 103 BoundedLabel* message_view_ = nullptr; |
| 104 ProportionalImageView* icon_view_ = nullptr; | 104 ProportionalImageView* icon_view_ = nullptr; |
| 105 views::View* image_container_ = nullptr; | 105 views::View* image_container_ = nullptr; |
| 106 ProportionalImageView* image_view_ = nullptr; | 106 ProportionalImageView* image_view_ = nullptr; |
| 107 std::vector<views::LabelButton*> action_buttons_; | 107 std::vector<NotificationButtonMD*> action_buttons_; |
|
fukino
2017/06/29 04:11:03
We can still keep the type as views::LabelButton*
tetsui
2017/06/29 04:23:11
Done.
| |
| 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 |