[webkit-dev] How to get window/view reference with NSAPI on Mac OS X 10.6 [Snow Leopard]?
Mike Pinkerton
pinkerton at chromium.org
Fri Jul 17 13:15:22 PDT 2009
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<doughill at grouplogic.com> 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" <avi at google.com> wrote:
>
> On Fri, Jul 17, 2009 at 3:35 PM, Doug Hill <doughill at grouplogic.com> 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
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
--
Mike Pinkerton
Mac Weenie
pinkerton at google.com
More information about the webkit-dev
mailing list