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

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

Issue 271773002: Retain popup bubble mouse status even through updates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/message_view.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 a607b03c30288d1b01420cb4d739113843f63a02..f0f5a9f59f607440bd79ad0620c82bb5e94681d2 100644
--- a/ui/message_center/views/notification_view.h
+++ b/ui/message_center/views/notification_view.h
@@ -52,6 +52,8 @@ class MESSAGE_CENTER_EXPORT NotificationView : public MessageView,
virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE;
// Overridden from MessageView:
+ virtual void UpdateWithNotification(
+ const Notification& notification) OVERRIDE;
virtual void ButtonPressed(views::Button* sender,
const ui::Event& event) OVERRIDE;
@@ -69,6 +71,18 @@ class MESSAGE_CENTER_EXPORT NotificationView : public MessageView,
const Notification& notification);
private:
+ void CreateViews(const Notification& notification);
Jun Mukai 2014/05/07 23:15:11 nit: this doesn't actually create views right? It
+ void SetAccessibleName(const Notification& notification);
+
+ void CreateTitleView(const Notification& notification);
+ void CreateMessageView(const Notification& notification);
+ void CreateContextMessageView(const Notification& notification);
+ void CreateProgressBarView(const Notification& notification);
+ void CreateListItemViews(const Notification& notification);
+ void CreateIconView(const Notification& notification);
+ void CreateImageView(const Notification& notification);
+ void CreateActionButtonViews(const Notification& notification);
+
int GetMessageLineLimit(int width);
int GetMessageHeight(int width, int limit);
@@ -88,6 +102,7 @@ class MESSAGE_CENTER_EXPORT NotificationView : public MessageView,
views::View* image_view_;
views::ProgressBar* progress_bar_view_;
std::vector<views::View*> action_buttons_;
+ std::vector<views::View*> separators_;
DISALLOW_COPY_AND_ASSIGN(NotificationView);
};
« no previous file with comments | « ui/message_center/views/message_view.cc ('k') | ui/message_center/views/notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698