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

Side by Side Diff: ui/message_center/views/notification_view.h

Issue 305633004: Puts notification buttons back below the image (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improved the test. Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/message_center/message_center_export.h" 10 #include "ui/message_center/message_center_export.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 protected: 69 protected:
70 NotificationView(MessageCenterController* controller, 70 NotificationView(MessageCenterController* controller,
71 const Notification& notification); 71 const Notification& notification);
72 72
73 private: 73 private:
74 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, CreateOrUpdateTest); 74 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, CreateOrUpdateTest);
75 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, TestLineLimits); 75 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, TestLineLimits);
76 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, UpdateButtonsStateTest); 76 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, UpdateButtonsStateTest);
77 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, UpdateButtonCountTest); 77 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, UpdateButtonCountTest);
78 78
79 friend class NotificationViewTest;
80
79 void CreateOrUpdateViews(const Notification& notification); 81 void CreateOrUpdateViews(const Notification& notification);
80 void SetAccessibleName(const Notification& notification); 82 void SetAccessibleName(const Notification& notification);
81 83
82 void CreateOrUpdateTitleView(const Notification& notification); 84 void CreateOrUpdateTitleView(const Notification& notification);
83 void CreateOrUpdateMessageView(const Notification& notification); 85 void CreateOrUpdateMessageView(const Notification& notification);
84 void CreateOrUpdateContextMessageView(const Notification& notification); 86 void CreateOrUpdateContextMessageView(const Notification& notification);
85 void CreateOrUpdateProgressBarView(const Notification& notification); 87 void CreateOrUpdateProgressBarView(const Notification& notification);
86 void CreateOrUpdateListItemViews(const Notification& notification); 88 void CreateOrUpdateListItemViews(const Notification& notification);
87 void CreateOrUpdateIconView(const Notification& notification); 89 void CreateOrUpdateIconView(const Notification& notification);
88 void CreateOrUpdateImageView(const Notification& notification); 90 void CreateOrUpdateImageView(const Notification& notification);
(...skipping 19 matching lines...) Expand all
108 views::ProgressBar* progress_bar_view_; 110 views::ProgressBar* progress_bar_view_;
109 std::vector<NotificationButton*> action_buttons_; 111 std::vector<NotificationButton*> action_buttons_;
110 std::vector<views::View*> separators_; 112 std::vector<views::View*> separators_;
111 113
112 DISALLOW_COPY_AND_ASSIGN(NotificationView); 114 DISALLOW_COPY_AND_ASSIGN(NotificationView);
113 }; 115 };
114 116
115 } // namespace message_center 117 } // namespace message_center
116 118
117 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ 119 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/message_center/views/notification_view.cc » ('j') | ui/message_center/views/notification_view_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698