public static Task <RetValue> RunJs(this IMiniblinkProxy miniblinkProxy, mbWebFrameHandle mbWebFrameHandle, string js, bool isInClosure)
        {
            IntPtr token      = CreateToken();
            var    taskSource = new TaskCompletionSource <RetValue>();

            s_runJsCallbackDict.TryAdd(token, taskSource);
            miniblinkProxy.WebView.RunJs(mbWebFrameHandle, js, isInClosure, s_mbRunJsCallback, token);
            return(taskSource.Task);
        }
Esempio n. 2
0
 public extern static mbJsValue mbRunJsSync(mbWebView webView, mbWebFrameHandle frameId, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Tnelab.MiniBlinkV.Utf8Marshaler))] utf8 script, bool isInClosure);
Esempio n. 3
0
 public extern static bool mbIsMainFrame(mbWebView webView, mbWebFrameHandle frameId);
Esempio n. 4
0
 public extern static void mbRunJs(mbWebView webView, mbWebFrameHandle frameId, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Tnelab.MiniBlinkV.Utf8Marshaler))] utf8 script, bool isInClosure, mbRunJsCallback callback, IntPtr param, IntPtr unuse);