Trait DocumentExecCommandSupport
Source pub(crate) trait DocumentExecCommandSupport {
// Required methods
fn is_command_supported(&self, command_id: DOMString) -> bool;
fn is_command_indeterminate(&self, command_id: DOMString) -> bool;
fn command_state_for_command(&self, command_id: DOMString) -> bool;
fn command_value_for_command(&self, command_id: DOMString) -> DOMString;
fn check_support_and_enabled(
&self,
cx: &mut JSContext,
command_id: &DOMString,
) -> Option<(CommandName, DomRoot<Selection>)>;
fn exec_command_for_command_id(
&self,
cx: &mut JSContext,
command_id: DOMString,
value: DOMString,
) -> bool;
}