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

Unified Diff: ui/message_center/views/toast_contents_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/toast_contents_view.cc
diff --git a/ui/message_center/views/toast_contents_view.cc b/ui/message_center/views/toast_contents_view.cc
index 690e694156827f658ab2c4a5ae7a4b3be0b4574e..d004e57f2ad3de379b7592496982efb3c1e1b4a6 100644
--- a/ui/message_center/views/toast_contents_view.cc
+++ b/ui/message_center/views/toast_contents_view.cc
@@ -87,6 +87,15 @@ void ToastContentsView::SetContents(MessageView* view,
NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, false);
}
+void ToastContentsView::UpdateContents(const Notification& notification,
+ bool a11y_feedback_for_updates) {
+ DCHECK_GT(child_count(), 0);
+ MessageView* message_view = static_cast<MessageView*>(child_at(0));
+ message_view->UpdateWithNotification(notification);
+ if (a11y_feedback_for_updates)
+ NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, false);
+}
+
void ToastContentsView::RevealWithAnimation(gfx::Point origin) {
// Place/move the toast widgets. Currently it stacks the widgets from the
// right-bottom of the work area.
« ui/message_center/views/notification_view.h ('K') | « ui/message_center/views/toast_contents_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698