コード例 #1
0
 /// <summary>
 /// Add an observer for DevTools protocol messages (function results and
 /// events). The observer will remain registered until the returned
 /// Registration object is destroyed. See the SendDevToolsMessage documentation
 /// for additional usage information.
 /// </summary>
 public unsafe virtual CefRegistration AddDevToolsMessageObserver(CefDevToolsMessageObserver observer)
 {
     return(SafeCall(CefRegistration.Wrap(CefRegistration.Create, NativeInstance->AddDevToolsMessageObserver((observer != null) ? observer.GetNativeInstance() : null))));
 }
コード例 #2
0
 public DevToolsProtocolClient(IChromiumWebViewPrivate webview)
 {
     _webview      = webview;
     _registration = ((IChromiumWebView)webview).BrowserObject.Host.AddDevToolsMessageObserver(this);
 }