Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(505)

Unified Diff: ui/message_center/views/notification_view_md.h

Issue 2942143002: Add progress notification support to new-style notification. (Closed)
Patch Set: Resolve review comments. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/message_center/views/notification_view_md.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/notification_view_md.h
diff --git a/ui/message_center/views/notification_view_md.h b/ui/message_center/views/notification_view_md.h
index 38ff06dedec0ee26b0d77920adeb954fba7bbdf6..85a675b4280fa04906a506db94b878ec330deb32 100644
--- a/ui/message_center/views/notification_view_md.h
+++ b/ui/message_center/views/notification_view_md.h
@@ -17,6 +17,7 @@
namespace views {
class Label;
class LabelButton;
+class ProgressBar;
}
namespace message_center {
@@ -25,6 +26,10 @@ class BoundedLabel;
class NotificationHeaderView;
class ProportionalImageView;
+namespace {
+class CompactTitleMessageView;
+}
+
// View that displays all current types of notification (web, basic, image, and
// list) except the custom notification. Future notification types may be
// handled by other classes, in which case instances of those classes would be
@@ -63,6 +68,7 @@ class MESSAGE_CENTER_EXPORT NotificationViewMD
void CreateOrUpdateContextTitleView(const Notification& notification);
void CreateOrUpdateTitleView(const Notification& notification);
void CreateOrUpdateMessageView(const Notification& notification);
+ void CreateOrUpdateCompactTitleMessageView(const Notification& notification);
void CreateOrUpdateProgressBarView(const Notification& notification);
void CreateOrUpdateListItemViews(const Notification& notification);
void CreateOrUpdateIconView(const Notification& notification);
@@ -99,6 +105,8 @@ class MESSAGE_CENTER_EXPORT NotificationViewMD
ProportionalImageView* image_view_ = nullptr;
std::vector<views::LabelButton*> action_buttons_;
std::vector<views::View*> item_views_;
+ views::ProgressBar* progress_bar_view_ = nullptr;
+ CompactTitleMessageView* compact_title_message_view_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(NotificationViewMD);
};
« no previous file with comments | « no previous file | ui/message_center/views/notification_view_md.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698