cef_transition_type_t

Enum cef_transition_type_t 

Source
#[non_exhaustive]
#[repr(u32)]
pub enum cef_transition_type_t {
Show 24 variants TT_LINK = 0, TT_EXPLICIT = 1, TT_AUTO_BOOKMARK = 2, TT_AUTO_SUBFRAME = 3, TT_MANUAL_SUBFRAME = 4, TT_GENERATED = 5, TT_AUTO_TOPLEVEL = 6, TT_FORM_SUBMIT = 7, TT_RELOAD = 8, TT_KEYWORD = 9, TT_KEYWORD_GENERATED = 10, TT_NUM_VALUES = 11, TT_SOURCE_MASK = 255, TT_BLOCKED_FLAG = 8_388_608, TT_FORWARD_BACK_FLAG = 16_777_216, TT_DIRECT_LOAD_FLAG = 33_554_432, TT_HOME_PAGE_FLAG = 67_108_864, TT_FROM_API_FLAG = 134_217_728, TT_CHAIN_START_FLAG = 268_435_456, TT_CHAIN_END_FLAG = 536_870_912, TT_CLIENT_REDIRECT_FLAG = 1_073_741_824, TT_SERVER_REDIRECT_FLAG = 2_147_483_648, TT_IS_REDIRECT_MASK = 3_221_225_472, TT_QUALIFIER_MASK = 4_294_967_040,
}
Expand description

Transition type for a request. Made up of one source value and 0 or more qualifiers.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

Source is a link click or the JavaScript window.open function. This is also the default value for requests like sub-resource loads that are not navigations.

§

TT_EXPLICIT = 1

Source is some other “explicit” navigation. This is the default value for navigations where the actual type is unknown. See also TT_DIRECT_LOAD_FLAG.

§

TT_AUTO_BOOKMARK = 2

User got to this page through a suggestion in the UI (for example, via the destinations page). Chrome style only.

§

TT_AUTO_SUBFRAME = 3

Source is a subframe navigation. This is any content that is automatically loaded in a non-toplevel frame. For example, if a page consists of several frames containing ads, those ad URLs will have this transition type. The user may not even realize the content in these pages is a separate frame, so may not care about the URL.

§

TT_MANUAL_SUBFRAME = 4

Source is a subframe navigation explicitly requested by the user that will generate new navigation entries in the back/forward list. These are probably more important than frames that were automatically loaded in the background because the user probably cares about the fact that this link was loaded.

§

TT_GENERATED = 5

User got to this page by typing in the URL bar and selecting an entry that did not look like a URL. For example, a match might have the URL of a Google search result page, but appear like “Search Google for …”. These are not quite the same as EXPLICIT navigations because the user didn’t type or see the destination URL. Chrome style only. See also TT_KEYWORD.

§

TT_AUTO_TOPLEVEL = 6

This is a toplevel navigation. This is any content that is automatically loaded in a toplevel frame. For example, opening a tab to show the ASH screen saver, opening the devtools window, opening the NTP after the safe browsing warning, opening web-based dialog boxes are examples of AUTO_TOPLEVEL navigations. Chrome style only.

§

TT_FORM_SUBMIT = 7

Source is a form submission by the user. NOTE: In some situations submitting a form does not result in this transition type. This can happen if the form uses a script to submit the contents.

§

TT_RELOAD = 8

Source is a “reload” of the page via the Reload function or by re-visiting the same URL. NOTE: This is distinct from the concept of whether a particular load uses “reload semantics” (i.e. bypasses cached data).

§

TT_KEYWORD = 9

The url was generated from a replaceable keyword other than the default search provider. If the user types a keyword (which also applies to tab-to-search) in the omnibox this qualifier is applied to the transition type of the generated url. TemplateURLModel then may generate an additional visit with a transition type of TT_KEYWORD_GENERATED against the url ‘http://’ + keyword. For example, if you do a tab-to-search against wikipedia the generated url has a transition qualifer of TT_KEYWORD, and TemplateURLModel generates a visit for ‘wikipedia.org’ with a transition type of TT_KEYWORD_GENERATED. Chrome style only.

§

TT_KEYWORD_GENERATED = 10

Corresponds to a visit generated for a keyword. See description of TT_KEYWORD for more details. Chrome style only.

§

TT_NUM_VALUES = 11

Corresponds to a visit generated for a keyword. See description of TT_KEYWORD for more details. Chrome style only.

§

TT_SOURCE_MASK = 255

General mask defining the bits used for the source values.

§

TT_BLOCKED_FLAG = 8_388_608

Attempted to visit a URL but was blocked.

§

TT_FORWARD_BACK_FLAG = 16_777_216

Used the Forward or Back function to navigate among browsing history. Will be ORed to the transition type for the original load.

§

TT_DIRECT_LOAD_FLAG = 33_554_432

Loaded a URL directly via CreateBrowser, LoadURL or LoadRequest.

§

TT_HOME_PAGE_FLAG = 67_108_864

User is navigating to the home page. Chrome style only.

§

TT_FROM_API_FLAG = 134_217_728

The transition originated from an external application; the exact definition of this is embedder dependent. Chrome style only.

§

TT_CHAIN_START_FLAG = 268_435_456

The beginning of a navigation chain.

§

TT_CHAIN_END_FLAG = 536_870_912

The last transition in a redirect chain.

§

TT_CLIENT_REDIRECT_FLAG = 1_073_741_824

Redirects caused by JavaScript or a meta refresh tag on the page.

§

TT_SERVER_REDIRECT_FLAG = 2_147_483_648

Redirects sent from the server by HTTP headers.

§

TT_IS_REDIRECT_MASK = 3_221_225_472

Used to test whether a transition involves a redirect.

§

TT_QUALIFIER_MASK = 4_294_967_040

General mask defining the bits used for the qualifiers.

Trait Implementations§

Source§

impl Clone for cef_transition_type_t

Source§

fn clone(&self) -> cef_transition_type_t

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for cef_transition_type_t

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for cef_transition_type_t

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for cef_transition_type_t

Source§

fn eq(&self, other: &cef_transition_type_t) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for cef_transition_type_t

Source§

impl Eq for cef_transition_type_t

Source§

impl StructuralPartialEq for cef_transition_type_t

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.