Skip to main content

TextTrackListMethods

pub trait TextTrackListMethods<D: DomTypes> {
    // Required methods
    fn Length(&self, cx: &NoGC) -> u32;
    fn GetTrackById(
        &self,
        cx: &NoGC,
        id: DOMString,
    ) -> Option<DomRoot<D::TextTrack>>;
    fn GetOnchange(
        &self,
        cx: &mut JSContext,
    ) -> Option<RootedCallback<EventHandlerNonNull<D>>>;
    fn SetOnchange(
        &self,
        cx: &mut JSContext,
        value: Option<RootedCallback<EventHandlerNonNull<D>>>,
    );
    fn GetOnaddtrack(
        &self,
        cx: &mut JSContext,
    ) -> Option<RootedCallback<EventHandlerNonNull<D>>>;
    fn SetOnaddtrack(
        &self,
        cx: &mut JSContext,
        value: Option<RootedCallback<EventHandlerNonNull<D>>>,
    );
    fn GetOnremovetrack(
        &self,
        cx: &mut JSContext,
    ) -> Option<RootedCallback<EventHandlerNonNull<D>>>;
    fn SetOnremovetrack(
        &self,
        cx: &mut JSContext,
        value: Option<RootedCallback<EventHandlerNonNull<D>>>,
    );
    fn IndexedGetter(
        &self,
        cx: &NoGC,
        index: u32,
    ) -> Option<DomRoot<D::TextTrack>>;
}

Required Methods§

Implementors§