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

Issue 11361150: Suppress sending mousedown / mouseup when in fling (Closed)

Created:
8 years, 1 month ago by mohsen
Modified:
8 years ago
Reviewers:
rjkroege
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Suppress sending mousedown / mouseup when in fling Tapping on the touchpad during a fling should stop the scroll, but should not generate mousedown and mouseup events. TapSuppressionController is used to suppress mousedown / mouseup events in this case. Also, added some tests for TapSuppressionController to content unit tests. BUG=152287 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171338

Patch Set 1 #

Patch Set 2 : Added unit tests #

Total comments: 22

Patch Set 3 : Corrected comments and added more tests #

Patch Set 4 : Rebased #

Patch Set 5 : Unit tests only for Aura #

Patch Set 6 : Corrected the TSC bug revealed by unit tests #

Total comments: 4

Patch Set 7 : Fixed the TSC bug revealed by unit tests by avoiding reentrance to TSC #

Total comments: 1

Patch Set 8 : Single ifdef/endif for TSC unit tests #

Patch Set 9 : Rebased and called the correct functions to create GFS's in unit tests #

Patch Set 10 : Removed checking GEF's queue back when it is empty in unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+720 lines, -28 lines) Patch
M content/browser/renderer_host/gesture_event_filter.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +46 lines, -26 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +664 lines, -0 lines 0 comments Download
M content/browser/renderer_host/tap_suppression_controller.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/tap_suppression_controller_aura.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
mohsen
Please review!
8 years, 1 month ago (2012-11-07 16:51:53 UTC) #1
rjkroege
On 2012/11/07 16:51:53, mohsen wrote: > Please review! looks reasonable. please add some tests.
8 years, 1 month ago (2012-11-07 19:04:14 UTC) #2
mohsen
On 2012/11/07 19:04:14, rjkroege wrote: > On 2012/11/07 16:51:53, mohsen wrote: > > Please review! ...
8 years, 1 month ago (2012-11-15 23:38:14 UTC) #3
rjkroege
this is looking really good. some minor changes I think and and it will be ...
8 years, 1 month ago (2012-11-16 16:33:55 UTC) #4
mohsen
I have replied to reviews and added some questions, too. Take a look please. https://codereview.chromium.org/11361150/diff/3001/content/browser/renderer_host/render_widget_host_unittest.cc ...
8 years, 1 month ago (2012-11-19 19:30:27 UTC) #5
rjkroege
https://codereview.chromium.org/11361150/diff/3001/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (right): https://codereview.chromium.org/11361150/diff/3001/content/browser/renderer_host/render_widget_host_unittest.cc#newcode78 content/browser/renderer_host/render_widget_host_unittest.cc:78: }; On 2012/11/19 19:30:27, mohsen wrote: > Since TapSuppressionController::State ...
8 years, 1 month ago (2012-11-19 22:18:01 UTC) #6
mohsen
https://codereview.chromium.org/11361150/diff/3001/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (right): https://codereview.chromium.org/11361150/diff/3001/content/browser/renderer_host/render_widget_host_unittest.cc#newcode1432 content/browser/renderer_host/render_widget_host_unittest.cc:1432: // MouseDown - Should be suppressed On 2012/11/19 22:18:01, ...
8 years, 1 month ago (2012-11-19 22:51:12 UTC) #7
rjkroege
lgtm. On 2012/11/19 22:51:12, mohsen wrote: > https://codereview.chromium.org/11361150/diff/3001/content/browser/renderer_host/render_widget_host_unittest.cc > File content/browser/renderer_host/render_widget_host_unittest.cc (right): > > https://codereview.chromium.org/11361150/diff/3001/content/browser/renderer_host/render_widget_host_unittest.cc#newcode1432 ...
8 years, 1 month ago (2012-11-19 23:33:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/11361150/10002
8 years, 1 month ago (2012-11-20 15:58:59 UTC) #9
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/render_widget_host_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 1 month ago (2012-11-20 15:59:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/11361150/6003
8 years, 1 month ago (2012-11-20 16:18:59 UTC) #11
commit-bot: I haz the power
Retried try job too often for step(s) content_unittests
8 years, 1 month ago (2012-11-20 17:29:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/11361150/5009
8 years, 1 month ago (2012-11-21 04:44:30 UTC) #13
commit-bot: I haz the power
Retried try job too often for step(s) content_unittests
8 years, 1 month ago (2012-11-21 05:44:38 UTC) #14
mohsen
https://codereview.chromium.org/11361150/diff/18006/content/browser/renderer_host/tap_suppression_controller_aura.cc File content/browser/renderer_host/tap_suppression_controller_aura.cc (left): https://codereview.chromium.org/11361150/diff/18006/content/browser/renderer_host/tap_suppression_controller_aura.cc#oldcode136 content/browser/renderer_host/tap_suppression_controller_aura.cc:136: state_ = NOTHING; If MouseDown is forwarded before setting ...
8 years, 1 month ago (2012-11-21 18:34:53 UTC) #15
rjkroege
https://codereview.chromium.org/11361150/diff/18006/content/browser/renderer_host/tap_suppression_controller_aura.cc File content/browser/renderer_host/tap_suppression_controller_aura.cc (left): https://codereview.chromium.org/11361150/diff/18006/content/browser/renderer_host/tap_suppression_controller_aura.cc#oldcode136 content/browser/renderer_host/tap_suppression_controller_aura.cc:136: state_ = NOTHING; On 2012/11/21 18:34:54, mohsen wrote: > ...
8 years, 1 month ago (2012-11-21 20:41:17 UTC) #16
mohsen
https://codereview.chromium.org/11361150/diff/18006/content/browser/renderer_host/tap_suppression_controller_aura.cc File content/browser/renderer_host/tap_suppression_controller_aura.cc (left): https://codereview.chromium.org/11361150/diff/18006/content/browser/renderer_host/tap_suppression_controller_aura.cc#oldcode136 content/browser/renderer_host/tap_suppression_controller_aura.cc:136: state_ = NOTHING; On 2012/11/21 20:41:18, rjkroege wrote: > ...
8 years, 1 month ago (2012-11-21 22:11:32 UTC) #17
rjkroege
On 2012/11/21 22:11:32, mohsen wrote: > https://codereview.chromium.org/11361150/diff/18006/content/browser/renderer_host/tap_suppression_controller_aura.cc > File content/browser/renderer_host/tap_suppression_controller_aura.cc (left): > > https://codereview.chromium.org/11361150/diff/18006/content/browser/renderer_host/tap_suppression_controller_aura.cc#oldcode136 > ...
8 years, 1 month ago (2012-11-21 22:15:23 UTC) #18
rjkroege
lgtm https://codereview.chromium.org/11361150/diff/14010/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (right): https://codereview.chromium.org/11361150/diff/14010/content/browser/renderer_host/render_widget_host_unittest.cc#newcode1588 content/browser/renderer_host/render_widget_host_unittest.cc:1588: #endif // defined(USE_AURA) nit: you could put the ...
8 years ago (2012-11-26 17:53:40 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/11361150/8005
8 years ago (2012-11-26 18:33:58 UTC) #20
commit-bot: I haz the power
Retried try job too often for step(s) browser_tests
8 years ago (2012-11-26 19:03:39 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/11361150/8005
8 years ago (2012-11-27 00:05:34 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/11361150/8005
8 years ago (2012-11-28 16:57:43 UTC) #23
commit-bot: I haz the power
Change committed as 169979
8 years ago (2012-11-28 17:26:11 UTC) #24
jam
On 2012/11/28 17:26:11, I haz the power (commit-bot) wrote: > Change committed as 169979 reverting ...
8 years ago (2012-11-28 20:41:24 UTC) #25
rjkroege
i don't understand why change 10 was needed?
8 years ago (2012-12-03 19:24:58 UTC) #26
mohsen
On 2012/12/03 19:24:58, rjkroege wrote: > i don't understand why change 10 was needed? That ...
8 years ago (2012-12-03 20:24:11 UTC) #27
rjkroege
On 2012/12/03 20:24:11, mohsen wrote: > On 2012/12/03 19:24:58, rjkroege wrote: > > i don't ...
8 years ago (2012-12-04 15:30:59 UTC) #28
mohsen
On 2012/12/04 15:30:59, rjkroege wrote: > On 2012/12/03 20:24:11, mohsen wrote: > > On 2012/12/03 ...
8 years ago (2012-12-04 15:52:35 UTC) #29
rjkroege
On 2012/12/04 15:52:35, mohsen wrote: > On 2012/12/04 15:30:59, rjkroege wrote: > > On 2012/12/03 ...
8 years ago (2012-12-04 21:02:44 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/11361150/12018
8 years ago (2012-12-05 19:39:30 UTC) #31
commit-bot: I haz the power
Presubmit check for 11361150-12018 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-05 19:39:38 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/11361150/12018
8 years ago (2012-12-05 19:46:14 UTC) #33
commit-bot: I haz the power
Presubmit check for 11361150-12018 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-05 19:46:19 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/11361150/12018
8 years ago (2012-12-05 19:50:34 UTC) #35
commit-bot: I haz the power
8 years ago (2012-12-05 22:41:07 UTC) #36
Message was sent while issue was closed.
Change committed as 171338

Powered by Google App Engine
This is Rietveld 408576698