cbf-compositor 0.1.0-alpha.9

Scene-based browser surface compositor for CBF applications.
Documentation
//! Scene-based browser surface compositor for CBF desktop applications.
//!
//! This crate separates backend ownership relationships from host composition
//! relationships. A transient browsing context remains owned by a parent page,
//! but may still be rendered in any compositor-managed window.

mod backend;
pub mod core;
mod error;
pub mod model;
pub(crate) mod platform;
pub(crate) mod state;
mod window;

use cbf::command::BrowserCommand;
#[cfg(feature = "chrome")]
use cbf_chrome::command::ChromeCommand;

pub use error::CompositorError;
pub use window::WindowHost;

/// Backend command emitted by the compositor input bridge.
#[derive(Debug, Clone)]
pub enum BackendCommand {
    /// Browser-generic command supported by every backend.
    Browser(BrowserCommand),
    /// Chrome-specific command used when compositor input must preserve
    /// Chromium-native semantics.
    #[cfg(feature = "chrome")]
    Chrome(ChromeCommand),
}