ICoreWebView2Settings4

Trait ICoreWebView2Settings4 

Source
pub trait ICoreWebView2Settings4: ICoreWebView2Settings3 {
    // Required methods
    unsafe fn get_is_password_autosave_enabled(
        &self,
        value: *mut BOOL,
    ) -> HRESULT;
    unsafe fn put_is_password_autosave_enabled(&self, value: BOOL) -> HRESULT;
    unsafe fn get_is_general_autofill_enabled(
        &self,
        value: *mut BOOL,
    ) -> HRESULT;
    unsafe fn put_is_general_autofill_enabled(&self, value: BOOL) -> HRESULT;
}
Expand description

A continuation of the ICoreWebView2Settings interface to manage autofill.

Required Methods§

Source

unsafe fn get_is_password_autosave_enabled(&self, value: *mut BOOL) -> HRESULT

IsPasswordAutosaveEnabled controls whether autosave for password information is enabled. The IsPasswordAutosaveEnabled property behaves independently of the IsGeneralAutofillEnabled property. When IsPasswordAutosaveEnabled is false, no new password data is saved and no Save/Update Password prompts are displayed. However, if there was password data already saved before disabling this setting, then that password information is auto-populated, suggestions are shown and clicking on one will populate the fields. When IsPasswordAutosaveEnabled is true, password information is auto-populated, suggestions are shown and clicking on one will populate the fields, new data is saved, and a Save/Update Password prompt is displayed. The default value is FALSE.

\snippet SettingsComponent.cpp PasswordAutosaveEnabled

Source

unsafe fn put_is_password_autosave_enabled(&self, value: BOOL) -> HRESULT

Set the IsPasswordAutosaveEnabled property.

Source

unsafe fn get_is_general_autofill_enabled(&self, value: *mut BOOL) -> HRESULT

IsGeneralAutofillEnabled controls whether autofill for information like names, street and email addresses, phone numbers, and arbitrary input is enabled. This excludes password and credit card information. When IsGeneralAutofillEnabled is false, no suggestions appear, and no new information is saved. When IsGeneralAutofillEnabled is true, information is saved, suggestions appear and clicking on one will populate the form fields. The default value is TRUE.

\snippet SettingsComponent.cpp GeneralAutofillEnabled

Source

unsafe fn put_is_general_autofill_enabled(&self, value: BOOL) -> HRESULT

Set the IsGeneralAutofillEnabled property.

Trait Implementations§

Source§

impl ComInterface for dyn ICoreWebView2Settings4

Source§

const IID: IID = IID_ICORE_WEB_VIEW2_SETTINGS4

The associated id for this interface
Source§

type VTable = ICoreWebView2Settings4VTable

A COM compatible V-Table
Source§

type Super = dyn ICoreWebView2Settings3

The interface that this interface inherits from
Source§

fn is_iid_in_inheritance_chain(riid: &GUID) -> bool

Check whether a given IID is in the inheritance hierarchy of this interface
Source§

impl<C: ICoreWebView2Settings4> ProductionComInterface<C> for dyn ICoreWebView2Settings4

Source§

fn vtable<O: Offset>() -> Self::VTable

Get the vtable for a particular COM interface

Implementations on Foreign Types§

Source§

impl<T: ICoreWebView2Settings4 + ComInterface + ?Sized> ICoreWebView2Settings4 for ComPtr<T>

Source§

impl<T: ICoreWebView2Settings4 + ComInterface + ?Sized> ICoreWebView2Settings4 for ComRc<T>

Implementors§