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

Unified Diff: ui/message_center/views/message_view.cc

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
Index: ui/message_center/views/message_view.cc
diff --git a/ui/message_center/views/message_view.cc b/ui/message_center/views/message_view.cc
index 1783533b2d625248e73f88fd7c8f526bbd9918b3..11ff5485f86612ed4314d70b68a786060404df56 100644
--- a/ui/message_center/views/message_view.cc
+++ b/ui/message_center/views/message_view.cc
@@ -83,6 +83,11 @@ MessageView::MessageView(MessageViewController* controller,
MessageView::~MessageView() {
}
+void MessageView::UpdateWithNotification(const Notification& notification) {
+ small_image_view_->SetImage(notification.small_image().AsImageSkia());
+ display_source_ = notification.display_source();
+}
+
// static
gfx::Insets MessageView::GetShadowInsets() {
return gfx::Insets(kShadowBlur / 2 - kShadowOffset,

Powered by Google App Engine
This is Rietveld 408576698