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

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

Issue 2945303006: Add percentage of progress in notification header. (Closed)
Patch Set: Fix merge mistake. 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
Index: ui/message_center/views/notification_header_view.h
diff --git a/ui/message_center/views/notification_header_view.h b/ui/message_center/views/notification_header_view.h
index b5fbbc0aa3f3f142394766ade6e3d18d8236918c..1f3ca20762cf6d5f4c10aa678af1f244119ad2fa 100644
--- a/ui/message_center/views/notification_header_view.h
+++ b/ui/message_center/views/notification_header_view.h
@@ -22,11 +22,13 @@ class NotificationHeaderView : public views::CustomButton {
NotificationHeaderView(views::ButtonListener* listener);
void SetAppIcon(const gfx::ImageSkia& img);
void SetAppName(const base::string16& name);
+ void SetProgress(int progress);
void SetExpandButtonEnabled(bool enabled);
void SetExpanded(bool expanded);
void SetSettingsButtonEnabled(bool enabled);
void SetCloseButtonEnabled(bool enabled);
void SetControlButtonsVisible(bool visible);
+ void ClearProgress();
bool IsExpandButtonEnabled();
bool IsSettingsButtonEnabled();
bool IsCloseButtonEnabled();
@@ -38,8 +40,11 @@ class NotificationHeaderView : public views::CustomButton {
private:
void UpdateControlButtonsVisibility();
+ void UpdateSummaryTextVisibility();
views::Label* app_name_view_ = nullptr;
+ views::Label* summary_text_divider_ = nullptr;
+ views::Label* summary_text_view_ = nullptr;
views::ImageView* app_icon_view_ = nullptr;
views::ImageButton* expand_button_ = nullptr;
PaddedButton* settings_button_ = nullptr;
@@ -48,6 +53,7 @@ class NotificationHeaderView : public views::CustomButton {
bool settings_button_enabled_ = false;
bool close_button_enabled_ = false;
bool is_control_buttons_visible_ = false;
+ bool has_progress_ = false;
DISALLOW_COPY_AND_ASSIGN(NotificationHeaderView);
};

Powered by Google App Engine
This is Rietveld 408576698