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

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

Issue 2945303006: Add percentage of progress in notification header. (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 | « ui/message_center/views/notification_header_view.cc ('k') | ui/strings/ui_strings.grd » ('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.cc
diff --git a/ui/message_center/views/notification_view_md.cc b/ui/message_center/views/notification_view_md.cc
index 66e70fd5d2a6b06926314a4a680dc5d7b419b8d9..2cb5d8b5bf71dd0e97069bb780f52b17889f5360 100644
--- a/ui/message_center/views/notification_view_md.cc
+++ b/ui/message_center/views/notification_view_md.cc
@@ -551,6 +551,7 @@ void NotificationViewMD::CreateOrUpdateProgressBarView(
if (notification.type() != NOTIFICATION_TYPE_PROGRESS) {
left_content_->RemoveChildView(progress_bar_view_);
progress_bar_view_ = nullptr;
+ header_row_->ClearProgress();
return;
}
@@ -566,6 +567,8 @@ void NotificationViewMD::CreateOrUpdateProgressBarView(
progress_bar_view_->SetValue(notification.progress() / 100.0);
progress_bar_view_->SetVisible(notification.items().empty());
+
+ header_row_->SetProgress(notification.progress());
}
void NotificationViewMD::CreateOrUpdateListItemViews(
« no previous file with comments | « ui/message_center/views/notification_header_view.cc ('k') | ui/strings/ui_strings.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698