Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(23)

Issue 1176423008: Forward mouse down node information to WebWidgetClient (Closed)

Created:
4 years, 10 months ago by Yufeng Shen (Slow to review)
Modified:
4 years, 10 months ago
CC:
blink-reviews, dglazkov+blink, Rick Byers
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Forward mouse down node information to WebWidgetClient There are some chrome clients, e.g. PageClickTracker, wants to listen on mouse press and gesture tap event to get the information of the last clicked node. Currently clients do an extra call of hit test on the mouse/tap event to get the click node after the event has been processed in blink. This is wasteful since the event processing part has already done the hit test and known the clicked node. So lets get rid of this extra call of hit testing. At the end of mouse press/tap event processing, we can pass the mouse down node information to WebWidgetClient through onMouseDown(const WebNode&). BUG=498150 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197400

Patch Set 1 #

Total comments: 11

Patch Set 2 : add ASSERT for event type #

Total comments: 4

Patch Set 3 : call onMouseDown for GestureTap righter after MousePress is dispatched #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -0 lines) Patch
M Source/core/input/EventHandler.cpp View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M Source/core/page/ChromeClient.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/web/ChromeClientImpl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/ChromeClientImpl.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M public/web/WebWidgetClient.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
Yufeng Shen (Slow to review)
4 years, 10 months ago (2015-06-17 19:47:48 UTC) #2
Yufeng Shen (Slow to review)
On 2015/06/17 19:47:48, Yufeng Shen wrote: chrome-side change is here https://codereview.chromium.org/1195473005/
4 years, 10 months ago (2015-06-17 19:52:31 UTC) #3
please use gerrit instead
https://codereview.chromium.org/1176423008/diff/1/Source/core/input/EventHandler.cpp File Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1176423008/diff/1/Source/core/input/EventHandler.cpp#newcode1001 Source/core/input/EventHandler.cpp:1001: if (mev.hitTestResult().innerNode() && mouseEvent.button() == LeftButton) { && mouseEvent.type() ...
4 years, 10 months ago (2015-06-17 20:07:08 UTC) #4
Yufeng Shen (Slow to review)
https://codereview.chromium.org/1176423008/diff/1/Source/core/input/EventHandler.cpp File Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1176423008/diff/1/Source/core/input/EventHandler.cpp#newcode1001 Source/core/input/EventHandler.cpp:1001: if (mev.hitTestResult().innerNode() && mouseEvent.button() == LeftButton) { On 2015/06/17 ...
4 years, 10 months ago (2015-06-17 20:12:57 UTC) #5
please use gerrit instead
https://codereview.chromium.org/1176423008/diff/1/Source/core/input/EventHandler.cpp File Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1176423008/diff/1/Source/core/input/EventHandler.cpp#newcode1001 Source/core/input/EventHandler.cpp:1001: if (mev.hitTestResult().innerNode() && mouseEvent.button() == LeftButton) { On 2015/06/17 ...
4 years, 10 months ago (2015-06-17 20:58:06 UTC) #6
Yufeng Shen (Slow to review)
https://codereview.chromium.org/1176423008/diff/1/Source/core/input/EventHandler.cpp File Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1176423008/diff/1/Source/core/input/EventHandler.cpp#newcode1001 Source/core/input/EventHandler.cpp:1001: if (mev.hitTestResult().innerNode() && mouseEvent.button() == LeftButton) { On 2015/06/17 ...
4 years, 10 months ago (2015-06-17 22:25:50 UTC) #7
please use gerrit instead
lgtm on my side, but you need reviews from esprehn and/or OWNERs.
4 years, 10 months ago (2015-06-17 22:28:00 UTC) #8
esprehn
Does PageClickTracker actually care about all elements? Can we filter this to a specific kind ...
4 years, 10 months ago (2015-06-18 04:58:54 UTC) #9
Yufeng Shen (Slow to review)
+ Chris for OWNER of public/web/* > Does PageClickTracker actually care about all elements? Can ...
4 years, 10 months ago (2015-06-18 16:12:20 UTC) #11
please use gerrit instead
On 2015/06/18 16:12:20, Yufeng Shen wrote: > + Chris for OWNER of public/web/* > > ...
4 years, 10 months ago (2015-06-18 16:13:16 UTC) #12
chrishtr
lgtm
4 years, 10 months ago (2015-06-18 16:42:23 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176423008/20001
4 years, 10 months ago (2015-06-18 16:57:57 UTC) #15
Rick Byers
Sorry for the delay, I have a couple comments. I'm leaving for my flight in ...
4 years, 10 months ago (2015-06-18 17:02:10 UTC) #18
Yufeng Shen (Slow to review)
https://codereview.chromium.org/1176423008/diff/20001/Source/core/input/EventHandler.cpp File Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1176423008/diff/20001/Source/core/input/EventHandler.cpp#newcode2085 Source/core/input/EventHandler.cpp:2085: if (currentHitTest.innerNode()) { On 2015/06/18 17:02:10, Rick Byers (Slow ...
4 years, 10 months ago (2015-06-18 18:29:04 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176423008/40001
4 years, 10 months ago (2015-06-18 18:59:19 UTC) #22
Rick Byers
Thanks, LGTM
4 years, 10 months ago (2015-06-18 21:24:28 UTC) #23
commit-bot: I haz the power
4 years, 10 months ago (2015-06-18 22:06:10 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197400

Powered by Google App Engine
This is Rietveld 408576698