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) above
4//! gpui's own surface, not pixels gpui paints. gpui paints under it, and gpui's content masks do not clip it. On the web
5//! build, [`Frame`] is an `<iframe>` above the canvas, under the same limits.
6
7#[cfg(target_family = "wasm")]
8mod frame;
9mod host;
10mod page;
11mod store;
12mod view;
13
14#[cfg(target_family = "wasm")]
15pub use frame::Frame;
16pub use store::{DataStore, Usage};
17pub use view::{ConsoleLevel, ConsoleMessage, EvalError, LoadState, WebView, WebViewEvent};