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

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

Issue 273173003: Notifications: Retain button hover state during content updates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move to STLDeleteElements. Created 6 years, 7 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_button.cc ('k') | ui/message_center/views/notification_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_view.h
diff --git a/ui/message_center/views/notification_view.h b/ui/message_center/views/notification_view.h
index 2480618c4a0c183f69edb72fc951facab5958be8..3e009d7842c87e7d616c6c6171da3abfc8bf6e4f 100644
--- a/ui/message_center/views/notification_view.h
+++ b/ui/message_center/views/notification_view.h
@@ -19,6 +19,7 @@ namespace message_center {
class BoundedLabel;
class MessageCenter;
class MessageCenterController;
+class NotificationButton;
class NotificationView;
class PaddedButton;
@@ -72,6 +73,8 @@ class MESSAGE_CENTER_EXPORT NotificationView : public MessageView,
private:
FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, CreateOrUpdateTest);
FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, TestLineLimits);
+ FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, UpdateButtonsStateTest);
+ FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, UpdateButtonCountTest);
void CreateOrUpdateViews(const Notification& notification);
void SetAccessibleName(const Notification& notification);
@@ -103,7 +106,7 @@ class MESSAGE_CENTER_EXPORT NotificationView : public MessageView,
views::View* bottom_view_;
views::View* image_view_;
views::ProgressBar* progress_bar_view_;
- std::vector<views::View*> action_buttons_;
+ std::vector<NotificationButton*> action_buttons_;
std::vector<views::View*> separators_;
DISALLOW_COPY_AND_ASSIGN(NotificationView);
« no previous file with comments | « ui/message_center/views/notification_button.cc ('k') | ui/message_center/views/notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698