private static unsafe void OnPdfPrintFinishedImpl(cef_pdf_print_callback_t *self, cef_string_t *path, int ok) { var instance = GetInstance((IntPtr)self) as CefPdfPrintCallback; if (instance == null || ((ICefPdfPrintCallbackPrivate)instance).AvoidOnPdfPrintFinished()) { return; } instance.OnPdfPrintFinished(CefString.Read(path), ok != 0); }
private static unsafe void IsUnstableImpl(cef_web_plugin_unstable_callback_t *self, cef_string_t *path, int unstable) { var instance = GetInstance((IntPtr)self) as CefWebPluginUnstableCallback; if (instance == null || ((ICefWebPluginUnstableCallbackPrivate)instance).AvoidIsUnstable()) { return; } instance.IsUnstable(CefString.Read(path), unstable != 0); }
// void (*)(_cef_end_tracing_callback_t* self, const cef_string_t* tracing_file)* private static unsafe void OnEndTracingCompleteImpl(cef_end_tracing_callback_t *self, cef_string_t *tracing_file) { var instance = GetInstance((IntPtr)self) as CefEndTracingCallback; if (instance == null || ((ICefEndTracingCallbackPrivate)instance).AvoidOnEndTracingComplete()) { return; } instance.OnEndTracingComplete(CefString.Read(tracing_file)); }
private static unsafe void VisitImpl(cef_string_visitor_t *self, cef_string_t * @string) { var instance = GetInstance((IntPtr)self) as CefStringVisitor; if (instance == null || ((ICefStringVisitorPrivate)instance).AvoidVisit()) { return; } instance.Visit(CefString.Read(@string)); }
// void (*)(_cef_register_cdm_callback_t* self, cef_cdm_registration_error_t result, const cef_string_t* error_message)* private static unsafe void OnCDMRegistrationCompleteImpl(cef_register_cdm_callback_t *self, CefCDMRegistrationError result, cef_string_t *error_message) { var instance = GetInstance((IntPtr)self) as CefRegisterCDMCallback; if (instance == null || ((ICefRegisterCDMCallbackPrivate)instance).AvoidOnCDMRegistrationComplete()) { return; } instance.OnCDMRegistrationComplete(result, CefString.Read(error_message)); }
// void (*)(_cef_app_t* self, const cef_string_t* process_type, _cef_command_line_t* command_line)* private static unsafe void OnBeforeCommandLineProcessingImpl(cef_app_t *self, cef_string_t *process_type, cef_command_line_t *command_line) { var instance = GetInstance((IntPtr)self) as CefApp; if (instance == null || ((ICefAppPrivate)instance).AvoidOnBeforeCommandLineProcessing()) { ReleaseIfNonNull((cef_base_ref_counted_t *)command_line); return; } instance.OnBeforeCommandLineProcessing(CefString.Read(process_type), CefCommandLine.Wrap(CefCommandLine.Create, command_line)); }
// void (*)(_cef_display_handler_t* self, _cef_browser_t* browser, const cef_string_t* title)* private static unsafe void OnTitleChangeImpl(cef_display_handler_t *self, cef_browser_t *browser, cef_string_t *title) { var instance = GetInstance((IntPtr)self) as CefDisplayHandler; if (instance == null || ((ICefDisplayHandlerPrivate)instance).AvoidOnTitleChange()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); return; } instance.OnTitleChange(CefBrowser.Wrap(CefBrowser.Create, browser), CefString.Read(title)); }
// void (*)(_cef_media_route_create_callback_t* self, cef_media_route_create_result_t result, const cef_string_t* error, _cef_media_route_t* route)* private static unsafe void OnMediaRouteCreateFinishedImpl(cef_media_route_create_callback_t *self, CefMediaRouteCreateResult result, cef_string_t *error, cef_media_route_t *route) { var instance = GetInstance((IntPtr)self) as CefMediaRouteCreateCallback; if (instance == null || ((ICefMediaRouteCreateCallbackPrivate)instance).AvoidOnMediaRouteCreateFinished()) { ReleaseIfNonNull((cef_base_ref_counted_t *)route); return; } instance.OnMediaRouteCreateFinished(result, CefString.Read(error), CefMediaRoute.Wrap(CefMediaRoute.Create, route)); }
private static unsafe void OnDownloadImageFinishedImpl(cef_download_image_callback_t *self, cef_string_t *image_url, int http_status_code, cef_image_t *image) { var instance = GetInstance((IntPtr)self) as CefDownloadImageCallback; if (instance == null || ((ICefDownloadImageCallbackPrivate)instance).AvoidOnDownloadImageFinished()) { ReleaseIfNonNull((cef_base_ref_counted_t *)image); return; } instance.OnDownloadImageFinished(CefString.Read(image_url), http_status_code, CefImage.Wrap(CefImage.Create, image)); }
private static unsafe void OnLoadErrorImpl(cef_load_handler_t *self, cef_browser_t *browser, cef_frame_t *frame, CefErrorCode errorCode, cef_string_t *errorText, cef_string_t *failedUrl) { var instance = GetInstance((IntPtr)self) as CefLoadHandler; if (instance == null || ((ICefLoadHandlerPrivate)instance).AvoidOnLoadError()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); ReleaseIfNonNull((cef_base_ref_counted_t *)frame); return; } instance.OnLoadError(CefBrowser.Wrap(CefBrowser.Create, browser), CefFrame.Wrap(CefFrame.Create, frame), errorCode, CefString.Read(errorText), CefString.Read(failedUrl)); }
private static unsafe void OnWebSocketRequestImpl(cef_server_handler_t *self, cef_server_t *server, int connection_id, cef_string_t *client_address, cef_request_t *request, cef_callback_t *callback) { var instance = GetInstance((IntPtr)self) as CefServerHandler; if (instance == null || ((ICefServerHandlerPrivate)instance).AvoidOnWebSocketRequest()) { ReleaseIfNonNull((cef_base_ref_counted_t *)server); ReleaseIfNonNull((cef_base_ref_counted_t *)request); ReleaseIfNonNull((cef_base_ref_counted_t *)callback); return; } instance.OnWebSocketRequest(CefServer.Wrap(CefServer.Create, server), connection_id, CefString.Read(client_address), CefRequest.Wrap(CefRequest.Create, request), CefCallback.Wrap(CefCallback.Create, callback)); }
// void (*)(_cef_download_handler_t* self, _cef_browser_t* browser, _cef_download_item_t* download_item, const cef_string_t* suggested_name, _cef_before_download_callback_t* callback)* private static unsafe void OnBeforeDownloadImpl(cef_download_handler_t *self, cef_browser_t *browser, cef_download_item_t *download_item, cef_string_t *suggested_name, cef_before_download_callback_t *callback) { var instance = GetInstance((IntPtr)self) as CefDownloadHandler; if (instance == null || ((ICefDownloadHandlerPrivate)instance).AvoidOnBeforeDownload()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); ReleaseIfNonNull((cef_base_ref_counted_t *)download_item); ReleaseIfNonNull((cef_base_ref_counted_t *)callback); return; } instance.OnBeforeDownload(CefBrowser.Wrap(CefBrowser.Create, browser), CefDownloadItem.Wrap(CefDownloadItem.Create, download_item), CefString.Read(suggested_name), CefBeforeDownloadCallback.Wrap(CefBeforeDownloadCallback.Create, callback)); }