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

Issue 1297373004: Don't synthesize mousemove events if the mouse cursor is not on the widget (Closed)

Created:
5 years, 4 months ago by yoshiki
Modified:
5 years, 3 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, tfarina, tdanderson+views_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't synthesize mousemove events if the mouse cursor is not on the widget BUG=518056 TEST=browser_tests passes, the issue doesn't happened Committed: https://crrev.com/8019d579217e1ae4cc0a6c57b24e6a058a94f1ae Cr-Commit-Position: refs/heads/master@{#346447}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change the property name and add a test #

Total comments: 2

Patch Set 3 : Fix the failed test #

Patch Set 4 : Query the mouse location instead of caching #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -12 lines) Patch
M ui/message_center/views/notification_view_unittest.cc View 1 2 3 3 chunks +7 lines, -2 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 2 chunks +10 lines, -2 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 3 1 chunk +24 lines, -8 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
yoshiki
Oshima-san, PTAL. Thanks.
5 years, 4 months ago (2015-08-20 07:43:42 UTC) #2
oshima
+sky can you add unit test? https://codereview.chromium.org/1297373004/diff/1/ui/views/widget/widget.h File ui/views/widget/widget.h (right): https://codereview.chromium.org/1297373004/diff/1/ui/views/widget/widget.h#newcode931 ui/views/widget/widget.h:931: bool hovered_; maybe ...
5 years, 4 months ago (2015-08-20 08:46:34 UTC) #4
yoshiki
Thank you for reviewing. Added a test. https://codereview.chromium.org/1297373004/diff/1/ui/views/widget/widget.h File ui/views/widget/widget.h (right): https://codereview.chromium.org/1297373004/diff/1/ui/views/widget/widget.h#newcode931 ui/views/widget/widget.h:931: bool hovered_; ...
5 years, 4 months ago (2015-08-20 14:59:03 UTC) #5
sky
https://codereview.chromium.org/1297373004/diff/20001/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/1297373004/diff/20001/ui/views/widget/widget.cc#newcode1242 ui/views/widget/widget.cc:1242: is_mouse_on_widget_ = false; I'm worried we won't always get ...
5 years, 4 months ago (2015-08-20 18:03:13 UTC) #6
oshima
https://codereview.chromium.org/1297373004/diff/20001/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/1297373004/diff/20001/ui/views/widget/widget.cc#newcode1242 ui/views/widget/widget.cc:1242: is_mouse_on_widget_ = false; On 2015/08/20 18:03:12, sky wrote: > ...
5 years, 4 months ago (2015-08-21 01:00:15 UTC) #7
yoshiki
On 2015/08/21 01:00:15, oshima (OOO Aug 24 thru 28) wrote: > https://codereview.chromium.org/1297373004/diff/20001/ui/views/widget/widget.cc > File ui/views/widget/widget.cc ...
5 years, 3 months ago (2015-08-27 15:19:55 UTC) #8
yoshiki
Sky, WDYT? Anyway, the cached location is not a scope of this change. Let us ...
5 years, 3 months ago (2015-08-28 00:50:15 UTC) #9
sky
For the reasons I mentioned earlier I prefer to look up the value. -Scott On ...
5 years, 3 months ago (2015-08-28 02:02:56 UTC) #10
yoshiki
On 2015/08/28 02:02:56, sky wrote: > For the reasons I mentioned earlier I prefer to ...
5 years, 3 months ago (2015-08-28 22:15:05 UTC) #15
sky
LGTM
5 years, 3 months ago (2015-08-31 15:30:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1297373004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1297373004/140001
5 years, 3 months ago (2015-08-31 19:23:03 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:140001)
5 years, 3 months ago (2015-08-31 20:03:55 UTC) #19
commit-bot: I haz the power
5 years, 3 months ago (2015-08-31 20:04:33 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8019d579217e1ae4cc0a6c57b24e6a058a94f1ae
Cr-Commit-Position: refs/heads/master@{#346447}

Powered by Google App Engine
This is Rietveld 408576698