update runtime impl

This commit is contained in:
Lucas Nogueira
2025-10-30 15:13:42 -03:00
parent dc922fa6c4
commit 1423ea2324
2 changed files with 39 additions and 9 deletions

View File

@@ -171,7 +171,6 @@ impl<T: UserEvent> RuntimeHandle<T> for CefRuntimeHandle<T> {
}
#[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<T: UserEvent> RuntimeHandle<T> for CefRuntimeHandle<T> {
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<T: UserEvent> RuntimeHandle<T> for CefRuntimeHandle<T> {
todo!()
}
#[cfg(any(target_os = "macos", target_os = "ios"))]
fn fetch_data_store_identifiers<F: FnOnce(Vec<[u8; 16]>) + Send + 'static>(
&self,
cb: F,
) -> Result<()> {
todo!()
}
#[cfg(any(target_os = "macos", target_os = "ios"))]
fn remove_data_store<F: FnOnce(Result<()>) + Send + 'static>(
&self,
uuid: [u8; 16],
cb: F,
) -> Result<()> {
todo!()
}
fn cursor_position(&self) -> Result<PhysicalPosition<f64>> {
Ok(PhysicalPosition::new(0.0, 0.0))
}
@@ -466,6 +487,11 @@ impl WindowBuilder for CefWindowBuilder {
self
}
#[cfg(target_os = "macos")]
fn traffic_light_position<P: Into<Position>>(self, position: P) -> Self {
self
}
#[cfg(target_os = "macos")]
fn hidden_title(self, transparent: bool) -> Self {
self
@@ -895,6 +921,10 @@ impl<T: UserEvent> WindowDispatch<T> for CefWindowDispatcher<T> {
Ok(())
}
fn set_simple_fullscreen(&self, fullscreen: bool) -> Result<()> {
Ok(())
}
fn set_focus(&self) -> Result<()> {
Ok(())
}
@@ -1150,15 +1180,15 @@ impl<T: UserEvent> Runtime<T> for CefRuntime<T> {
}
#[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) {}

View File

@@ -2711,11 +2711,11 @@ impl<T: UserEvent> RuntimeHandle<T> for WryHandle<T> {
dispatch(f)
}
#[cfg(any(target_os = "macos", target_os = "ios"))]
fn fetch_data_store_identifiers<F: FnOnce(Vec<[u8; 16]>) + Send + 'static>(
&self,
cb: F,
) -> Result<()> {
#[cfg(any(target_os = "macos", target_os = "ios"))]
fn fetch_data_store_identifiers<F: FnOnce(Vec<[u8; 16]>) + Send + 'static>(
&self,
cb: F,
) -> Result<()> {
send_user_message(
&self.context,
Message::Application(ApplicationMessage::FetchDataStoreIdentifiers(Box::new(cb))),