WebCore already tell to the ChromeClient if touch events are needed or not through ChromeClient::needTouchEvent.
This is useful for skipping the event delivery entierely for better responsivness (the event being used directly for gesture without waiting for the webprocess to send them back).
We should use that in WebKit 2 as well..
Created attachment 100113 [details]
I could have just queued a Vector<NativeWebTouchEvent>, and the first element of the vector would implicitely be the forwardedEvent.
I prefered to create a new structure instead to make the event handling more explicit. The memory space is not a big concern here given the size of the queue.
Comment on attachment 100113 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=100113&action=review
> + :forwardedEvent(event)
missing space :-)
Committed r90629: <http://trac.webkit.org/changeset/90629>