diff --git a/crates/tauri-runtime-cef/src/lib.rs b/crates/tauri-runtime-cef/src/lib.rs index 2efc33c6f..c2e512c4c 100644 --- a/crates/tauri-runtime-cef/src/lib.rs +++ b/crates/tauri-runtime-cef/src/lib.rs @@ -171,7 +171,6 @@ impl RuntimeHandle for CefRuntimeHandle { } #[cfg(target_os = "macos")] - #[cfg_attr(docsrs, doc(cfg(target_os = "macos")))] fn set_activation_policy( &self, activation_policy: tauri_runtime::ActivationPolicy, @@ -179,6 +178,11 @@ impl RuntimeHandle for CefRuntimeHandle { Ok(()) } + #[cfg(target_os = "macos")] + fn set_dock_visibility(&self, visible: bool) -> Result<()> { + Ok(()) + } + fn request_exit(&self, code: i32) -> Result<()> { unimplemented!() } @@ -278,6 +282,23 @@ impl RuntimeHandle for CefRuntimeHandle { todo!() } + #[cfg(any(target_os = "macos", target_os = "ios"))] + fn fetch_data_store_identifiers) + Send + 'static>( + &self, + cb: F, + ) -> Result<()> { + todo!() + } + + #[cfg(any(target_os = "macos", target_os = "ios"))] + fn remove_data_store) + Send + 'static>( + &self, + uuid: [u8; 16], + cb: F, + ) -> Result<()> { + todo!() + } + fn cursor_position(&self) -> Result> { Ok(PhysicalPosition::new(0.0, 0.0)) } @@ -466,6 +487,11 @@ impl WindowBuilder for CefWindowBuilder { self } + #[cfg(target_os = "macos")] + fn traffic_light_position>(self, position: P) -> Self { + self + } + #[cfg(target_os = "macos")] fn hidden_title(self, transparent: bool) -> Self { self @@ -895,6 +921,10 @@ impl WindowDispatch for CefWindowDispatcher { Ok(()) } + fn set_simple_fullscreen(&self, fullscreen: bool) -> Result<()> { + Ok(()) + } + fn set_focus(&self) -> Result<()> { Ok(()) } @@ -1150,15 +1180,15 @@ impl Runtime for CefRuntime { } #[cfg(target_os = "macos")] - #[cfg_attr(docsrs, doc(cfg(target_os = "macos")))] fn set_activation_policy(&mut self, activation_policy: tauri_runtime::ActivationPolicy) {} #[cfg(target_os = "macos")] - #[cfg_attr(docsrs, doc(cfg(target_os = "macos")))] + fn set_dock_visibility(&mut self, visible: bool) {} + + #[cfg(target_os = "macos")] fn show(&self) {} #[cfg(target_os = "macos")] - #[cfg_attr(docsrs, doc(cfg(target_os = "macos")))] fn hide(&self) {} fn set_device_event_filter(&mut self, filter: DeviceEventFilter) {} diff --git a/crates/tauri-runtime-wry/src/lib.rs b/crates/tauri-runtime-wry/src/lib.rs index 4b47b9d17..bdc8ea917 100644 --- a/crates/tauri-runtime-wry/src/lib.rs +++ b/crates/tauri-runtime-wry/src/lib.rs @@ -2711,11 +2711,11 @@ impl RuntimeHandle for WryHandle { dispatch(f) } - #[cfg(any(target_os = "macos", target_os = "ios"))] - fn fetch_data_store_identifiers) + Send + 'static>( - &self, - cb: F, - ) -> Result<()> { + #[cfg(any(target_os = "macos", target_os = "ios"))] + fn fetch_data_store_identifiers) + Send + 'static>( + &self, + cb: F, + ) -> Result<()> { send_user_message( &self.context, Message::Application(ApplicationMessage::FetchDataStoreIdentifiers(Box::new(cb))),