fix build on linux

This commit is contained in:
amrbashir
2025-12-11 16:22:43 +02:00
parent 67fa548168
commit ad91cec0ef
2 changed files with 36 additions and 0 deletions

View File

@@ -6,6 +6,9 @@ mod macos;
#[cfg(windows)]
mod windows;
#[cfg(target_os = "linux")]
mod linux;
#[derive(Clone)]
pub enum CefWebview {
BrowserView(cef::BrowserView),

View File

@@ -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!()
}
}