public CefDownloadHandler(CefClient ownerClient) { Client = ownerClient; cef_download_handler_t *self = FixedPtr; self->on_before_download = holder_on_before_download; self->on_download_updated = holder_on_download_updated; }
public CefLifeSpanHandler(CefClient ownerClient) { Client = ownerClient; cef_life_span_handler_t *self = FixedPtr; self->on_after_created = holder_on_after_created; self->on_before_close = holder_on_before_close; self->on_before_popup = holder_on_before_popup; }
public CefRequestHandler(CefClient ownerClient) { Client = ownerClient; cef_request_handler_t *self = FixedPtr; self->get_resource_request_handler = holder_get_resource_request_handler; self->on_certificate_error = holder_on_certificate_error; self->on_before_browse = holder_on_before_browse; self->on_open_urlfrom_tab = holder_on_open_urlfrom_tab; }
static public CefBrowser CreateBrowserSync(CefWindowInfo wininfo, CefClient client, string url, CefBrowserSettings browser_settings, CefDictionaryValue extra_info = null, CefRequestContext requestContext = null) { CefString cefurl = url ?? throw new ArgumentNullException(nameof(url)); cef_browser_t *pBrowser = ObjectInterop.cef_browser_host_create_browser_sync(wininfo, client, cefurl, browser_settings, extra_info, requestContext); if (pBrowser == null) { throw new Exception("Failed to create browser"); } return(FromInArg(pBrowser)); }
public CefClient GetClient() //TODO:NOT TESTED { var func = Marshal.GetDelegateForFunctionPointer <GetObjectHandler>(FixedPtr->get_client); return(CefClient.FromOutVal(func(Ptr))); }
public CefLoadHandler(CefClient ownerClient) { Client = ownerClient; FixedPtr->on_load_end = holder_on_load_end; }