pub type cef_preference_observer_t = _cef_preference_observer_t;Expand description
Implemented by the client to observe preference changes and registered via cef_preference_manager_t::AddPreferenceObserver. 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_preference_observer_t {
pub base: _cef_base_ref_counted_t,
pub on_preference_changed: Option<unsafe extern "C" fn(*mut _cef_preference_observer_t, *const _cef_string_utf16_t)>,
}Fields§
§base: _cef_base_ref_counted_tBase structure.
on_preference_changed: Option<unsafe extern "C" fn(*mut _cef_preference_observer_t, *const _cef_string_utf16_t)>Called when a preference has changed. The new value can be retrieved using cef_preference_manager_t::GetPreference.