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

Issue 1888163003: Articulate the cancel behavior in the WebTouchEvent. (Closed)

Created:
4 years, 8 months ago by dtapuska
Modified:
4 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, tdresser+watch_chromium.org, jam, dtapuska+chromiumwatch_chromium.org, blink-reviews, dglazkov+blink, darin-cc_chromium.org, asvitkine+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, blink-reviews-api_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Articulate the cancel behavior in the WebTouchEvent. Change the cancelable flag to be an enumeration so that we can determine if it is blocking or non-blocking and the reason. Wheel events will add this flag in a follow up CL. BUG=601661 Committed: https://crrev.com/afb8f54b782055923cadd711452c2448f3f7b5b4 Cr-Commit-Position: refs/heads/master@{#388585}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Modify PlatformTouchEvent and address comments in patch set 1 #

Total comments: 8

Patch Set 3 : Fix issue with reporting uma metrics #

Total comments: 2

Patch Set 4 : Rename variable #

Patch Set 5 : Fix unit tests #

Total comments: 2

Patch Set 6 : Adjusted comment #

Total comments: 13

Patch Set 7 : Fix nits #

Patch Set 8 : More nits #

Patch Set 9 : Rebase and non-const ref passed back #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -103 lines) Patch
M components/test_runner/event_sender.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -10 lines 0 comments Download
M content/browser/renderer_host/input/touch_emulator_unittest.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 2 3 4 5 6 7 8 6 chunks +8 lines, -5 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue_unittest.cc View 1 2 3 4 5 6 7 8 27 chunks +41 lines, -41 lines 0 comments Download
M content/common/input/web_input_event_traits.cc View 1 2 3 4 5 6 7 8 4 chunks +35 lines, -3 lines 0 comments Download
M content/common/input/web_input_event_traits_unittest.cc View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
M content/common/input/web_touch_event_traits.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/input/input_event_filter_unittest.cc View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/input/main_thread_event_queue.cc View 1 2 3 4 5 1 chunk +18 lines, -7 lines 0 comments Download
M content/renderer/input/main_thread_event_queue_unittest.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/input/render_widget_input_handler.cc View 1 2 3 4 5 6 7 8 4 chunks +32 lines, -19 lines 0 comments Download
M content/renderer/render_widget_unittest.cc View 1 2 3 4 5 6 7 8 11 chunks +102 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/PlatformEvent.h View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/PlatformTouchEvent.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebInputEvent.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebInputEventConversion.cpp View 1 2 3 4 5 6 7 8 3 chunks +16 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/TouchActionTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp View 1 6 chunks +16 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/WebInputEvent.h View 1 2 3 4 5 6 7 8 3 chunks +21 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/blink/blink_event_util.cc View 1 1 chunk +3 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 32 (10 generated)
dtapuska
Have a look please. I'm not sold on the variable name if you have a ...
4 years, 8 months ago (2016-04-14 21:11:26 UTC) #3
tdresser
https://codereview.chromium.org/1888163003/diff/1/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/1888163003/diff/1/content/browser/renderer_host/input/input_router_impl.cc#newcode373 content/browser/renderer_host/input/input_router_impl.cc:373: // cancelable (respect ACK disposition) or not except touchmove. ...
4 years, 8 months ago (2016-04-18 15:12:03 UTC) #4
Rick Byers
https://codereview.chromium.org/1888163003/diff/1/third_party/WebKit/public/web/WebInputEvent.h File third_party/WebKit/public/web/WebInputEvent.h (right): https://codereview.chromium.org/1888163003/diff/1/third_party/WebKit/public/web/WebInputEvent.h#newcode194 third_party/WebKit/public/web/WebInputEvent.h:194: NonBlocking, On 2016/04/18 15:12:03, tdresser wrote: > The difference ...
4 years, 8 months ago (2016-04-18 16:57:59 UTC) #5
dtapuska
https://codereview.chromium.org/1888163003/diff/1/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/1888163003/diff/1/content/browser/renderer_host/input/input_router_impl.cc#newcode373 content/browser/renderer_host/input/input_router_impl.cc:373: // cancelable (respect ACK disposition) or not except touchmove. ...
4 years, 8 months ago (2016-04-18 19:19:34 UTC) #6
tdresser
LGTM https://codereview.chromium.org/1888163003/diff/1/content/renderer/input/render_widget_input_handler.cc File content/renderer/input/render_widget_input_handler.cc (right): https://codereview.chromium.org/1888163003/diff/1/content/renderer/input/render_widget_input_handler.cc#newcode332 content/renderer/input/render_widget_input_handler.cc:332: InputEventDispatchType::DISPATCH_TYPE_NON_BLOCKING_NOTIFY_MAIN || On 2016/04/18 19:19:33, dtapuska wrote: > ...
4 years, 8 months ago (2016-04-18 19:40:45 UTC) #7
dtapuska
tdresser@; please take another look. I had to make a slight modification to main_thread_event_queue that ...
4 years, 8 months ago (2016-04-18 20:09:09 UTC) #8
dtapuska
https://codereview.chromium.org/1888163003/diff/40001/content/renderer/input/main_thread_event_queue.cc File content/renderer/input/main_thread_event_queue.cc (right): https://codereview.chromium.org/1888163003/diff/40001/content/renderer/input/main_thread_event_queue.cc#newcode51 content/renderer/input/main_thread_event_queue.cc:51: PendingTouchEvent new_touch_event = err this is a poorly name ...
4 years, 8 months ago (2016-04-18 20:10:37 UTC) #9
tdresser
https://codereview.chromium.org/1888163003/diff/40001/content/renderer/input/main_thread_event_queue.cc File content/renderer/input/main_thread_event_queue.cc (right): https://codereview.chromium.org/1888163003/diff/40001/content/renderer/input/main_thread_event_queue.cc#newcode56 content/renderer/input/main_thread_event_queue.cc:56: blink::WebInputEvent::ListenersNonBlockingPassive; Hrm, this is a bit confusing, as a ...
4 years, 8 months ago (2016-04-18 20:22:40 UTC) #10
tdresser
https://codereview.chromium.org/1888163003/diff/80001/content/renderer/input/main_thread_event_queue.cc File content/renderer/input/main_thread_event_queue.cc (right): https://codereview.chromium.org/1888163003/diff/80001/content/renderer/input/main_thread_event_queue.cc#newcode56 content/renderer/input/main_thread_event_queue.cc:56: // adjusted by the compositor. Maybe "since the compositor ...
4 years, 8 months ago (2016-04-20 13:20:21 UTC) #11
dtapuska
https://codereview.chromium.org/1888163003/diff/80001/content/renderer/input/main_thread_event_queue.cc File content/renderer/input/main_thread_event_queue.cc (right): https://codereview.chromium.org/1888163003/diff/80001/content/renderer/input/main_thread_event_queue.cc#newcode56 content/renderer/input/main_thread_event_queue.cc:56: // adjusted by the compositor. On 2016/04/20 13:20:21, tdresser ...
4 years, 8 months ago (2016-04-20 13:56:35 UTC) #12
Rick Byers
third_party/WebKit LGTM with nits https://codereview.chromium.org/1888163003/diff/100001/third_party/WebKit/public/web/WebInputEvent.h File third_party/WebKit/public/web/WebInputEvent.h (right): https://codereview.chromium.org/1888163003/diff/100001/third_party/WebKit/public/web/WebInputEvent.h#newcode192 third_party/WebKit/public/web/WebInputEvent.h:192: // These values are direct ...
4 years, 8 months ago (2016-04-20 15:30:26 UTC) #14
Ilya Sherman
histograms.xml lgtm
4 years, 8 months ago (2016-04-20 15:37:21 UTC) #15
Charlie Reis
I'll defer to tdresser for the actual test review, since I'm not that familiar with ...
4 years, 8 months ago (2016-04-20 17:16:25 UTC) #16
dtapuska
https://codereview.chromium.org/1888163003/diff/100001/content/renderer/render_widget_unittest.cc File content/renderer/render_widget_unittest.cc (right): https://codereview.chromium.org/1888163003/diff/100001/content/renderer/render_widget_unittest.cc#newcode47 content/renderer/render_widget_unittest.cc:47: using testing::_; On 2016/04/20 17:16:25, Charlie Reis wrote: > ...
4 years, 8 months ago (2016-04-20 19:38:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1888163003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1888163003/140001
4 years, 8 months ago (2016-04-20 19:38:43 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/162768) ios_rel_device_gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-20 19:41:27 UTC) #22
Charlie Reis
https://codereview.chromium.org/1888163003/diff/100001/content/renderer/render_widget_unittest.cc File content/renderer/render_widget_unittest.cc (right): https://codereview.chromium.org/1888163003/diff/100001/content/renderer/render_widget_unittest.cc#newcode82 content/renderer/render_widget_unittest.cc:82: MockWebWidget& mock_webwidget() { return mock_webwidget_; } On 2016/04/20 19:38:11, ...
4 years, 8 months ago (2016-04-20 19:53:40 UTC) #23
Charlie Reis
https://codereview.chromium.org/1888163003/diff/100001/content/renderer/render_widget_unittest.cc File content/renderer/render_widget_unittest.cc (right): https://codereview.chromium.org/1888163003/diff/100001/content/renderer/render_widget_unittest.cc#newcode82 content/renderer/render_widget_unittest.cc:82: MockWebWidget& mock_webwidget() { return mock_webwidget_; } On 2016/04/20 19:53:40, ...
4 years, 8 months ago (2016-04-20 19:56:13 UTC) #24
dtapuska
https://codereview.chromium.org/1888163003/diff/100001/content/renderer/render_widget_unittest.cc File content/renderer/render_widget_unittest.cc (right): https://codereview.chromium.org/1888163003/diff/100001/content/renderer/render_widget_unittest.cc#newcode82 content/renderer/render_widget_unittest.cc:82: MockWebWidget& mock_webwidget() { return mock_webwidget_; } On 2016/04/20 19:56:13, ...
4 years, 8 months ago (2016-04-20 20:09:48 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1888163003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1888163003/160001
4 years, 8 months ago (2016-04-20 20:10:27 UTC) #28
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-04-20 21:38:31 UTC) #30
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:26:48 UTC) #32
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/afb8f54b782055923cadd711452c2448f3f7b5b4
Cr-Commit-Position: refs/heads/master@{#388585}

Powered by Google App Engine
This is Rietveld 408576698