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

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

Issue 2972493002: Implement time stamp in new-style notification. (Closed)
Patch Set: Fix UI strings. Created 3 years, 5 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 0d3f0c30634dc05293590174b3b1a7dabc6e771d..2471c67a40559c4f4c9ccbbaab10f1bbc03119cd 100644
--- a/ui/message_center/views/notification_header_view.h
+++ b/ui/message_center/views/notification_header_view.h
@@ -24,6 +24,7 @@ class NotificationHeaderView : public views::CustomButton {
void SetAppName(const base::string16& name);
void SetProgress(int progress);
void SetOverflowIndicator(int count);
+ void SetTimestamp(base::Time past);
void SetExpandButtonEnabled(bool enabled);
void SetExpanded(bool expanded);
void SetSettingsButtonEnabled(bool enabled);
@@ -31,6 +32,7 @@ class NotificationHeaderView : public views::CustomButton {
void SetControlButtonsVisible(bool visible);
void ClearProgress();
void ClearOverflowIndicator();
+ void ClearTimestamp();
bool IsExpandButtonEnabled();
bool IsSettingsButtonEnabled();
bool IsCloseButtonEnabled();
@@ -48,11 +50,14 @@ class NotificationHeaderView : public views::CustomButton {
private:
void UpdateControlButtonsVisibility();
+ // Update visibility for both |summary_text_view_| and |timestamp_view_|.
void UpdateSummaryTextVisibility();
views::Label* app_name_view_ = nullptr;
views::Label* summary_text_divider_ = nullptr;
views::Label* summary_text_view_ = nullptr;
+ views::Label* timestamp_divider_ = nullptr;
+ views::Label* timestamp_view_ = nullptr;
views::ImageView* app_icon_view_ = nullptr;
views::ImageView* expand_button_ = nullptr;
PaddedButton* settings_button_ = nullptr;
@@ -63,6 +68,7 @@ class NotificationHeaderView : public views::CustomButton {
bool is_control_buttons_visible_ = false;
bool has_progress_ = false;
bool has_overflow_indicator_ = false;
+ bool has_timestamp_ = 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