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

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

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 | « no previous file | ui/message_center/views/notification_header_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..640f6be47f62f4db7c77934f5f10517dbb2da419 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_summary_text_ = false;
DISALLOW_COPY_AND_ASSIGN(NotificationHeaderView);
};
« no previous file with comments | « no previous file | ui/message_center/views/notification_header_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698