mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 19:25:01 +00:00
26 lines
728 B
C#
26 lines
728 B
C#
using CefSharp.Internals.JavascriptBinding;
|
|
using System;
|
|
|
|
namespace CefSharp.BrowserSubprocess
|
|
{
|
|
internal class JavascriptProxy : IJavascriptProxy
|
|
{
|
|
public object EvaluateScript(int frameId, string script, double timeout)
|
|
{
|
|
var result = SubprocessCefApp.Instance.CefSubprocessWrapper.EvaluateScript(frameId, script, timeout);
|
|
return result;
|
|
}
|
|
|
|
public void Terminate()
|
|
{
|
|
try
|
|
{
|
|
SubprocessCefApp.Instance.TerminateJavascriptServiceHost();
|
|
}
|
|
catch
|
|
{
|
|
// Ignore any errors at this point, since we cannot do anything useful about them.
|
|
}
|
|
}
|
|
}
|
|
} |