#[non_exhaustive]#[repr(u32)]pub enum cef_window_open_disposition_t {
Show 13 variants
CEF_WOD_UNKNOWN = 0,
CEF_WOD_CURRENT_TAB = 1,
CEF_WOD_SINGLETON_TAB = 2,
CEF_WOD_NEW_FOREGROUND_TAB = 3,
CEF_WOD_NEW_BACKGROUND_TAB = 4,
CEF_WOD_NEW_POPUP = 5,
CEF_WOD_NEW_WINDOW = 6,
CEF_WOD_SAVE_TO_DISK = 7,
CEF_WOD_OFF_THE_RECORD = 8,
CEF_WOD_IGNORE_ACTION = 9,
CEF_WOD_SWITCH_TO_TAB = 10,
CEF_WOD_NEW_PICTURE_IN_PICTURE = 11,
CEF_WOD_NUM_VALUES = 12,
}Expand description
The manner in which a link click should be opened. These constants match their equivalents in Chromium’s window_open_disposition.h and should not be renumbered.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CEF_WOD_UNKNOWN = 0
CEF_WOD_CURRENT_TAB = 1
Current tab. This is the default in most cases.
CEF_WOD_SINGLETON_TAB = 2
Indicates that only one tab with the url should exist in the same window.
CEF_WOD_NEW_FOREGROUND_TAB = 3
Shift key + Middle mouse button or meta/ctrl key while clicking.
CEF_WOD_NEW_BACKGROUND_TAB = 4
Middle mouse button or meta/ctrl key while clicking.
CEF_WOD_NEW_POPUP = 5
New popup window.
CEF_WOD_NEW_WINDOW = 6
Shift key while clicking.
CEF_WOD_SAVE_TO_DISK = 7
Alt key while clicking.
CEF_WOD_OFF_THE_RECORD = 8
New off-the-record (incognito) window.
CEF_WOD_IGNORE_ACTION = 9
Special case error condition from the renderer.
CEF_WOD_SWITCH_TO_TAB = 10
Activates an existing tab containing the url, rather than navigating. This is similar to SINGLETON_TAB, but searches across all windows from the current profile and anonymity (instead of just the current one); closes the current tab on switching if the current tab was the NTP with no session history; and behaves like CURRENT_TAB instead of NEW_FOREGROUND_TAB when no existing tab is found.
CEF_WOD_NEW_PICTURE_IN_PICTURE = 11
Creates a new document picture-in-picture window showing a child WebView.
CEF_WOD_NUM_VALUES = 12
Creates a new document picture-in-picture window showing a child WebView.
Trait Implementations§
Source§impl Clone for cef_window_open_disposition_t
impl Clone for cef_window_open_disposition_t
Source§fn clone(&self) -> cef_window_open_disposition_t
fn clone(&self) -> cef_window_open_disposition_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Hash for cef_window_open_disposition_t
impl Hash for cef_window_open_disposition_t
Source§impl PartialEq for cef_window_open_disposition_t
impl PartialEq for cef_window_open_disposition_t
Source§fn eq(&self, other: &cef_window_open_disposition_t) -> bool
fn eq(&self, other: &cef_window_open_disposition_t) -> bool
self and other values to be equal, and is used by ==.