Add webview.rs
This commit is contained in:
19
src/ui/webview.rs
Normal file
19
src/ui/webview.rs
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
//! WebView 管理
|
||||||
|
|
||||||
|
use anyhow::Result;
|
||||||
|
|
||||||
|
pub struct WebViewManager;
|
||||||
|
|
||||||
|
impl WebViewManager {
|
||||||
|
pub fn new() -> Self {
|
||||||
|
Self
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn load_html(&self, _html: &str) -> Result<()> {
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn send_event(&self, _event: &str) -> Result<()> {
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user