public override void OnWebKitInitialized(NativeCallArgs nativeCallArgs) { //sample!!! string extensionCode = "var test;" + "if (!test)" + " test = {};" + "(function() {" + " test.myfunc = function() {" + "return 2;" + //" native function myfunc();" + //" return myfunc();" + " };" + "})();"; //test regsiter extension CefBinder2.RegisterCefExtension("v8/test", extensionCode); }
public void OnWebKitInitialized(CefRenderProcessHandler.OnWebKitInitializedArgs args) { dbugRenderProcessLog.WriteLine("webkit_init" + DateTime.Now.ToString()); //sample!!! string extensionCode = "var test;" + "if (!test)" + " test = {};" + "(function() {" + " test.myfunc = function() {" + "return 2;" + //" native function myfunc();" + //" return myfunc();" + " };" + "})();"; //test regsiter extension CefBinder2.RegisterCefExtension("v8/test", extensionCode, IntPtr.Zero); dbugRenderProcessLog.WriteLine("register pass!"); }