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

Issue 2621303004: Keep track of coalesced events in main thread event queue (Closed)

Created:
3 years, 11 months ago by Navid Zolghadr
Modified:
3 years, 11 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, dtapuska+blinkwatch_chromium.org, creis+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, extensions-reviews_chromium.org, mlamouri+watch-blink_chromium.org, eae+blinkwatch, nasko+codewatch_chromium.org, jam, dtapuska+chromiumwatch_chromium.org, blink-reviews, dglazkov+blink, blink-reviews-events_chromium.org, einbinder+watch-test-runner_chromium.org, dcheng, chromium-apps-reviews_chromium.org, piman+watch_chromium.org, darin-cc_chromium.org, kinuko+watch, blink-reviews-api_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Keep track of coalesced events in main thread event queue This CL keeps track of the coaleced events in the main thread event queue and passes them to Blink. So that Blink later exposes them to the js through PointerEvent.getCoalescedEvents API. BUG=680678 Review-Url: https://codereview.chromium.org/2621303004 Cr-Commit-Position: refs/heads/master@{#445528} Committed: https://chromium.googlesource.com/chromium/src/+/5d8596504544ee64049242d88b15fc3a79295519

Patch Set 1 #

Patch Set 2 : Fix test compile errors #

Patch Set 3 : Rebase #

Patch Set 4 : Fix a Mac compile error #

Patch Set 5 : Fix a typo #

Patch Set 6 : Improve MainThreadEventQueue unittests #

Total comments: 7

Patch Set 7 : Keep coalesced events in main thread event queue unittests #

Total comments: 2

Patch Set 8 : Remove redundant initializer lists #

Patch Set 9 : Rebase #

Total comments: 17

Patch Set 10 : Fix the naming #

Patch Set 11 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+371 lines, -239 lines) Patch
M components/plugins/renderer/webview_plugin.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M components/test_runner/event_sender.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -3 lines 0 comments Download
M components/test_runner/text_input_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/common/input/event_with_latency_info.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/common/input/event_with_latency_info.cc View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -4 lines 0 comments Download
M content/common/input_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -5 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 5 6 7 8 5 chunks +7 lines, -7 lines 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/idle_user_detector.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -3 lines 0 comments Download
M content/renderer/idle_user_detector.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/input/input_event_filter.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/input/input_event_filter.cc View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M content/renderer/input/input_event_filter_unittest.cc View 1 2 10 chunks +13 lines, -10 lines 0 comments Download
M content/renderer/input/main_thread_event_queue.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/input/main_thread_event_queue.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/input/main_thread_event_queue_unittest.cc View 1 2 3 4 5 6 7 8 9 15 chunks +130 lines, -47 lines 0 comments Download
M content/renderer/input/render_widget_input_handler.h View 2 chunks +5 lines, -4 lines 0 comments Download
M content/renderer/input/render_widget_input_handler.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -3 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -4 lines 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -1 line 0 comments Download
M content/renderer/render_widget_unittest.cc View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebCoalescedInputEvent.cpp View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/ExternalPopupMenu.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebPagePopupImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebPagePopupImpl.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewFrameWidget.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewFrameWidget.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ImeOnFocusTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp View 1 4 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/tests/RootScrollerTest.cpp View 1 2 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/web/tests/TouchActionTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 5 chunks +13 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 25 chunks +46 lines, -44 lines 0 comments Download
M third_party/WebKit/public/platform/WebCoalescedInputEvent.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebWidget.h View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 83 (58 generated)
Navid Zolghadr
As for the tests I'm going to send the review to wpt.
3 years, 11 months ago (2017-01-12 21:53:17 UTC) #4
dtapuska
https://codereview.chromium.org/2621303004/diff/100001/components/test_runner/event_sender.cc File components/test_runner/event_sender.cc (right): https://codereview.chromium.org/2621303004/diff/100001/components/test_runner/event_sender.cc#newcode2818 components/test_runner/event_sender.cc:2818: return widget()->handleInputEvent(blink::WebCoalescedInputEvent(*event)); Does it not make sense here to ...
3 years, 11 months ago (2017-01-13 18:56:23 UTC) #25
Navid Zolghadr
https://codereview.chromium.org/2621303004/diff/100001/components/test_runner/event_sender.cc File components/test_runner/event_sender.cc (right): https://codereview.chromium.org/2621303004/diff/100001/components/test_runner/event_sender.cc#newcode2818 components/test_runner/event_sender.cc:2818: return widget()->handleInputEvent(blink::WebCoalescedInputEvent(*event)); On 2017/01/13 18:56:23, dtapuska wrote: > Does ...
3 years, 11 months ago (2017-01-13 19:02:11 UTC) #26
dtapuska
https://codereview.chromium.org/2621303004/diff/100001/components/test_runner/event_sender.cc File components/test_runner/event_sender.cc (right): https://codereview.chromium.org/2621303004/diff/100001/components/test_runner/event_sender.cc#newcode2818 components/test_runner/event_sender.cc:2818: return widget()->handleInputEvent(blink::WebCoalescedInputEvent(*event)); On 2017/01/13 19:02:10, Navid Zolghadr wrote: > ...
3 years, 11 months ago (2017-01-13 19:10:23 UTC) #27
Navid Zolghadr
ptal. https://codereview.chromium.org/2621303004/diff/100001/content/renderer/input/main_thread_event_queue_unittest.cc File content/renderer/input/main_thread_event_queue_unittest.cc (right): https://codereview.chromium.org/2621303004/diff/100001/content/renderer/input/main_thread_event_queue_unittest.cc#newcode78 content/renderer/input/main_thread_event_queue_unittest.cc:78: std::vector<blink::WebScopedInputEvent> coalescedEvents; On 2017/01/13 19:10:23, dtapuska wrote: > ...
3 years, 11 months ago (2017-01-16 18:01:55 UTC) #33
Navid Zolghadr
ping
3 years, 11 months ago (2017-01-18 17:12:23 UTC) #36
dtapuska
On 2017/01/18 17:12:23, Navid Zolghadr wrote: > ping lgtm
3 years, 11 months ago (2017-01-18 18:25:02 UTC) #37
Navid Zolghadr
kinuko@chromium.org: Please review changes in content/* sdefresne@chromium.org: Please review changes in components/* rbyers@chromium.org: Please review ...
3 years, 11 months ago (2017-01-18 18:33:56 UTC) #39
sdefresne
bauerb: components/plugins tommyw: components/test_runner I think this needs review by OWNERs of the specifics components ...
3 years, 11 months ago (2017-01-19 12:18:50 UTC) #41
kinuko
lgtm https://codereview.chromium.org/2621303004/diff/120001/third_party/WebKit/Source/platform/exported/WebCoalescedInputEvent.cpp File third_party/WebKit/Source/platform/exported/WebCoalescedInputEvent.cpp (right): https://codereview.chromium.org/2621303004/diff/120001/third_party/WebKit/Source/platform/exported/WebCoalescedInputEvent.cpp#newcode118 third_party/WebKit/Source/platform/exported/WebCoalescedInputEvent.cpp:118: : m_event(), m_coalescedEvents() { I don't think we ...
3 years, 11 months ago (2017-01-19 13:40:18 UTC) #42
Bernhard Bauer
components/plugins/ RS LGTM.
3 years, 11 months ago (2017-01-19 17:24:19 UTC) #43
Navid Zolghadr
https://codereview.chromium.org/2621303004/diff/120001/third_party/WebKit/Source/platform/exported/WebCoalescedInputEvent.cpp File third_party/WebKit/Source/platform/exported/WebCoalescedInputEvent.cpp (right): https://codereview.chromium.org/2621303004/diff/120001/third_party/WebKit/Source/platform/exported/WebCoalescedInputEvent.cpp#newcode118 third_party/WebKit/Source/platform/exported/WebCoalescedInputEvent.cpp:118: : m_event(), m_coalescedEvents() { On 2017/01/19 13:40:18, kinuko wrote: ...
3 years, 11 months ago (2017-01-19 21:46:25 UTC) #46
Rick Byers
WebKit/public LGTM Rest of WebKit RS LGTM - dtapuska@ is an expert here, no need ...
3 years, 11 months ago (2017-01-20 17:55:10 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2621303004/140001
3 years, 11 months ago (2017-01-23 16:09:30 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/140343) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 11 months ago (2017-01-23 16:11:22 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2621303004/160001
3 years, 11 months ago (2017-01-23 17:21:12 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/347626)
3 years, 11 months ago (2017-01-23 17:29:45 UTC) #62
Navid Zolghadr
dcheng@chromium.org: Please review changes in content/common/input_messages.h
3 years, 11 months ago (2017-01-23 17:34:31 UTC) #64
dcheng
Mostly nits. https://codereview.chromium.org/2621303004/diff/160001/content/common/input/event_with_latency_info.cc File content/common/input/event_with_latency_info.cc (right): https://codereview.chromium.org/2621303004/diff/160001/content/common/input/event_with_latency_info.cc#newcode14 content/common/input/event_with_latency_info.cc:14: : event_(new blink::WebCoalescedInputEvent(std::move(event))), Not required in this ...
3 years, 11 months ago (2017-01-23 19:38:58 UTC) #65
Navid Zolghadr
https://codereview.chromium.org/2621303004/diff/160001/content/common/input/event_with_latency_info.h File content/common/input/event_with_latency_info.h (right): https://codereview.chromium.org/2621303004/diff/160001/content/common/input/event_with_latency_info.h#newcode31 content/common/input/event_with_latency_info.h:31: const blink::WebCoalescedInputEvent& coalescedEvent() const; On 2017/01/23 19:38:58, dcheng wrote: ...
3 years, 11 months ago (2017-01-23 19:44:51 UTC) #66
dcheng
https://codereview.chromium.org/2621303004/diff/160001/content/common/input/event_with_latency_info.h File content/common/input/event_with_latency_info.h (right): https://codereview.chromium.org/2621303004/diff/160001/content/common/input/event_with_latency_info.h#newcode31 content/common/input/event_with_latency_info.h:31: const blink::WebCoalescedInputEvent& coalescedEvent() const; On 2017/01/23 19:44:50, Navid Zolghadr ...
3 years, 11 months ago (2017-01-23 20:35:47 UTC) #67
Navid Zolghadr
ptal. https://codereview.chromium.org/2621303004/diff/160001/content/common/input/event_with_latency_info.cc File content/common/input/event_with_latency_info.cc (right): https://codereview.chromium.org/2621303004/diff/160001/content/common/input/event_with_latency_info.cc#newcode14 content/common/input/event_with_latency_info.cc:14: : event_(new blink::WebCoalescedInputEvent(std::move(event))), On 2017/01/23 19:38:58, dcheng wrote: ...
3 years, 11 months ago (2017-01-23 21:42:05 UTC) #75
dcheng
LGTM with a nit https://codereview.chromium.org/2621303004/diff/160001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/2621303004/diff/160001/content/renderer/render_view_impl.cc#newcode2718 content/renderer/render_view_impl.cc:2718: const std::vector<const blink::WebInputEvent*>& coalescedEvents, On ...
3 years, 11 months ago (2017-01-23 21:46:26 UTC) #76
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2621303004/200001
3 years, 11 months ago (2017-01-23 21:56:08 UTC) #80
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 23:00:17 UTC) #83
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/5d8596504544ee64049242d88b15...

Powered by Google App Engine
This is Rietveld 408576698