Ideally you should be able to just register JavaScript ondrop listeners. Depends on what you need to listen for.
-eric On Fri, Jul 17, 2009 at 1:15 PM, Mike Pinkerton<[email protected]> wrote: > Note that Firefox is moving towards a similar "out of process" model > for plugins and rendering > > On Fri, Jul 17, 2009 at 4:11 PM, Doug Hill<[email protected]> wrote: >> Avi, >> Thanks for the quick reply and, good point. I’m trying to register >> drag/drop handlers so my plugin can receive drops from another process, e.g. >> the Finder. Under Carbon, I get the windowRef and attach DragManager >> handlers and hey presto it works since Drag Manager tracking, etc. is global >> to the application. I’ve got it working with a WebKit plugin by calling >> registerForDraggedTypes() on the NSView I create and return to WebKit in >> response to plugInViewWithArguments. I was assuming that I could do >> something similar inside a Netscape plugin once I managed to acquire a >> suitable NSView*. And thus began my quest and reading of WebKit and Moz >> source.... >> >> I should mention that I am only targeting FF and WebKit at the moment and >> with my business requirements that’s unlikely to change anytime soon. >> >> -doug >> >> >> >> On 7/17/09 3:44 PM, "Avi Drissman" <[email protected]> wrote: >> >> On Fri, Jul 17, 2009 at 3:35 PM, Doug Hill <[email protected]> wrote: >> >> In a Netscape plugin, if NPDrawingModelQuickDraw and NPEventModelCarbon are >> not available :-) how does one get a reference to the window or NSView >> that a plugin is contained in? >> >> It is a bad assumption to make that you are in a window or NSView in the >> first place. >> >> Using Chromium as an example (a browser I work on), plugins are hosted in a >> separate process. The window in which the user sees their drawing is in an >> entirely different process and wouldn't be accessible to the plugin anyway. >> >> What are you trying to do? >> >> Avi >> >> >> _______________________________________________ >> webkit-dev mailing list >> [email protected] >> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev >> >> > > > > -- > Mike Pinkerton > Mac Weenie > [email protected] > _______________________________________________ > webkit-dev mailing list > [email protected] > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev > _______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

