void OnwkeConsoleMessageCallback(IntPtr webView, IntPtr param, wkeConsoleLevel level, IntPtr message, IntPtr sourceName, int sourceLine, IntPtr stackTrace) { //Console.WriteLine("Console level" + level); Console.WriteLine("Console Msg:" + BlinkBrowserPInvoke.wkeGetString(message).Utf8IntptrToString()); //Console.WriteLine("Console sourceName:" + wkeGetString(sourceName).Utf8IntptrToString()); //Console.WriteLine("Console stackTrace:" + wkeGetString(stackTrace).Utf8IntptrToString()); //Console.WriteLine("Console sourceLine:" + sourceLine); }
private void OnConsel(IntPtr webView, IntPtr param, wkeConsoleLevel level, IntPtr messagePtr, IntPtr sourceNamePtr, uint sourceLine, IntPtr stackTracePtr) { string message = ExtApi.GetWkeString(messagePtr); string sourceName = ExtApi.GetWkeString(sourceNamePtr); string stackTrace = ExtApi.GetWkeString(stackTracePtr); if (ConselMessage != null) { ConselMessage(this, message, sourceName, (int)sourceLine, stackTrace); } }