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" <a...@google.com> wrote:

On Fri, Jul 17, 2009 at 3:35 PM, Doug Hill <dough...@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@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to