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

Unified Diff: ui/message_center/views/toast_contents_view.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: 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
« no previous file with comments | « ui/message_center/views/toast_contents_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 93cd95325a76f7fd5265682cd6dfcc2e39a66ce5..02c6e01406c4d9303fc18c34f567c83e6a7831be 100644
--- a/ui/message_center/views/toast_contents_view.cc
+++ b/ui/message_center/views/toast_contents_view.cc
@@ -296,6 +296,12 @@ void ToastContentsView::OnMouseExited(const ui::MouseEvent& event) {
collection_->OnMouseExited(this);
}
+void ToastContentsView::VisibilityChanged(
+ View* starting_from, bool is_visible) {
+ if (!is_visible && collection_)
+ collection_->OnMouseExited(this);
+}
+
void ToastContentsView::Layout() {
if (child_count() > 0) {
child_at(0)->SetBounds(
« no previous file with comments | « 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