BlueGit

ict rusty-teams

Files

rusty-teams / crates / app / src / embedded_web / native_stub.rs

native_stub.rs

native_stub.rs 490 B Download Raw
1#![allow(dead_code)]
2
3use gpui_kit::*;
4use tokio::sync::mpsc::UnboundedReceiver;
5
6pub enum NativeEvent {
7 Navigated(String),
8 NewWindow(String),
9 Closed,
10}
11
12pub fn available() -> bool {
13 false
14}
15
16#[derive(Clone)]
17pub struct Native;
18
19impl 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}