public override void OnContextCreated(MyCefContextArgs args)
        {
            //sample !!!
            //call window.test001() from js
            CefV8Value      cefV8Global = args.context.GetGlobal();
            Cef3FuncHandler funcHandler = Cef3FuncHandler.CreateFuncHandler(Test001);
            Cef3Func        func        = Cef3Func.CreateFunc("test001", funcHandler);

            cefV8Global.Set("test001", func);
        }
Пример #2
0
 public void Set(string key, Cef3Func cef3Func)
 {
     Cef3Binder.MyCefJs_CefV8Value_SetValue_ByString(this.Ptr, key, cef3Func.Ptr, (int)CefV8PropertyAttribute.V8_PROPERTY_ATTRIBUTE_READONLY);
 }