From fracting at gmail.com Mon Apr 9 06:21:19 2012 From: fracting at gmail.com (Qian Hong) Date: Mon, 9 Apr 2012 14:21:19 +0800 Subject: How is the progress of nspluginwrapper win32 support? Message-ID: Hi folks, I'm a contributor of np-activeX [1], which is a bridge between ActiveX and npapi browser. np-activex works on Win32 but doesn't work on Linux, we are looking forward a bridge between Win32 npapi plugin and Linux browser [2]. Glad to see nspluginwrapper project, it nearly do what we need, appreciate for your awesome work! In the TODO list I found such lines: --- snip --- - Windows plugins support * Import minimal GLib functions (hashes, etc.) * Split toolkit specific code (npw-viewer-{x11,gtk,win}.c) * Use winelib + override win32 socket to support AF_UNIX (Linux "native") --- snip --- We have great interesting in the win32 plugin support, I wonder if there is anything I can help. Could someone tell me what is the current progress? I checked out the latest source code but couldn't find anything regarding win32 support. Sorry if I was missing something. Also, I'm wondering if it is a good idea to use gtk+ win32 api to create the plugin container window, then get the hwnd from gtk+ window with GDK_WINDOW_HWND()? Or maybe rewrite the plugin container using plain win32 api is better? Best wishes! [1] http://code.google.com/p/np-activex/ [2] https://groups.google.com/forum/?hl=zh-CN?hl%3Dzh-CN&fromgroups#!topic/non-ie-online-banking/f8R4LmoXOoU -- Regards, Qian Hong - Sent from Ubuntu http://www.ubuntu.com/ From davidben at mit.edu Fri Apr 20 01:34:21 2012 From: davidben at mit.edu (David Benjamin) Date: Thu, 19 Apr 2012 21:34:21 -0400 Subject: How is the progress of nspluginwrapper win32 support? In-Reply-To: References: Message-ID: Hi, That TODO list actually dates from the previous maintainership of the project. I don't know what progress Gwenole or others have made towards Windows support here. I don't see anything relevant in the code and haven't done anything related myself. (My own work in nspluginwrapper has been stalled since Adobe released a 64-bit Flash; I don't actually need nspluginwrapper for my daily browsing anymore.) I'm not very familiar with Win32 or how NPAPI looks there, but I wouldn't expect the Windows port of GTK to be of much use. A Windows build of GTK in Wine is unlikely to interoperate with a native GTK in any interesting way. It's possible you could make some use of nspluginwrapper here, but it's not actually going to be very useful for bridging the X11-specific NPAPI mechanisms (XEmbed for windowed plugins, a pixmap for windowless, NPP_HandleEvent, etc.) with the Win32 ones as handled by winelib. nspluginwrapper does little to no translation here since it can just assume wrapper and viewer share a connection to the same X server and pass XIDs around. If anything, I would expect nspluginwrapper to only be useful if winelib and friends do not like living in the same process as the browser. Otherwise the separate process results in a lot of complications with NPAPI's synchronous API. But, again, I am unfamiliar with Win32 and the Win32-specific NPAPI mechanisms. So take my musings with a grain of salt. Good luck. This sounds like a fun project. David On Mon, Apr 9, 2012 at 2:21 AM, Qian Hong wrote: > Hi folks, > > I'm a contributor of np-activeX [1], which is a bridge between ActiveX and > npapi browser. np-activex works on Win32 but doesn't work on Linux, we are > looking forward a bridge between Win32 npapi plugin and Linux browser [2]. > Glad to see nspluginwrapper project, it nearly do what we need, appreciate for > your awesome work! > > In the TODO list I found such lines: > --- snip --- > - Windows plugins support > ?* Import minimal GLib functions (hashes, etc.) > ?* Split toolkit specific code (npw-viewer-{x11,gtk,win}.c) > ?* Use winelib + override win32 socket to support AF_UNIX (Linux "native") > --- snip --- > > We have great interesting in the win32 plugin support, I wonder if there is > anything I can help. ?Could someone tell me what is the current progress? I > checked out the latest source code but couldn't find anything regarding win32 > support. Sorry if I was missing something. > > Also, I'm wondering if it is a good idea to use gtk+ win32 api to create the > plugin container window, then get the hwnd from gtk+ window with > GDK_WINDOW_HWND()? ?Or maybe rewrite the plugin container using plain win32 api > is better? > > Best wishes! > > [1] http://code.google.com/p/np-activex/ > [2] https://groups.google.com/forum/?hl=zh-CN?hl%3Dzh-CN&fromgroups#!topic/non-ie-online-banking/f8R4LmoXOoU > > > -- > Regards, > Qian Hong > > - > Sent from Ubuntu > http://www.ubuntu.com/ > > _______________________________________________ > Nspluginwrapper-devel-list mailing list > Nspluginwrapper-devel-list at redhat.com > https://www.redhat.com/mailman/listinfo/nspluginwrapper-devel-list