pub trait WebViewTrait {
// Required methods
fn id(&self) -> WebViewId;
fn screen_geometry(&self) -> Option<ScreenGeometry>;
fn set_animating(&self, new_value: bool);
}Expand description
A trait that exposes the embedding layer’s WebView to the Servo renderer.
This is to prevent a dependency cycle between the renderer and the embedding
layer.
Required Methods§
fn id(&self) -> WebViewId
fn screen_geometry(&self) -> Option<ScreenGeometry>
fn set_animating(&self, new_value: bool)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".