Hi Amanda,

On Thu, Oct 16, 2008 at 3:53 PM, Amanda Walker <[EMAIL PROTECTED]> wrote:

>
> On Thu, Oct 16, 2008 at 3:20 PM, Marshall Greenblatt
> <[EMAIL PROTECTED]> wrote:
> > I'm exploring the best way to embed a plug-in within the browser control
> > where the plug-in is part of the container application instead of being
> > loaded from a separate DLL.  As a simple usage case, consider an
> application
> > where the user interface is hosted within an embedded browser window, and
> > the application-specific functionality is rendered using a plug-in within
> > that browser window.
> >
> > I see two possible approaches for supporting this capability:
> >
> > A) Write a custom WebPluginDelegate implementation and return an instance
> > from WebViewDelegate::CreatePluginDelegate().
> > B) Add support for embedded plug-ins to the existing NPAPI framework.
> >
> > My personal preference is B, as we could then make use of the plug-in
> > management capabilities already provided by the NPAPI framework.
>
> Hi Marshall,
>
> Can you go into some more specifics about the advantages of (b) over
> (a), as you see them?  At least at first glance, this seems like
> exactly the sort of thing that the WebPluginDelegate would be great
> for.


I originally considered approach (a) until I took a closer look at the
implementation in webplugin_delegate_impl.cc.  There's some important
functionality in webplugin_delegate_impl.cc, including support for windowed
vs. windowless plugins, that I would have to duplicate and keep an eye on in
my own implementation.  It seemed that NPAPI might be a better choice
because (1) it's a well-documented and (hopefully) stable API, (2) I
wouldn't have to duplicate existing webplugin_delegate_impl.cc capabilities,
and (3) I wouldn't have to worry about keeping up with future
webplugin_delegate_impl.cc changes.

That all being said, I'm amenable to being convinced otherwise :-).


>
>
> --Amanda


Regards,
Marshall

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-dev" group.
To post to this group, send email to chromium-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/chromium-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to