[Webkit-unassigned] [Bug 35874] [Chromium] Adding touch event routing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 8 13:01:58 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=35874
--- Comment #2 from Darin Fisher (:fishd, Google) <fishd at chromium.org> 2010-03-08 13:01:58 PST ---
(From update of attachment 50240)
> +++ b/WebKit/chromium/src/ChromeClientImpl.h
...
> +#if ENABLE(TOUCH_EVENTS)
> + virtual void needTouchEvents(bool needTouchEvents) { }
> +#endif
^^^ is there more to be done here? should there be a FIXME comment?
> +++ b/WebKit/chromium/src/WebViewImpl.cpp
> @@ -609,6 +609,22 @@ bool WebViewImpl::charEvent(const WebKeyboardEvent& event)
> return true;
> }
>
> +#if ENABLE(TOUCH_EVENTS)
> +bool WebViewImpl::touchEvent(const WebTouchEvent& event)
> +{
> + Frame* focusedFrame = focusedWebCoreFrame();
> + if (!focusedFrame)
> + return false;
> +
> + EventHandler* eventHandler = focusedFrame->eventHandler();
> + if (!eventHandler)
> + return false;
> +
> + PlatformTouchEventBuilder touchEventBuilder(mainFrameImpl()->frameView(), event);
> + return eventHandler->handleTouchEvent(touchEventBuilder);
> +}
Are you sure that calling handleTouchEvent on the focused frame is correct?
For mouseDown, etc., we use the EventHandler of the main frame.
It looks like an EventHandler for a subframe will still perform a hit test
on the topmost frame if the subframe does not contain the point, so it may
not matter what EventHandler you use. I was just wondering why you chose
the EventHandler of the focused frame.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list