Example #1
0
        private static unsafe void OnFileDialogDismissedImpl(cef_run_file_dialog_callback_t *self, int selected_accept_filter, cef_string_list_t file_paths)
        {
            var instance = GetInstance((IntPtr)self) as CefRunFileDialogCallback;

            if (instance == null || ((ICefRunFileDialogCallbackPrivate)instance).AvoidOnFileDialogDismissed())
            {
                return;
            }
            instance.OnFileDialogDismissed(selected_accept_filter != 0, CefStringList.Wrap(file_paths));
        }
Example #2
0
        private static unsafe void OnResolveCompletedImpl(cef_resolve_callback_t *self, CefErrorCode result, cef_string_list_t resolved_ips)
        {
            var instance = GetInstance((IntPtr)self) as CefResolveCallback;

            if (instance == null || ((ICefResolveCallbackPrivate)instance).AvoidOnResolveCompleted())
            {
                return;
            }
            instance.OnResolveCompleted(result, CefStringList.Wrap(resolved_ips));
        }
Example #3
0
        private static unsafe void GetCookieableSchemesImpl(cef_browser_process_handler_t *self, cef_string_list_t schemes, int *include_defaults)
        {
            var instance = GetInstance((IntPtr)self) as CefBrowserProcessHandler;

            if (instance == null || ((ICefBrowserProcessHandlerPrivate)instance).AvoidGetCookieableSchemes())
            {
                return;
            }
            instance.GetCookieableSchemes(CefStringList.Wrap(schemes), ref *include_defaults);
        }
Example #4
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));
        }