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