SVN-Revision: r945
This commit is contained in:
tdx
2025-08-11 08:33:39 +00:00
parent 5202cb5c11
commit cf9cbd6930
+7 -50
View File
@@ -131,7 +131,7 @@ namespace Lskj.MiniBlink
Marshal.Copy(buf, managedArray, 0, len);
OnUrlEndEvent(managedArray, url, len);
}
Console.WriteLine("call OnwkeLoadUrlEndCallback url:" + url);;
Console.WriteLine("call OnwkeLoadUrlEndCallback url:" + url); ;
}
/// <summary>
/// 这个方法里可HOOK所有资源。
@@ -308,7 +308,7 @@ namespace Lskj.MiniBlink
BlinkBrowserPInvoke.wkeFinalize();
}
}
void OnTitleChangedCallback(IntPtr webView, IntPtr param, IntPtr title)
{
@@ -734,11 +734,11 @@ namespace Lskj.MiniBlink
uint flags = GetMouseFlags(e);
if (handle != IntPtr.Zero)
{
if (!(e.Button == MouseButtons.Right && SystemInfo.Instance.BrowserRight))
if (!(e.Button == MouseButtons.Right && SystemInfo.Instance.BrowserRight))
{
BlinkBrowserPInvoke.wkeFireMouseEvent(handle, msg, e.X, e.Y, flags);
}
//if (e.Button == MouseButtons.Right)
//{
// EwePInvoke.wkeFireContextMenuEvent(handle, e.X, e.Y, flags);
@@ -863,7 +863,7 @@ namespace Lskj.MiniBlink
return result;
}
/// <summary>
/// 执行js
/// </summary>
@@ -1048,7 +1048,7 @@ namespace Lskj.MiniBlink
{
var _cookie = listCookie[0];
Lable:
Lable:
if (_cookie == host)
{
sbCookie.AppendFormat("{0}={1};", listCookie[5], listCookie[6]);
@@ -1092,47 +1092,4 @@ namespace Lskj.MiniBlink
return InvokeJSW("return document.documentElement.outerHTML").ToString();
}
else
{
return string.Empty;
}
}
set
{
if (handle != IntPtr.Zero)
{
BlinkBrowserPInvoke.wkeLoadHTMLW(this.handle, value);
}
}
}
public string Url
{
get { return url; }
set
{
url = value;
if (handle != IntPtr.Zero)
{
BlinkBrowserPInvoke.wkeLoadURLW(handle, url);
}
}
}
public string Cookies
{
get
{
if (handle!=IntPtr.Zero)
{
return BlinkBrowserPInvoke.Utf8IntptrToString(BlinkBrowserPInvoke.wkeGetCookie(handle));
}
else
{
return string.Empty;
}
}
}
}
}