Exemple #1
0
        public CefV8Value ExecFunction(NativeJsContext context, char[] argAsJsonChars)
        {
            unsafe
            {
                fixed(char *first = &argAsJsonChars[0])
                {
                    CefV8Value value = new CefV8Value(Cef3Binder.MyCefJs_ExecJsFunctionWithContext(this.Ptr, context.Ptr, first));

                    return(value);
                }
            }
        }
Exemple #2
0
        public CefV8Value ExecFunction(NativeJsContext context, string argAsJsonString)
        {
            unsafe
            {
                char[] chars = argAsJsonString.ToCharArray();
                fixed(char *first = &chars[0])
                {
                    CefV8Value value = new CefV8Value(Cef3Binder.MyCefJs_ExecJsFunctionWithContext(this.Ptr, context.Ptr, first));

                    return(value);
                }
            }
        }