| 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_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
| 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_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/view_targeter_delegate.h" | 14 #include "ui/views/view_targeter_delegate.h" |
| 15 | 15 |
| 16 class GURL; | 16 class GURL; |
| 17 | 17 |
| 18 namespace views { | 18 namespace views { |
| 19 class ProgressBar; | 19 class ProgressBar; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace message_center { | 22 namespace message_center { |
| 23 | 23 |
| 24 class BoundedLabel; | 24 class BoundedLabel; |
| 25 class MessageCenter; | 25 class MessageCenter; |
| 26 class NotificationButton; | 26 class NotificationButton; |
| 27 class NotificationProgressBarBase; | |
| 28 class PaddedButton; | 27 class PaddedButton; |
| 29 class ProportionalImageView; | 28 class ProportionalImageView; |
| 30 | 29 |
| 31 // View that displays all current types of notification (web, basic, image, and | 30 // View that displays all current types of notification (web, basic, image, and |
| 32 // list) except the custom notification. Future notification types may be | 31 // list) except the custom notification. Future notification types may be |
| 33 // handled by other classes, in which case instances of those classes would be | 32 // handled by other classes, in which case instances of those classes would be |
| 34 // returned by the Create() factory method below. | 33 // returned by the Create() factory method below. |
| 35 class MESSAGE_CENTER_EXPORT NotificationView | 34 class MESSAGE_CENTER_EXPORT NotificationView |
| 36 : public MessageView, | 35 : public MessageView, |
| 37 public views::ViewTargeterDelegate { | 36 public views::ViewTargeterDelegate { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 views::View* top_view_ = nullptr; | 96 views::View* top_view_ = nullptr; |
| 98 BoundedLabel* title_view_ = nullptr; | 97 BoundedLabel* title_view_ = nullptr; |
| 99 BoundedLabel* message_view_ = nullptr; | 98 BoundedLabel* message_view_ = nullptr; |
| 100 BoundedLabel* context_message_view_ = nullptr; | 99 BoundedLabel* context_message_view_ = nullptr; |
| 101 views::ImageButton* settings_button_view_ = nullptr; | 100 views::ImageButton* settings_button_view_ = nullptr; |
| 102 std::vector<views::View*> item_views_; | 101 std::vector<views::View*> item_views_; |
| 103 ProportionalImageView* icon_view_ = nullptr; | 102 ProportionalImageView* icon_view_ = nullptr; |
| 104 views::View* bottom_view_ = nullptr; | 103 views::View* bottom_view_ = nullptr; |
| 105 views::View* image_container_ = nullptr; | 104 views::View* image_container_ = nullptr; |
| 106 ProportionalImageView* image_view_ = nullptr; | 105 ProportionalImageView* image_view_ = nullptr; |
| 107 NotificationProgressBarBase* progress_bar_view_ = nullptr; | 106 views::ProgressBar* progress_bar_view_ = nullptr; |
| 108 std::vector<NotificationButton*> action_buttons_; | 107 std::vector<NotificationButton*> action_buttons_; |
| 109 std::vector<views::View*> separators_; | 108 std::vector<views::View*> separators_; |
| 110 | 109 |
| 111 DISALLOW_COPY_AND_ASSIGN(NotificationView); | 110 DISALLOW_COPY_AND_ASSIGN(NotificationView); |
| 112 }; | 111 }; |
| 113 | 112 |
| 114 } // namespace message_center | 113 } // namespace message_center |
| 115 | 114 |
| 116 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ | 115 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
| OLD | NEW |