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

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

Issue 2329633003: Implement progress bar spec (determinate and indeterminate). (Closed)
Patch Set: better example code Created 4 years, 3 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
Index: ui/message_center/views/notification_view.cc
diff --git a/ui/message_center/views/notification_view.cc b/ui/message_center/views/notification_view.cc
index 54f35573967ea6f03881c87d1c08e66d071a836e..967d44ccd100dd24d7b59d4d223054d348c0d4f4 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -30,7 +30,6 @@
#include "ui/message_center/views/constants.h"
#include "ui/message_center/views/message_center_controller.h"
#include "ui/message_center/views/notification_button.h"
-#include "ui/message_center/views/notification_progress_bar.h"
#include "ui/message_center/views/padded_button.h"
#include "ui/message_center/views/proportional_image_view.h"
#include "ui/native_theme/native_theme.h"
@@ -533,9 +532,9 @@ void NotificationView::CreateOrUpdateProgressBarView(
if (!progress_bar_view_) {
if (!is_indeterminate)
- progress_bar_view_ = new NotificationProgressBar();
+ progress_bar_view_ = new views::DeterminateProgressBar();
else
- progress_bar_view_ = new NotificationIndeterminateProgressBar();
+ progress_bar_view_ = new views::IndeterminateProgressBar();
progress_bar_view_->SetBorder(MakeProgressBarBorder(
message_center::kProgressBarTopPadding, kProgressBarBottomPadding));

Powered by Google App Engine
This is Rietveld 408576698