| 1 | #![cfg(windows)] |
| 2 | |
| 3 | mod dialog; |
| 4 | mod fanout; |
| 5 | mod host; |
| 6 | mod host_dialog; |
| 7 | mod transport; |
| 8 | |
| 9 | pub use dialog::{DialogEvent, DialogHandle, DialogSpec}; |
| 10 | pub use host::{HostConfig, start}; |
| 11 | pub use transport::{HostState, WebViewTransport}; |
| 12 | |
| 13 | pub(crate) const FORWARDED_EVENTS: [&str; 2] = ["Runtime.bindingCalled", "Page.frameNavigated"]; |
| 14 | |
| 15 | // A hidden window counts as occluded, so Chromium would otherwise throttle the Trouter keep-alive timers. |
| 16 | pub(crate) const BROWSER_ARGUMENTS: &str = concat!( |
| 17 | "--disable-features=Translate,MediaRouter,OptimizationHints ", |
| 18 | "--disable-background-networking --disable-component-update --disable-default-apps ", |
| 19 | "--disable-breakpad --disable-client-side-phishing-detection --disable-gpu ", |
| 20 | "--disable-background-timer-throttling --disable-renderer-backgrounding --disable-backgrounding-occluded-windows", |
| 21 | ); |