Trait script::dom::bindings::codegen::Bindings::MessageEventBinding::MessageEvent_Binding::MessageEventMethods
source · pub trait MessageEventMethods {
// Required methods
fn Data(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>);
fn Origin(&self) -> DOMString;
fn LastEventId(&self) -> DOMString;
fn GetSource(&self) -> Option<WindowProxyOrMessagePortOrServiceWorker>;
fn Ports(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>);
fn InitMessageEvent(
&self,
cx: SafeJSContext,
type_: DOMString,
bubbles: bool,
cancelable: bool,
data: HandleValue<'_>,
origin: DOMString,
lastEventId: DOMString,
source: Option<WindowProxyOrMessagePortOrServiceWorker>,
ports: Vec<Root<Dom<MessagePort>>>,
);
fn IsTrusted(&self) -> bool;
fn Constructor(
global: &GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: RootedTraceableBox<MessageEventInit>,
) -> Result<Root<Dom<MessageEvent>>, Error>;
}
Required Methods§
fn Data(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>)
fn Origin(&self) -> DOMString
fn LastEventId(&self) -> DOMString
fn GetSource(&self) -> Option<WindowProxyOrMessagePortOrServiceWorker>
fn Ports(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>)
fn InitMessageEvent( &self, cx: SafeJSContext, type_: DOMString, bubbles: bool, cancelable: bool, data: HandleValue<'_>, origin: DOMString, lastEventId: DOMString, source: Option<WindowProxyOrMessagePortOrServiceWorker>, ports: Vec<Root<Dom<MessagePort>>>, )
fn IsTrusted(&self) -> bool
fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: RootedTraceableBox<MessageEventInit>, ) -> Result<Root<Dom<MessageEvent>>, Error>
Object Safety§
This trait is not object safe.