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

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

Issue 23764003: Make toasts notice when they're hidden and send the mouse-out event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a test. Created 7 years, 4 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_popup_collection.cc
diff --git a/ui/message_center/views/message_popup_collection.cc b/ui/message_center/views/message_popup_collection.cc
index f08c986894bed6764cf6d0445e46c33a32b90ecd..130a8650f6a501879117b51ea877db85e4d1c65f 100644
--- a/ui/message_center/views/message_popup_collection.cc
+++ b/ui/message_center/views/message_popup_collection.cc
@@ -100,6 +100,8 @@ MessagePopupCollection::~MessagePopupCollection() {
}
void MessagePopupCollection::RemoveToast(ToastContentsView* toast) {
+ OnMouseExited(toast);
+
for (Toasts::iterator iter = toasts_.begin(); iter != toasts_.end(); ++iter) {
if ((*iter) == toast) {
toasts_.erase(iter);
« no previous file with comments | « ui/message_center/views/message_popup_collection.h ('k') | ui/message_center/views/message_popup_collection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698