BlueGit

ict rusty-teams

Files

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

native_stub.rs

native_stub.rs 502 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 Loaded,
10 Closed,
11}
12
13pub fn available() -> bool {
14 false
15}
16
17#[derive(Clone)]
18pub struct Native;
19
20impl 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}