| 1 | use gpui_kit::Window; |
| 2 | |
| 3 | use calling::ShareKind; |
| 4 | |
| 5 | use super::{NativeHandle, ScreenRect, ShareGeometry, TrayCommand, WorkArea}; |
| 6 | use crate::notify::badge::Badge; |
| 7 | use crate::notify::ring_tone::Ringtone; |
| 8 | |
| 9 | pub fn native_handle(_window: &Window) -> Option<NativeHandle> { |
| 10 | None |
| 11 | } |
| 12 | |
| 13 | pub fn prepare_toast_window(_handle: NativeHandle) {} |
| 14 | |
| 15 | pub fn set_activatable(_handle: NativeHandle, _activatable: bool) {} |
| 16 | |
| 17 | pub fn work_area(_handle: NativeHandle) -> Option<WorkArea> { |
| 18 | None |
| 19 | } |
| 20 | |
| 21 | pub fn work_area_at(_x: i32, _y: i32) -> Option<WorkArea> { |
| 22 | None |
| 23 | } |
| 24 | |
| 25 | pub fn place(_handle: NativeHandle, _x: i32, _y: i32, _width: i32, _height: i32) {} |
| 26 | |
| 27 | pub fn exclude_from_capture(_handle: NativeHandle) {} |
| 28 | |
| 29 | #[cfg(target_os = "linux")] |
| 30 | pub fn make_window_click_through(window: &Window) { |
| 31 | super::x11_input::make_input_transparent(window); |
| 32 | } |
| 33 | |
| 34 | #[cfg(not(target_os = "linux"))] |
| 35 | pub fn make_window_click_through(_window: &Window) {} |
| 36 | |
| 37 | pub fn window_minimized(_handle: NativeHandle) -> bool { |
| 38 | false |
| 39 | } |
| 40 | |
| 41 | pub fn window_rect(_handle: NativeHandle) -> Option<ScreenRect> { |
| 42 | None |
| 43 | } |
| 44 | |
| 45 | pub fn share_geometry(_kind: ShareKind, _id: u64) -> Option<ShareGeometry> { |
| 46 | None |
| 47 | } |
| 48 | |
| 49 | pub fn system_quiet() -> bool { |
| 50 | false |
| 51 | } |
| 52 | |
| 53 | pub fn restore_and_raise(_handle: NativeHandle) {} |
| 54 | |
| 55 | pub fn hide_window(_handle: NativeHandle) {} |
| 56 | |
| 57 | pub fn flash(_handle: NativeHandle) {} |
| 58 | |
| 59 | pub fn stop_flash(_handle: NativeHandle) {} |
| 60 | |
| 61 | pub fn set_badge(_handle: NativeHandle, _badge: Option<&Badge>) {} |
| 62 | |
| 63 | pub fn play_sound() {} |
| 64 | |
| 65 | pub struct RingTone; |
| 66 | |
| 67 | pub fn start_ring(_ringtone: Ringtone) -> Option<RingTone> { |
| 68 | None |
| 69 | } |
| 70 | |
| 71 | pub fn start_ringback() -> Option<RingTone> { |
| 72 | None |
| 73 | } |
| 74 | |
| 75 | pub fn play_preview(_ringtone: Ringtone) {} |
| 76 | |
| 77 | pub struct Tray; |
| 78 | |
| 79 | impl Tray { |
| 80 | pub fn new(_sound_on: bool, _do_not_disturb: bool) -> Option<Self> { |
| 81 | None |
| 82 | } |
| 83 | |
| 84 | pub fn poll(&self) -> Vec<TrayCommand> { |
| 85 | Vec::new() |
| 86 | } |
| 87 | |
| 88 | pub fn sync(&self, _sound_on: bool, _do_not_disturb: bool, _mention: bool) {} |
| 89 | } |
| 90 | |
| 91 | pub fn animations_enabled() -> bool { |
| 92 | true |
| 93 | } |