Skip to main content

cbf_compositor/model/
target.rs

1use cbf::data::ids::{BrowsingContextId, TransientBrowsingContextId};
2
3/// Browser-managed surface target that can appear in the compositor scene.
4#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
5pub enum SurfaceTarget {
6    /// A regular browsing context surface.
7    BrowsingContext(BrowsingContextId),
8    /// A transient browsing context surface such as an extension popup.
9    TransientBrowsingContext(TransientBrowsingContextId),
10}