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

Issue 22264002: Mark mouse events created for Enter/Leave notify as synthesized as they're not real mouse events. (Closed)

Created:
7 years, 4 months ago by oshima
Modified:
7 years, 4 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, tfarina, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Mark mouse events created for Enter/Leave notify as synthesized as they're not real mouse events. This is to prevent showing mouse cursor when a mouse enters into RootWindow when host window is created/deleted. Updated the test to make sure that synthesized events will not change the cursor visibility. The first CL (https://codereview.chromium.org/22051002/) didn't solve all problem because EnterNotify sends chrome MOUSE_MOVE event (which will send ui::ET_MOUSE_ENTERED/ui::ET_MOUSE_EXITED). BUG=None TEST=covered by test. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216105

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -8 lines) Patch
M ui/aura/root_window_host_x11.cc View 1 1 chunk +8 lines, -1 line 0 comments Download
M ui/views/corewm/compound_event_filter.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M ui/views/corewm/compound_event_filter_unittest.cc View 1 chunk +10 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
oshima
r215531 wasn't enough, so this is 2nd attempt to fix the issue.
7 years, 4 months ago (2013-08-05 20:34:36 UTC) #1
sadrul
This LGTM. But can you explain the CL description why the previous change didn't work?
7 years, 4 months ago (2013-08-06 17:52:23 UTC) #2
oshima
On 2013/08/06 17:52:23, sadrul wrote: > This LGTM. > > But can you explain the ...
7 years, 4 months ago (2013-08-06 18:21:34 UTC) #3
oshima
sky -> ui/aura
7 years, 4 months ago (2013-08-06 18:21:53 UTC) #4
sky
https://codereview.chromium.org/22264002/diff/3001/ui/aura/root_window_host_x11.cc File ui/aura/root_window_host_x11.cc (right): https://codereview.chromium.org/22264002/diff/3001/ui/aura/root_window_host_x11.cc#newcode465 ui/aura/root_window_host_x11.cc:465: mouse_event.set_flags(mouse_event.flags() | ui::EF_IS_SYNTHESIZED); This seems like a real event ...
7 years, 4 months ago (2013-08-06 21:11:05 UTC) #5
sadrul
https://codereview.chromium.org/22264002/diff/3001/ui/aura/root_window_host_x11.cc File ui/aura/root_window_host_x11.cc (right): https://codereview.chromium.org/22264002/diff/3001/ui/aura/root_window_host_x11.cc#newcode465 ui/aura/root_window_host_x11.cc:465: mouse_event.set_flags(mouse_event.flags() | ui::EF_IS_SYNTHESIZED); On 2013/08/06 21:11:05, sky wrote: > ...
7 years, 4 months ago (2013-08-06 21:18:51 UTC) #6
oshima
https://codereview.chromium.org/22264002/diff/3001/ui/aura/root_window_host_x11.cc File ui/aura/root_window_host_x11.cc (right): https://codereview.chromium.org/22264002/diff/3001/ui/aura/root_window_host_x11.cc#newcode465 ui/aura/root_window_host_x11.cc:465: mouse_event.set_flags(mouse_event.flags() | ui::EF_IS_SYNTHESIZED); On 2013/08/06 21:11:05, sky wrote: > ...
7 years, 4 months ago (2013-08-06 21:20:32 UTC) #7
sky
https://codereview.chromium.org/22264002/diff/3001/ui/aura/root_window_host_x11.cc File ui/aura/root_window_host_x11.cc (right): https://codereview.chromium.org/22264002/diff/3001/ui/aura/root_window_host_x11.cc#newcode465 ui/aura/root_window_host_x11.cc:465: mouse_event.set_flags(mouse_event.flags() | ui::EF_IS_SYNTHESIZED); On 2013/08/06 21:20:32, oshima wrote: > ...
7 years, 4 months ago (2013-08-06 21:37:46 UTC) #8
oshima
ah, you mean like this new patch?
7 years, 4 months ago (2013-08-06 22:07:16 UTC) #9
sky
LGTM
7 years, 4 months ago (2013-08-06 22:32:43 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/22264002/21001
7 years, 4 months ago (2013-08-06 22:37:00 UTC) #11
commit-bot: I haz the power
7 years, 4 months ago (2013-08-07 05:54:00 UTC) #12
Message was sent while issue was closed.
Change committed as 216105

Powered by Google App Engine
This is Rietveld 408576698