Chromium Code Reviews
DescriptionLet PageClickTracker use onMouseDown
PageClickTracker listens on mouse press and gesture tap event
to get the information of the last clicked node. Currently it
does 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. In blink at
the end of mouse press/tap event processing, the clicked node
information is passed out to chrome clients through
WebWidgetClient::onMouseDown(const WebNode&) and PageClickTracker
can just listen to that.
BUG=498150
Committed: https://crrev.com/e8d28bafe7b5aff68cbb1d6b4fa8745bc3ea430c
Cr-Commit-Position: refs/heads/master@{#335210}
Patch Set 1 #Patch Set 2 : add test for right click #Patch Set 3 : change name onCLickInput to onMouseDown #
Total comments: 2
Patch Set 4 : address comments #
Total comments: 4
Patch Set 5 : address comments #Messages
Total messages: 18 (5 generated)
|