Struct
ContextMenuTarget
pub struct ContextMenuTarget { /* private fields */ }What a right-click was on.
Methods
#pub fn origin(&self) -> &Origin
Returns the origin of the document right-clicked (the page’s or a frame’s inside it). A sandboxed document’s origin is opaque here whatever its URL.
#pub fn page_url(&self) -> &str
The URL of the page the browser shows.
#pub fn frame_url(&self) -> &str
The URL of the document right-clicked, the page’s or a frame’s.
#pub fn media(&self) -> Option<MediaKind>
Returns the kind of media right-clicked (for example an image or a video).
#pub fn is_editable(&self) -> bool
Whether the right-click was in a text field or other editable content.
#pub fn position(&self) -> (i32, i32)
Where the right-click was, in the browser’s view.
Trait implementations
impl Clone for ContextMenuTargetimpl Debug for ContextMenuTarget