Skip to main content

browser/
lib.rs

1//! A platform webview hosted in a gpui window.
2//!
3//! The page is a native view (WKWebView on macOS, WebView2 on Windows,
4//! webkit2gtk on Linux) above gpui's own surface, not pixels gpui paints.
5//! gpui paints under it, and gpui's content masks do not clip it. On the web
6//! build, [`Frame`] is an `<iframe>` above the canvas, under the same limits.
7
8#[cfg(target_family = "wasm")]
9mod frame;
10mod host;
11mod page;
12mod view;
13
14#[cfg(target_family = "wasm")]
15pub use frame::Frame;
16pub use view::{EvalError, LoadState, WebView, WebViewEvent};