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

Issue 23764003: Make toasts notice when they're hidden and send the mouse-out event. (Closed)

Created:
7 years, 3 months ago by dewittj
Modified:
7 years, 3 months ago
Reviewers:
Jun Mukai
CC:
chromium-reviews, sadrul, mohsen
Visibility:
Public.

Description

Make toasts notice when they're hidden and send the mouse-out event. A recent change in Views causes the mouse move trackers to be removed when visibility changes, causing the mouseexited event never to happen if a window is closed underneath the mouse. BUG=282117 R=mukai@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220691

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added check for mouse hover within OnVisibilityChanged. #

Patch Set 3 : Update state in ToastContentsView #

Patch Set 4 : Added a test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -2 lines) Patch
M ui/message_center/views/message_popup_collection.h View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M ui/message_center/views/message_popup_collection.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/message_center/views/message_popup_collection_unittest.cc View 1 2 3 3 chunks +40 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
dewittj
mukai: PTAL
7 years, 3 months ago (2013-08-30 17:11:57 UTC) #1
sadrul
drive-by https://codereview.chromium.org/23764003/diff/1/ui/message_center/views/toast_contents_view.cc File ui/message_center/views/toast_contents_view.cc (right): https://codereview.chromium.org/23764003/diff/1/ui/message_center/views/toast_contents_view.cc#newcode251 ui/message_center/views/toast_contents_view.cc:251: collection_->RemoveToast(this); I think it makes more sense for ...
7 years, 3 months ago (2013-08-30 17:18:31 UTC) #2
dewittj
https://codereview.chromium.org/23764003/diff/1/ui/message_center/views/toast_contents_view.cc File ui/message_center/views/toast_contents_view.cc (right): https://codereview.chromium.org/23764003/diff/1/ui/message_center/views/toast_contents_view.cc#newcode251 ui/message_center/views/toast_contents_view.cc:251: collection_->RemoveToast(this); On 2013/08/30 17:18:31, sadrul wrote: > I think ...
7 years, 3 months ago (2013-08-30 17:29:24 UTC) #3
Jun Mukai
lgtm
7 years, 3 months ago (2013-08-30 17:43:44 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/23764003/10001
7 years, 3 months ago (2013-08-30 17:47:06 UTC) #5
sadrul
Please consider adding a test for this case too.
7 years, 3 months ago (2013-08-30 17:47:57 UTC) #6
dewittj
On 2013/08/30 17:47:57, sadrul wrote: > Please consider adding a test for this case too. ...
7 years, 3 months ago (2013-08-30 20:31:08 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/23764003/28001
7 years, 3 months ago (2013-08-30 20:32:09 UTC) #8
dewittj
7 years, 3 months ago (2013-08-31 00:05:47 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 manually as r220691 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698