My reading of this thread is not that people can't figure out how to write bindings by hand. There is a fair number of examples available on how to do this. (Here's one of mine.)
What's being sought is a higher-level abstraction like Mozilla's XPConnect. It sounds from one of the messages below as if there may be such a thing in Chrome, but it depends on something in Chrome called WebFrame which is not easy to factor out. I suspect there is a lot of logic in both Chrome and Mozilla which would be useful to many users of both SpiderMonkey (now TraceMonkey) and V8 if only there were some kind of middleware which could get them talking. (No, I'm not going to chase this idea. I am having too much fun indulging my NIH by crafting V8 interfaces by hand. I am a little crazy.) Pete Gontier <http://pete.gontier.org/> On Oct 22, 2008, at 1:06 PM, Adam Nichols wrote: > You should be able to have a pretty direct binding once you have the > functions written for the accessors. There is an example of binding > a Point class in the embedding guide. It seems to piece things > together rather well. I'm working on actually implementing the > Point class to the shell.cc sample application. When I get it > working, I'll post my code somewhere online, and perhaps it'll even > get included as another shell example so people will have an example > to go with the embedding guide. > > --Adam > > On Wed, Oct 22, 2008 at 5:06 AM, Miguel Lordelo <[EMAIL PROTECTED] > > wrote: > Hi again, > > Well...after analysing the code (cpp_binding and cpp_bound) I found > out that it actually does not connect somehow directly with the > engine. What I understood in CppBoundClass (cpp_bound_class.cc) in > the method BindToJavascript, the object is put into the engine via > WebFrame class... > > Can somebody help me how I can bind the object directly into the > engine...without WebFrame? > > Cheers, > Miguel Lordelo. > > > On Tue, Oct 21, 2008 at 11:35 AM, Miguel Lordelo <[EMAIL PROTECTED] > > wrote: > Hi Feng, > > Thanks for your help...I will take a look at it and hope that I > could find out how to do it...probabily I will develop a "prototype" > in windows environment. > I probabily come back with some questions :P > > Cheers, > Miguel Lordelo. > > > > On Mon, Oct 20, 2008 at 6:54 PM, Feng Qian <[EMAIL PROTECTED]> wrote: > > Hi Miguel, > > chromium/src/webkit/glue has a list of files implementing cpp_binding, > you may want to take a look even you cannot build Chromium on Linux: > > cpp_binding_example.cc > cpp_binding_example.h > cpp_bound_class.cc > cpp_bound_class.h > cpp_variant.cc > cpp_variant.h > > Cheers, > Feng > > On Mon, Oct 20, 2008 at 8:13 AM, Miguel Lordelo <[EMAIL PROTECTED] > > wrote: > > Thanks for your reply Feng... > > > > To be honest with you...I have no clue how to do this... > > But first of all (about point 3) )..I tryed to download Chrome > source, but i > > could find it...and secondly, I'm in a Linux development > environment...that > > means that I must wait until Google provide the release for Linux... > > > > The only think that I know until now is how to do it with Rhino > (from > > Mozilla)...but with V8 engine...:S > > > > Have you some example or can you provide more information please... > > I really need help on this!!!! :S > > > > Cheers, > > Miguel Lordelo. > > > > On Thu, Oct 16, 2008 at 6:13 PM, Feng Qian <[EMAIL PROTECTED]> > wrote: > >> > >> Impossible is nothing! > >> > >> Ok, you can create a binding layer between Corba object and > JavaScript > >> engine, there are at least several ways to do so: > >> 1) use IDL files like DOM binding; > >> 2) use NPAPI style like plugins; > >> 3) use CppBinding available from Chrome; > >> > >> On Wed, Oct 15, 2008 at 6:26 AM, alemao <[EMAIL PROTECTED]> > wrote: > >> > > >> > Hi everybody, > >> > > >> > I have a simple (maybe impossible :S) question: Is it possible > to pass > >> > a Corba object (reference) into a scriptable object, which can > be used > >> > in the script engine? > >> > > >> > This is possible using org.mozilla.javascript package...somthing > >> > related with Rhino jscript engine. For example...you have an > object > >> > which is implemented in C++ and you want to import it into your > script > >> > engine...this is maded "parsing" your C++ instance into a Corba > object > >> > and then using some classes like Relection, Conetext and so on > and > >> > convert it into a "ScriptableObject" into my engine...is this > possible > >> > in V8 engine? > >> > > >> > How to import a C++ object instance into my V8 engine? > >> > Must I create for each C++ class, that I wanna use in my > engine, a > >> > class-template (hard coded)? > >> > Is it possible to add a C++ object instance into my running > engine, > >> > where somehow I can declair in runtime which methods or > properties to > >> > use? > >> > > >> > I know that this is really hard, but I need to if this is > >> > possible...if it is possible, I will change to V8 engine, > otherwise I > >> > must wait until something similar is implemented and afterwards > using > >> > V8!!! PLEASE....HEEEEEELLPPPPP :S > >> > > >> > Kind regards, > >> > Miguel L. > >> > > > >> > > >> > >> > > > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
