pub(crate) trait DissimilarOriginWindowMethods<D>where
D: DomTypes,{
Show 15 methods
// Required methods
fn Window(&self) -> Root<Dom<<D as DomTypes>::WindowProxy>>;
fn Self_(&self) -> Root<Dom<<D as DomTypes>::WindowProxy>>;
fn GetParent(&self) -> Option<Root<Dom<<D as DomTypes>::WindowProxy>>>;
fn GetTop(&self) -> Option<Root<Dom<<D as DomTypes>::WindowProxy>>>;
fn Frames(&self) -> Root<Dom<<D as DomTypes>::WindowProxy>>;
fn Length(&self) -> u32;
fn Location(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::Location>>;
fn Close(&self);
fn Closed(&self) -> bool;
fn PostMessage(
&self,
cx: &mut JSContext,
message: Handle<'_, Value>,
targetOrigin: USVString,
transfer: CustomAutoRooterGuard<'_, Vec<*mut JSObject>>,
) -> Result<(), Error>;
fn PostMessage_(
&self,
cx: &mut JSContext,
message: Handle<'_, Value>,
options: &WindowPostMessageOptions,
) -> Result<(), Error>;
fn Opener(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>);
fn SetOpener(&self, cx: &mut JSContext, value: Handle<'_, Value>);
fn Focus(&self);
fn Blur(&self);
}Required Methods§
fn Window(&self) -> Root<Dom<<D as DomTypes>::WindowProxy>>
fn Self_(&self) -> Root<Dom<<D as DomTypes>::WindowProxy>>
fn GetParent(&self) -> Option<Root<Dom<<D as DomTypes>::WindowProxy>>>
fn GetTop(&self) -> Option<Root<Dom<<D as DomTypes>::WindowProxy>>>
fn Frames(&self) -> Root<Dom<<D as DomTypes>::WindowProxy>>
fn Length(&self) -> u32
fn Location(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::Location>>
fn Close(&self)
fn Closed(&self) -> bool
fn PostMessage( &self, cx: &mut JSContext, message: Handle<'_, Value>, targetOrigin: USVString, transfer: CustomAutoRooterGuard<'_, Vec<*mut JSObject>>, ) -> Result<(), Error>
fn PostMessage_( &self, cx: &mut JSContext, message: Handle<'_, Value>, options: &WindowPostMessageOptions, ) -> Result<(), Error>
fn Opener(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>)
fn SetOpener(&self, cx: &mut JSContext, value: Handle<'_, Value>)
fn Focus(&self)
fn Blur(&self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".