My JavascriptListener was exactly the same idea as their ScriptablePluginObject... I put my base class in the .h rather than .cpp and called it BaseJavascriptListener rather than ScriptablePluginObjectBase, but both amount to having a base class with static methods (so that you can have nice easy function pointers to them) which delegate to virtual methods (so that you can subclass suitably) which provide default stub implementations (like the stubs in my most recent version), which can be overriden by subclasses.
On Fri, Aug 28, 2009 at 4:41 PM, jfc<[email protected]> wrote: > > Taking your original code that used the JavascriptListenerClass, I was > trying to figure out how the ScriptablePluginObject class from the > npruntime example could be used to simplify things (or if it can > simply things). > > > > > On Aug 28, 11:18 am, Daniel Wagner-Hall <[email protected]> wrote: >> On Fri, Aug 28, 2009 at 1:41 PM, jfc<[email protected]> wrote: >> >> > I tried to compile and figure out the example here: >> >> >http://mxr.mozilla.org/seamonkey/source/modules/plugin/samples/nprunt... >> >> > I had not luck getting this to work. I appears to require the >> > following: >> >> > <embed id="embed1" type="application/mozilla-npruntime-scriptable- >> > plugin" width=600 height=40> >> > and >> > <embed type="application/x-java-mozilla-npruntime-scriptable-plugin" >> > style="display: block; width: 50%; height: 100px;"> >> >> > I don't see any code around for the second embedded object. >> > Am I missing something? >> >> I can't see any either. Either they're doing something very oddly >> specific (have you tried it in Firefox?), or they've made a mistake in >> their html page (which seems unusual, but I can believe)- Hide quoted text - >> >> - Show quoted text - > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en -~----------~----~----~----~------~----~------~--~---
