// void (*)(_cef_render_process_handler_t* self, _cef_browser_t* browser)* private static unsafe void OnBrowserDestroyedImpl(cef_render_process_handler_t *self, cef_browser_t *browser) { var instance = GetInstance((IntPtr)self) as CefRenderProcessHandler; if (instance == null || ((ICefRenderProcessHandlerPrivate)instance).AvoidOnBrowserDestroyed()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); return; } instance.OnBrowserDestroyed(CefBrowser.Wrap(CefBrowser.Create, browser)); }
private static unsafe void OnLoadingStateChangeImpl(cef_load_handler_t *self, cef_browser_t *browser, int isLoading, int canGoBack, int canGoForward) { var instance = GetInstance((IntPtr)self) as CefLoadHandler; if (instance == null || ((ICefLoadHandlerPrivate)instance).AvoidOnLoadingStateChange()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); return; } instance.OnLoadingStateChange(CefBrowser.Wrap(CefBrowser.Create, browser), isLoading != 0, canGoBack != 0, canGoForward != 0); }
private static unsafe void OnPrintStartImpl(cef_print_handler_t *self, cef_browser_t *browser) { var instance = GetInstance((IntPtr)self) as CefPrintHandler; if (instance == null || ((ICefPrintHandlerPrivate)instance).AvoidOnPrintStart()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); return; } instance.OnPrintStart(CefBrowser.Wrap(CefBrowser.Create, browser)); }
// void (*)(_cef_find_handler_t* self, _cef_browser_t* browser, int identifier, int count, const cef_rect_t* selectionRect, int activeMatchOrdinal, int finalUpdate)* private static unsafe void OnFindResultImpl(cef_find_handler_t *self, cef_browser_t *browser, int identifier, int count, cef_rect_t *selectionRect, int activeMatchOrdinal, int finalUpdate) { var instance = GetInstance((IntPtr)self) as CefFindHandler; if (instance == null || ((ICefFindHandlerPrivate)instance).AvoidOnFindResult()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); return; } instance.OnFindResult(CefBrowser.Wrap(CefBrowser.Create, browser), identifier, count, *(CefRect *)selectionRect, activeMatchOrdinal, finalUpdate != 0); }
// void (*)(_cef_display_handler_t* self, _cef_browser_t* browser, int fullscreen)* private static unsafe void OnFullscreenModeChangeImpl(cef_display_handler_t *self, cef_browser_t *browser, int fullscreen) { var instance = GetInstance((IntPtr)self) as CefDisplayHandler; if (instance == null || ((ICefDisplayHandlerPrivate)instance).AvoidOnFullscreenModeChange()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); return; } instance.OnFullscreenModeChange(CefBrowser.Wrap(CefBrowser.Create, browser), fullscreen != 0); }
// void (*)(_cef_display_handler_t* self, _cef_browser_t* browser, cef_string_list_t icon_urls)* private static unsafe void OnFaviconUrlChangeImpl(cef_display_handler_t *self, cef_browser_t *browser, cef_string_list_t icon_urls) { var instance = GetInstance((IntPtr)self) as CefDisplayHandler; if (instance == null || ((ICefDisplayHandlerPrivate)instance).AvoidOnFaviconUrlChange()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); return; } instance.OnFaviconUrlChange(CefBrowser.Wrap(CefBrowser.Create, browser), CefStringList.Wrap(icon_urls)); }
private static unsafe void OnTakeFocusImpl(cef_focus_handler_t *self, cef_browser_t *browser, int next) { var instance = GetInstance((IntPtr)self) as CefFocusHandler; if (instance == null || ((ICefFocusHandlerPrivate)instance).AvoidOnTakeFocus()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); return; } instance.OnTakeFocus(CefBrowser.Wrap(CefBrowser.Create, browser), next != 0); }
// void (*)(_cef_render_process_handler_t* self, _cef_browser_t* browser, _cef_dictionary_value_t* extra_info)* private static unsafe void OnBrowserCreatedImpl(cef_render_process_handler_t *self, cef_browser_t *browser, cef_dictionary_value_t *extra_info) { var instance = GetInstance((IntPtr)self) as CefRenderProcessHandler; if (instance == null || ((ICefRenderProcessHandlerPrivate)instance).AvoidOnBrowserCreated()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); ReleaseIfNonNull((cef_base_ref_counted_t *)extra_info); return; } instance.OnBrowserCreated(CefBrowser.Wrap(CefBrowser.Create, browser), CefDictionaryValue.Wrap(CefDictionaryValue.Create, extra_info)); }
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 OnLoadEndImpl(cef_load_handler_t *self, cef_browser_t *browser, cef_frame_t *frame, int httpStatusCode) { var instance = GetInstance((IntPtr)self) as CefLoadHandler; if (instance == null || ((ICefLoadHandlerPrivate)instance).AvoidOnLoadEnd()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); ReleaseIfNonNull((cef_base_ref_counted_t *)frame); return; } instance.OnLoadEnd(CefBrowser.Wrap(CefBrowser.Create, browser), CefFrame.Wrap(CefFrame.Create, frame), httpStatusCode); }
private static unsafe void OnLoadStartImpl(cef_load_handler_t *self, cef_browser_t *browser, cef_frame_t *frame, CefTransitionType transition_type) { var instance = GetInstance((IntPtr)self) as CefLoadHandler; if (instance == null || ((ICefLoadHandlerPrivate)instance).AvoidOnLoadStart()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); ReleaseIfNonNull((cef_base_ref_counted_t *)frame); return; } instance.OnLoadStart(CefBrowser.Wrap(CefBrowser.Create, browser), CefFrame.Wrap(CefFrame.Create, frame), transition_type); }
private static unsafe void OnPrintSettingsImpl(cef_print_handler_t *self, cef_browser_t *browser, cef_print_settings_t *settings, int get_defaults) { var instance = GetInstance((IntPtr)self) as CefPrintHandler; if (instance == null || ((ICefPrintHandlerPrivate)instance).AvoidOnPrintSettings()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); ReleaseIfNonNull((cef_base_ref_counted_t *)settings); return; } instance.OnPrintSettings(CefBrowser.Wrap(CefBrowser.Create, browser), CefPrintSettings.Wrap(CefPrintSettings.Create, settings), get_defaults != 0); }
// void (*)(_cef_display_handler_t* self, _cef_browser_t* browser, _cef_frame_t* frame, const cef_string_t* url)* private static unsafe void OnAddressChangeImpl(cef_display_handler_t *self, cef_browser_t *browser, cef_frame_t *frame, cef_string_t *url) { var instance = GetInstance((IntPtr)self) as CefDisplayHandler; if (instance == null || ((ICefDisplayHandlerPrivate)instance).AvoidOnAddressChange()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); ReleaseIfNonNull((cef_base_ref_counted_t *)frame); return; } instance.OnAddressChange(CefBrowser.Wrap(CefBrowser.Create, browser), CefFrame.Wrap(CefFrame.Create, frame), CefString.Read(url)); }
private static unsafe void OnFrameDetachedImpl(cef_frame_handler_t *self, cef_browser_t *browser, cef_frame_t *frame) { var instance = GetInstance((IntPtr)self) as CefFrameHandler; if (instance == null || ((ICefFrameHandlerPrivate)instance).AvoidOnFrameDetached()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); ReleaseIfNonNull((cef_base_ref_counted_t *)frame); return; } instance.OnFrameDetached(CefBrowser.Wrap(CefBrowser.Create, browser), CefFrame.Wrap(CefFrame.Create, frame)); }
// 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)); }
// void (*)(_cef_context_menu_handler_t* self, _cef_browser_t* browser, _cef_frame_t* frame, _cef_context_menu_params_t* params, _cef_menu_model_t* model)* private static unsafe void OnBeforeContextMenuImpl(cef_context_menu_handler_t *self, cef_browser_t *browser, cef_frame_t *frame, cef_context_menu_params_t * @params, cef_menu_model_t *model) { var instance = GetInstance((IntPtr)self) as CefContextMenuHandler; if (instance == null || ((ICefContextMenuHandlerPrivate)instance).AvoidOnBeforeContextMenu()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); ReleaseIfNonNull((cef_base_ref_counted_t *)frame); ReleaseIfNonNull((cef_base_ref_counted_t *)@params); ReleaseIfNonNull((cef_base_ref_counted_t *)model); return; } instance.OnBeforeContextMenu(CefBrowser.Wrap(CefBrowser.Create, browser), CefFrame.Wrap(CefFrame.Create, frame), CefContextMenuParams.Wrap(CefContextMenuParams.Create, @params), CefMenuModel.Wrap(CefMenuModel.Create, model)); }