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); }
public extern static mbJsValue mbRunJsSync(mbWebView webView, mbWebFrameHandle frameId, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Tnelab.MiniBlinkV.Utf8Marshaler))] utf8 script, bool isInClosure);
public extern static bool mbIsMainFrame(mbWebView webView, mbWebFrameHandle frameId);
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);