The only way to extend the Chromium browser with code written in C++ would be to package this as an NPAPI plug-in. Otherwise you need to consider rewriting the code in JavaScript or perhaps expose the features through a HTTP service. You could of cause make your own custom Chromium with you additional features added and exposed to JavaScript, but I would only recommend that for experimental proposes. regards, Søren
2009/10/6 alex_sv <[email protected]> > > you will need to add all these functions and corresponding bindings to > the corresponding chromium source code and only then you'll be able to > use them. > of course only users of such a custom-compiled browser will be able to > employ functionality of your javascript. > v8 itself has no load-library-related functionality (and this would be > a serious security breach if it would provide such a functionality). > > On 6 окт, 15:42, sash <[email protected]> wrote: > > hi > > > > As part of the standalone V8 engine, I have written a bunch > > of functions in c++ which can be called from javascript and be > > executed. All this happens in terminal/console. Now I want to use > > these functions in the browser as well, i.e., I wanna write html pages > > which have javascript and they call these functions. How do I do that? > > Do I need to compile chrome all over or do I just make some sort of > > dynamically linked library? A rough outline of the steps required > > would be greatly appreciated. > > > > I'm using linux where I compiled V8 and am using it. > > > > thanks > > > > sashidhar > > > --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
