[webkit-dev] Mouse move/drag events to plug-ins on OS X
Tor Arne Vestbø
tavestbo at trolltech.com
Wed Jan 21 03:16:22 PST 2009
> I'm wondering how (if?) WebKit passes mouse move events down to Plug-ins.
> WebNetscapePluginEventHandlerCarbon::mouseDragged and
> WebNetscapePluginEventHandlerCarbon::mouseMoved (Carbon seems to be the
> event handler that gets used) are No-ops, and I see references to
> GetMouse/GetGlobalMouse in the Silverlight and Flash plug-ins.
> Is it really the case that WebKit/OS X browsers don't pass these events to
> plug-ins, and that the plug-ins are forced to get the mouse location from
> the OS?
As far as I know, mouse moving is handled by sending continuous
nullEvents to the plugin, through a timer running in the plugin host.
The 'where' field of the event record should have the mouse position.
PS: Nice work on Plex ;)
Tor Arne Vestbø, Software Engineer
Qt Software, Nokia, Oslo, Norway
More information about the webkit-dev