[Webkit-unassigned] [Bug 11805] Incorrect drag & drop behavior with plug-ins

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 11 14:46:25 PST 2006


http://bugs.webkit.org/show_bug.cgi?id=11805





------- Comment #2 from vlad.alexander at xstandard.com  2006-12-11 14:46 PDT -------
(In reply to comment #1)
> Could you please describe how the plugin implements drag&drop, to avoid us
> trying to second-guess?

Our plugin uses carbon event to implement it:

Following is the function the plugin called to install event handler

        m_TrackingHandler = ::NewDragTrackingHandlerUPP( MyDragTrackingHandler
);

        m_ReceiverHandler = ::NewDragReceiveHandlerUPP( MyDragReceiveHandler );


        InstallTrackingHandler( m_TrackingHandler,GraphicsPort,this );

        InstallReceiveHandler( m_ReceiverHandler,GraphicsPort,this );



In the event handler for drag and drop, function returns noErr if event is
processed.


OSErr MyDragTrackingHandler( DragTrackingMessage message,WindowRef
theWindow,void * handlerRefCon,DragRef theDrag)

{
        .......
        return noErr;
}


OSErr MyDragReceiveHandler ( WindowRef theWindow,void * handlerRefCon,DragRef
theDrag)

{
        .......
        return noErr;
}


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list