BlueGit

ict rusty-teams

Files

rusty-teams / crates / webview / src / lib.rs

lib.rs

Initial commit
metis Daniel Däschle · pushed by metis · 7 weeks ago
06e0ae51 History
lib.rs 760 B Download Raw
1#![cfg(windows)]
2
3mod fanout;
4mod host;
5mod transport;
6
7pub use host::{HostConfig, start};
8pub use transport::{HostState, WebViewTransport};
9
10pub(crate) const FORWARDED_EVENTS: [&str; 2] = ["Runtime.bindingCalled", "Page.frameNavigated"];
11
12// A hidden window counts as occluded, so Chromium would otherwise throttle the Trouter keep-alive timers.
13pub(crate) const BROWSER_ARGUMENTS: &str = concat!(
14 "--disable-features=Translate,MediaRouter,OptimizationHints ",
15 "--disable-background-networking --disable-component-update --disable-default-apps ",
16 "--disable-breakpad --disable-client-side-phishing-detection --disable-gpu ",
17 "--disable-background-timer-throttling --disable-renderer-backgrounding --disable-backgrounding-occluded-windows",
18);