コード例 #1
0
 internal static void SetHandlersToNull(this IWebBrowserInternal browser)
 {
     browser.ResourceHandlerFactory = null;
     browser.JsDialogHandler        = null;
     browser.DialogHandler          = null;
     browser.DownloadHandler        = null;
     browser.KeyboardHandler        = null;
     browser.LifeSpanHandler        = null;
     browser.MenuHandler            = null;
     browser.FocusHandler           = null;
     browser.RequestHandler         = null;
     browser.DragHandler            = null;
     browser.GeolocationHandler     = null;
 }
コード例 #2
0
 /// <summary>
 /// The set handlers to null.
 /// </summary>
 /// <param name="browser">
 /// The browser.
 /// </param>
 internal static void SetHandlersToNull(this IWebBrowserInternal browser)
 {
     browser.DialogHandler               = null;
     browser.RequestHandler              = null;
     browser.DisplayHandler              = null;
     browser.LoadHandler                 = null;
     browser.LifeSpanHandler             = null;
     browser.KeyboardHandler             = null;
     browser.JsDialogHandler             = null;
     browser.DownloadHandler             = null;
     browser.MenuHandler                 = null;
     browser.FocusHandler                = null;
     browser.ResourceHandlerFactory      = null;
     browser.RenderProcessMessageHandler = null;
 }
コード例 #3
0
 /// <summary>
 /// Create a new <see cref="IBrowserAdapter"/> instance which is the main method of interaction between the unmanaged
 /// CEF implementation and our ChromiumWebBrowser instances.
 /// </summary>
 /// <param name="webBrowserInternal">reference to the ChromiumWebBrowser instance</param>
 /// <param name="offScreenRendering">true for WPF/OffScreen, false for WinForms and other Hwnd based implementations</param>
 /// <returns>instance of <see cref="IBrowserAdapter"/></returns>
 public static IBrowserAdapter Create(IWebBrowserInternal webBrowserInternal, bool offScreenRendering)
 {
     return(new CefSharp.Core.ManagedCefBrowserAdapter(webBrowserInternal, offScreenRendering));
 }