| 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 | Closed, |
| 10 | } |
| 11 | |
| 12 | pub fn available() -> bool { |
| 13 | false |
| 14 | } |
| 15 | |
| 16 | #[derive(Clone)] |
| 17 | pub struct Native; |
| 18 | |
| 19 | impl Native { |
| 20 | pub fn open(_url: &str, _window: &Window) -> Option<(Native, UnboundedReceiver<NativeEvent>)> { |
| 21 | None |
| 22 | } |
| 23 | |
| 24 | pub fn place(&self, _bounds: Bounds<Pixels>, _scale: f32, _visible: bool) {} |
| 25 | |
| 26 | pub fn close(&self) {} |
| 27 | } |