cef_setting_observer_t

Type Alias cef_setting_observer_t 

Source
pub type cef_setting_observer_t = _cef_setting_observer_t;
Expand description

Implemented by the client to observe content and website setting changes and registered via cef_request_context_t::AddSettingObserver. The functions of this structure will be called on the browser process UI thread.

NOTE: This struct is allocated client-side.

Aliased Type§

#[repr(C)]
pub struct cef_setting_observer_t { pub base: _cef_base_ref_counted_t, pub on_setting_changed: Option<unsafe extern "C" fn(*mut _cef_setting_observer_t, *const _cef_string_utf16_t, *const _cef_string_utf16_t, cef_content_setting_types_t)>, }

Fields§

§base: _cef_base_ref_counted_t

Base structure.

§on_setting_changed: Option<unsafe extern "C" fn(*mut _cef_setting_observer_t, *const _cef_string_utf16_t, *const _cef_string_utf16_t, cef_content_setting_types_t)>

Called when a content or website setting has changed. The new value can be retrieved using cef_request_context_t::GetContentSetting or cef_request_context_t::GetWebsiteSetting.