pub(crate) struct WebViewInner {Show 21 fields
pub(crate) id: WebViewId,
pub(crate) servo: Servo,
pub(crate) delegate: Rc<dyn WebViewDelegate>,
pub(crate) clipboard_delegate: Rc<dyn ClipboardDelegate>,
pub(crate) gamepad_delegate: Rc<dyn GamepadDelegate>,
pub(crate) accesskit_tree_id: Option<TreeId>,
pub(crate) grafted_accesskit_tree_id: Option<TreeId>,
grafted_accesskit_tree_epoch: Option<Epoch>,
accessibility_viewport_changed: Cell<bool>,
rendering_context: Rc<dyn RenderingContext>,
user_content_manager: Option<Rc<UserContentManager>>,
hidpi_scale_factor: Scale<f32, DeviceIndependentPixel, DevicePixel>,
load_status: LoadStatus,
status_text: Option<String>,
page_title: Option<String>,
favicon: Option<Image>,
focused: bool,
animating: bool,
cursor: Cursor,
back_forward_list: Vec<Url>,
back_forward_list_index: usize,
}Fields§
§id: WebViewId§servo: Servo§delegate: Rc<dyn WebViewDelegate>§clipboard_delegate: Rc<dyn ClipboardDelegate>§gamepad_delegate: Rc<dyn GamepadDelegate>§accesskit_tree_id: Option<TreeId>AccessKit subtree id for this WebView, if accessibility is active.
Set by WebView::set_accessibility_active(), and forwarded to the constellation via
EmbedderToConstellationMessage::SetAccessibilityActive.
grafted_accesskit_tree_id: Option<TreeId>TreeId of the web contents of this WebView’s active top-level pipeline,
which is grafted into the tree for this WebView.
grafted_accesskit_tree_epoch: Option<Epoch>A counter for changes to the grafted accesskit tree for this webview.
See Self::grafted_accesskit_tree_id.
accessibility_viewport_changed: Cell<bool>Set when the paint layer applies a change to this WebView’s accessibility viewport
geometry — its size, page or pinch zoom, or HiDPI scale — via
WebViewTrait::notify_viewport_updated(). The root accessibility node is re-sent from
Servo’s event loop rather than from there, so that nothing calls into the
WebViewDelegate while the paint RefCell (or an embedder-facing method) is on the stack,
which could cause re-entrant RefCell borrows. See
WebView::note_accessibility_viewport_changed().
rendering_context: Rc<dyn RenderingContext>§user_content_manager: Option<Rc<UserContentManager>>§hidpi_scale_factor: Scale<f32, DeviceIndependentPixel, DevicePixel>§load_status: LoadStatus§status_text: Option<String>§page_title: Option<String>§favicon: Option<Image>§focused: bool§animating: bool§cursor: Cursor§back_forward_list: Vec<Url>The back / forward list of this WebView.
back_forward_list_index: usizeThe current index in the back / forward list.
Trait Implementations§
Source§impl Drop for WebViewInner
impl Drop for WebViewInner
Auto Trait Implementations§
impl !Freeze for WebViewInner
impl !RefUnwindSafe for WebViewInner
impl !Send for WebViewInner
impl !Sync for WebViewInner
impl Unpin for WebViewInner
impl UnsafeUnpin for WebViewInner
impl !UnwindSafe for WebViewInner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more