I was able to do this part from windowproxy :) Thanks Jochen.
On Thursday, April 7, 2016 at 6:27:47 AM UTC+2, Jochen Eisinger wrote: > > reaching from chromium to e.g. ic.cc is not a supported use-case, and is > in fact a pretty bad layering violation. If you still want to experiment > with this, you're on your own, sorry. > > On Tue, Apr 5, 2016 at 1:08 PM Deepak Subramanian <[email protected] > <javascript:>> wrote: > >> Hi Jochen, >> >> Thanks. My function requires the 'isolate' value as well. Is it possible >> to obtain isolate as an argument in IDL. I am a naive user to IDL (first >> time I am seeing it). >> >> MyCustomFunction is closely tied to v8. I mean it is linked to objects.cc >> and ic.cc as well. I need to printf some of the data and I am trying to >> replicate whatever I have done to chromium. When using IDL, the examples >> show function params as long int etc. I want it to be similar to d8 (i mean >> v8 handles). Thanks again. >> >> Deepak Subramanian >> >> >> On Tuesday, April 5, 2016 at 4:11:55 PM UTC+2, Jochen Eisinger wrote: >> >>> Chrome uses idl to install its C++ to js interfaces: >>> https://www.chromium.org/developers/web-idl-interfaces >>> >>> On Tue, Apr 5, 2016, 1:29 AM Deepak Subramanian <[email protected]> >>> wrote: >>> >> Hi I had defined some custom functions (JS->C++) in d8 when I was testing >>>> it out. >>>> >>>> I had added another line in Shell::CreateGlobalTemplate (d8.cc) >>>> global_template->Set(String::NewFromUtf8(isolate, "customFunction"), >>>> FunctionTemplate::New(isolate, >>>> MYCustomFunction)); >>>> >>>> Ofcouse it worked quite well. :) Now I need to take this to chrome and >>>> I want to define this customFunction as a global that can be called from >>>> console (just like eval or print or console.log). Any pointers would be >>>> greatly appreciated. >>>> >>>> Thanks a ton. >>>> >>>> Deepak Subramanian >>>> >>>> -- >>>> -- >>>> v8-users mailing list >>>> >>> [email protected] >>> >>> >>>> http://groups.google.com/group/v8-users >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "v8-users" group. >>>> >>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>> >>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >> -- >> v8-users mailing list >> [email protected] <javascript:> >> http://groups.google.com/group/v8-users >> --- >> You received this message because you are subscribed to the Google Groups >> "v8-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
