From ad91cec0ef2b9c2ebe81ef3c010eedce486c8f86 Mon Sep 17 00:00:00 2001 From: amrbashir Date: Thu, 11 Dec 2025 16:22:43 +0200 Subject: [PATCH] fix build on linux --- crates/tauri-runtime-cef/src/cef_webview.rs | 3 ++ .../src/cef_webview/linux.rs | 33 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 crates/tauri-runtime-cef/src/cef_webview/linux.rs diff --git a/crates/tauri-runtime-cef/src/cef_webview.rs b/crates/tauri-runtime-cef/src/cef_webview.rs index 7789e92eb..42721e534 100644 --- a/crates/tauri-runtime-cef/src/cef_webview.rs +++ b/crates/tauri-runtime-cef/src/cef_webview.rs @@ -6,6 +6,9 @@ mod macos; #[cfg(windows)] mod windows; +#[cfg(target_os = "linux")] +mod linux; + #[derive(Clone)] pub enum CefWebview { BrowserView(cef::BrowserView), diff --git a/crates/tauri-runtime-cef/src/cef_webview/linux.rs b/crates/tauri-runtime-cef/src/cef_webview/linux.rs new file mode 100644 index 000000000..7bbdabc1e --- /dev/null +++ b/crates/tauri-runtime-cef/src/cef_webview/linux.rs @@ -0,0 +1,33 @@ +use cef::*; + +use crate::cef_webview::CefBrowserExt; + +impl CefBrowserExt for cef::Browser { + fn bounds(&self) -> cef::Rect { + todo!() + } + + fn set_bounds(&self, rect: Option<&cef::Rect>) { + todo!() + } + + fn scale_factor(&self) -> f64 { + todo!() + } + + fn set_background_color(&self, color: cef::Color) { + // TODO: + } + + fn set_visible(&self, visible: i32) { + todo!() + } + + fn close(&self) { + todo!() + } + + fn set_parent(&self, parent: &cef::Window) { + todo!() + } +}