| 1 | #![allow(dead_code)] |
| 2 | |
| 3 | use gpui_kit::*; |
| 4 | use tokio::sync::mpsc::UnboundedReceiver; |
| 5 | |
| 6 | pub enum NativeEvent { |
| 7 | Navigated(String), |
| 8 | NewWindow(String), |
| 9 | Loaded, |
| 10 | Closed, |
| 11 | } |
| 12 | |
| 13 | pub fn available() -> bool { |
| 14 | false |
| 15 | } |
| 16 | |
| 17 | #[derive(Clone)] |
| 18 | pub struct Native; |
| 19 | |
| 20 | impl Native { |
| 21 | pub fn open(_url: &str, _window: &Window) -> Option<(Native, UnboundedReceiver<NativeEvent>)> { |
| 22 | None |
| 23 | } |
| 24 | |
| 25 | pub fn place(&self, _bounds: Bounds<Pixels>, _scale: f32, _visible: bool) {} |
| 26 | |
| 27 | pub fn close(&self) {} |
| 28 | } |