by fddima » Wed Sep 11, 2013 5:16 am
Hi.
It is discussed many times. There exists two common ways:
1) By using V8 binding CEF features. It is allow expose some objects into V8 environment. I.e. provide something like JSBinding feature from CefGlue1. But, note, that V8 lives in renderer process, so in this case you will need additional IPC to main (browser) process.
2) By using XHR - IPC mechanism between JS and main process already exists: on JS side use XHR (XMLHttpRequest) to perform requests to your's code, and at the main process you can handle this requests with custom scheme handlers.
I'm always recommend second way, 'cause it is really more simpler, than first, and it is web standards based.
PS: At this moment Xilium.CefGlue did not contain any automation for any of ways described above (JSBinding feature).