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

Issue 1577263004: Communicate whether passive event listeners exist to cc. (Closed)

Created:
4 years, 11 months ago by dtapuska
Modified:
4 years, 10 months ago
CC:
apavlov+blink_chromium.org, blink-layers+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-dom_chromium.org, caseq+blink_chromium.org, cc-bugs_chromium.org, chromium-reviews, devtools-reviews_chromium.org, dglazkov+blink, eae+blinkwatch, kenneth.christiansen, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, rwlbuis, sergeyv+blink_chromium.org, sof, tdresser
Base URL:
https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Communicate whether passive event listeners exist to cc. cc does nothing with these new fields being set other than plumbing them through the pipeline to be later queried on the layer_impl. Add an additional field whether touch event listeners exist on the layer (which unfortunately is effectively implement as an entire document field in the blink EventListenerRegistry; this can be improved). There still exists TouchRegionRects that indicate the areas of blocking event listeners; but whether a passive event listener exists will be indicated in this field. It is intended that this model will be replicated with property trees when it is ready. BUG=489802 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/f206a40dcff89bf50517b1b4e109c25c277bad43 Cr-Commit-Position: refs/heads/master@{#373915}

Patch Set 1 #

Patch Set 2 : Fix Android/ChromeOS build problems with bit packed enum class #

Total comments: 2

Patch Set 3 : Rebase off wheel gesture changes #

Patch Set 4 : Rebase #

Total comments: 2

Patch Set 5 : Move to having fields on WebLayerTreeView #

Total comments: 2

Patch Set 6 : Rebase #

Total comments: 10

Patch Set 7 : Fix input_handler_proxy_unittest #

Patch Set 8 : Fix Rick's comments convert to a stict enum class instead of a bitset #

Patch Set 9 : Rebase #

Total comments: 5

Patch Set 10 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+398 lines, -147 lines) Patch
M cc/debug/debug_rect_history.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -1 line 0 comments Download
A cc/input/event_listener_properties.h View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
M cc/input/input_handler.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 7 1 chunk +13 lines, -7 lines 0 comments Download
M cc/proto/layer_tree_host.proto View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M cc/proto/layer_tree_settings.proto View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 7 8 5 chunks +24 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 5 6 7 3 chunks +11 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 3 chunks +10 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 4 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 2 chunks +39 lines, -6 lines 0 comments Download
M content/test/web_layer_tree_view_impl_for_testing.h View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M content/test/web_layer_tree_view_impl_for_testing.cc View 1 2 3 4 5 6 7 1 chunk +16 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/EventHandlerRegistry.h View 1 2 3 4 5 6 7 5 chunks +9 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp View 1 2 3 4 5 6 7 8 9 7 chunks +37 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLInputElement.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/page/ChromeClient.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.h View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 2 3 4 1 chunk +7 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/WebPagePopupImpl.cpp View 1 2 3 4 1 chunk +7 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/web/WebPluginContainerImpl.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/tests/ScrollingCoordinatorTest.cpp View 1 2 3 4 5 6 7 2 chunks +48 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/web/tests/data/touch-event-handler.html View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/web/tests/data/touch-event-handler-both.html View 1 chunk +12 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/touch-event-handler-passive.html View 1 chunk +2 lines, -2 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/wheel-event-handler-both.html View 1 chunk +3 lines, -1 line 0 comments Download
A + third_party/WebKit/Source/web/tests/data/wheel-event-handler-passive.html View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/public/platform/WebEventListenerProperties.h View 1 2 3 4 5 6 7 8 9 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebLayerTreeView.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M ui/events/blink/input_handler_proxy.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M ui/events/blink/input_handler_proxy_unittest.cc View 1 2 3 4 5 6 7 4 chunks +12 lines, -7 lines 0 comments Download

Messages

Total messages: 31 (11 generated)
dtapuska
4 years, 11 months ago (2016-01-12 19:28:10 UTC) #4
aelias_OOO_until_Jul13
Unless I missed something, it looks like the new touch events options field is dead ...
4 years, 11 months ago (2016-01-12 20:03:12 UTC) #5
dtapuska
Adding a dependent change is going to be a few days while I work out ...
4 years, 11 months ago (2016-01-12 21:25:49 UTC) #6
aelias_OOO_until_Jul13
Seems OK, I'm just wondering if per-layer tracking might actually be overkill micro-optimization for passive ...
4 years, 11 months ago (2016-01-26 04:08:24 UTC) #7
Rick Byers
On 2016/01/26 04:08:24, aelias wrote: > Seems OK, I'm just wondering if per-layer tracking might ...
4 years, 11 months ago (2016-01-26 15:17:07 UTC) #8
aelias_OOO_until_Jul13
https://codereview.chromium.org/1577263004/diff/60001/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp File third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp (right): https://codereview.chromium.org/1577263004/diff/60001/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp#newcode700 third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp:700: if (WebLayer* scrollLayer = toWebLayer(m_page->deprecatedLocalMainFrame()->view()->layerForScrolling())) { Hmm, on the ...
4 years, 11 months ago (2016-01-26 19:16:33 UTC) #9
dtapuska
PTAL; I've rebased this off the WebLayerTreeView changes. +tdresser; as I incorporated his request to ...
4 years, 10 months ago (2016-01-29 21:46:41 UTC) #11
tdresser
Let me know if you want a full review from me. At a high level, ...
4 years, 10 months ago (2016-02-01 14:49:13 UTC) #12
Rick Byers
I've reviewed all of WebKit so far (plane is descending so may not get to ...
4 years, 10 months ago (2016-02-02 21:44:46 UTC) #13
aelias_OOO_until_Jul13
lgtm https://codereview.chromium.org/1577263004/diff/80001/third_party/WebKit/public/platform/WebEventListenerProperties.h File third_party/WebKit/public/platform/WebEventListenerProperties.h (right): https://codereview.chromium.org/1577263004/diff/80001/third_party/WebKit/public/platform/WebEventListenerProperties.h#newcode1 third_party/WebKit/public/platform/WebEventListenerProperties.h:1: // Copyright 2015 The Chromium Authors. All rights ...
4 years, 10 months ago (2016-02-02 22:18:50 UTC) #14
dtapuska
aelias@; can you take a quick look at the diff? I changed cc's uint32_t -> ...
4 years, 10 months ago (2016-02-03 16:30:58 UTC) #15
aelias_OOO_until_Jul13
Still lgtm
4 years, 10 months ago (2016-02-03 20:01:58 UTC) #16
Rick Byers
LGTM with a couple nits https://codereview.chromium.org/1577263004/diff/160001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/1577263004/diff/160001/cc/trees/layer_tree_host_impl_unittest.cc#newcode738 cc/trees/layer_tree_host_impl_unittest.cc:738: // on impl (despite ...
4 years, 10 months ago (2016-02-04 22:18:57 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577263004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577263004/180001
4 years, 10 months ago (2016-02-04 22:53:06 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/142820)
4 years, 10 months ago (2016-02-04 23:12:50 UTC) #22
dtapuska
On 2016/02/04 23:12:50, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 10 months ago (2016-02-05 14:18:56 UTC) #24
Charlie Reis
content/ LGTM
4 years, 10 months ago (2016-02-05 17:56:54 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577263004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577263004/180001
4 years, 10 months ago (2016-02-05 18:00:15 UTC) #27
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 10 months ago (2016-02-05 21:36:11 UTC) #29
commit-bot: I haz the power
4 years, 10 months ago (2016-02-05 22:04:05 UTC) #31
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/f206a40dcff89bf50517b1b4e109c25c277bad43
Cr-Commit-Position: refs/heads/master@{#373915}

Powered by Google App Engine
This is Rietveld 408576698