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 -~----------~----~----~----~------~----~------~--~---
