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

Issue 10802085: Correct behaviour of touch wrt mouse capture. (Closed)

Created:
8 years, 5 months ago by girard
Modified:
8 years, 5 months ago
Reviewers:
flackr, sky
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Correct behaviour of touch wrt mouse capture. We short circuit emulated mouse events (they are emulated on a touch) so that these events don't get passed to javascript. The short circuit logic also short-circuited the mouse capture/release logic, which caused failure when touch happened during a mouse-capture. This commit ensures that only the call to ForwardMouseEvent is short- circuited for emulated events. BUG=132068 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148547

Patch Set 1 #

Total comments: 2

Patch Set 2 : Factored out common code. #

Total comments: 6

Patch Set 3 : Clean-up #

Total comments: 2

Patch Set 4 : Moved IsMouseEventFromTouch from base/win to ui/base/win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -25 lines) Patch
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 3 chunks +7 lines, -15 lines 0 comments Download
M ui/base/events.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/base/win/events_win.cc View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_win.cc View 1 2 3 2 chunks +1 line, -10 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
girard
8 years, 5 months ago (2012-07-24 16:09:15 UTC) #1
sky
https://chromiumcodereview.appspot.com/10802085/diff/1/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): https://chromiumcodereview.appspot.com/10802085/diff/1/content/browser/renderer_host/render_widget_host_view_win.cc#newcode296 content/browser/renderer_host/render_widget_host_view_win.cc:296: bool IsEmulatedMouseEvent(UINT message) { Move this to ui/base/win/events_win.h/events_win.cc and ...
8 years, 5 months ago (2012-07-24 16:41:40 UTC) #2
girard
Factored common code out of RWHVW and NWW. https://chromiumcodereview.appspot.com/10802085/diff/1/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): https://chromiumcodereview.appspot.com/10802085/diff/1/content/browser/renderer_host/render_widget_host_view_win.cc#newcode296 content/browser/renderer_host/render_widget_host_view_win.cc:296: bool ...
8 years, 5 months ago (2012-07-24 19:49:01 UTC) #3
flackr
LGTM https://chromiumcodereview.appspot.com/10802085/diff/4001/ui/views/widget/native_widget_win.cc File ui/views/widget/native_widget_win.cc (right): https://chromiumcodereview.appspot.com/10802085/diff/4001/ui/views/widget/native_widget_win.cc#newcode1631 ui/views/widget/native_widget_win.cc:1631: if (!touch_ids_.empty() || base::win::IsMouseEventFromTouch(message)) { nit: no braces ...
8 years, 5 months ago (2012-07-24 19:53:04 UTC) #4
sky
https://chromiumcodereview.appspot.com/10802085/diff/4001/base/win/win_util.h File base/win/win_util.h (right): https://chromiumcodereview.appspot.com/10802085/diff/4001/base/win/win_util.h#newcode61 base/win/win_util.h:61: // Windows emulates mouse messages for touch events. Returns ...
8 years, 5 months ago (2012-07-24 21:36:25 UTC) #5
girard
Thanks for the feedback. CL updated. https://chromiumcodereview.appspot.com/10802085/diff/4001/base/win/win_util.h File base/win/win_util.h (right): https://chromiumcodereview.appspot.com/10802085/diff/4001/base/win/win_util.h#newcode61 base/win/win_util.h:61: // Windows emulates ...
8 years, 5 months ago (2012-07-24 23:54:54 UTC) #6
sky
LGTM
8 years, 5 months ago (2012-07-25 00:30:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/girard@chromium.org/10802085/10001
8 years, 5 months ago (2012-07-25 00:36:27 UTC) #8
commit-bot: I haz the power
Presubmit check for 10802085-10001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 5 months ago (2012-07-25 00:36:48 UTC) #9
sky
https://chromiumcodereview.appspot.com/10802085/diff/10001/base/win/win_util.h File base/win/win_util.h (right): https://chromiumcodereview.appspot.com/10802085/diff/10001/base/win/win_util.h#newcode8 base/win/win_util.h:8: // In general, you should not be adding stuff ...
8 years, 5 months ago (2012-07-25 00:50:11 UTC) #10
girard
https://chromiumcodereview.appspot.com/10802085/diff/10001/base/win/win_util.h File base/win/win_util.h (right): https://chromiumcodereview.appspot.com/10802085/diff/10001/base/win/win_util.h#newcode8 base/win/win_util.h:8: // In general, you should not be adding stuff ...
8 years, 5 months ago (2012-07-25 22:08:29 UTC) #11
sky
LGTM
8 years, 5 months ago (2012-07-26 00:14:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/girard@chromium.org/10802085/13002
8 years, 5 months ago (2012-07-26 12:32:57 UTC) #13
commit-bot: I haz the power
8 years, 5 months ago (2012-07-26 14:00:30 UTC) #14
Change committed as 148547

Powered by Google App Engine
This is Rietveld 408576698