#[non_exhaustive]#[repr(u32)]pub enum cef_window_open_disposition_t {
WOD_UNKNOWN = 0,
WOD_CURRENT_TAB = 1,
WOD_SINGLETON_TAB = 2,
WOD_NEW_FOREGROUND_TAB = 3,
WOD_NEW_BACKGROUND_TAB = 4,
WOD_NEW_POPUP = 5,
WOD_NEW_WINDOW = 6,
WOD_SAVE_TO_DISK = 7,
WOD_OFF_THE_RECORD = 8,
WOD_IGNORE_ACTION = 9,
WOD_SWITCH_TO_TAB = 10,
WOD_NEW_PICTURE_IN_PICTURE = 11,
}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
WOD_UNKNOWN = 0
WOD_CURRENT_TAB = 1
Current tab. This is the default in most cases.
WOD_SINGLETON_TAB = 2
Indicates that only one tab with the url should exist in the same window.
WOD_NEW_FOREGROUND_TAB = 3
Shift key + Middle mouse button or meta/ctrl key while clicking.
WOD_NEW_BACKGROUND_TAB = 4
Middle mouse button or meta/ctrl key while clicking.
WOD_NEW_POPUP = 5
New popup window.
WOD_NEW_WINDOW = 6
Shift key while clicking.
WOD_SAVE_TO_DISK = 7
Alt key while clicking.
WOD_OFF_THE_RECORD = 8
New off-the-record (incognito) window.
WOD_IGNORE_ACTION = 9
Special case error condition from the renderer.
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.
WOD_NEW_PICTURE_IN_PICTURE = 11
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 ==.