pub trait UserContentManagerExt: 'static {
Show 14 methods // Required methods fn add_script(&self, script: &UserScript); fn add_style_sheet(&self, stylesheet: &UserStyleSheet); fn register_script_message_handler(&self, name: &str) -> bool; fn register_script_message_handler_in_world( &self, name: &str, world_name: &str ) -> bool; fn register_script_message_handler_with_reply( &self, name: &str, world_name: &str ) -> bool; fn remove_all_filters(&self); fn remove_all_scripts(&self); fn remove_all_style_sheets(&self); fn remove_filter_by_id(&self, filter_id: &str); fn remove_script(&self, script: &UserScript); fn remove_style_sheet(&self, stylesheet: &UserStyleSheet); fn unregister_script_message_handler(&self, name: &str); fn unregister_script_message_handler_in_world( &self, name: &str, world_name: &str ); fn connect_script_message_received<F: Fn(&Self, &JavascriptResult) + 'static>( &self, detail: Option<&str>, f: F ) -> SignalHandlerId;
}
Available on crate feature v2_6 only.

Required Methods§

source

fn add_script(&self, script: &UserScript)

source

fn add_style_sheet(&self, stylesheet: &UserStyleSheet)

source

fn register_script_message_handler(&self, name: &str) -> bool

Available on crate feature v2_8 only.
source

fn register_script_message_handler_in_world( &self, name: &str, world_name: &str ) -> bool

Available on crate feature v2_22 only.
source

fn register_script_message_handler_with_reply( &self, name: &str, world_name: &str ) -> bool

Available on crate feature v2_40 only.
source

fn remove_all_filters(&self)

Available on crate feature v2_24 only.
source

fn remove_all_scripts(&self)

source

fn remove_all_style_sheets(&self)

source

fn remove_filter_by_id(&self, filter_id: &str)

Available on crate feature v2_26 only.
source

fn remove_script(&self, script: &UserScript)

Available on crate feature v2_32 only.
source

fn remove_style_sheet(&self, stylesheet: &UserStyleSheet)

Available on crate feature v2_32 only.
source

fn unregister_script_message_handler(&self, name: &str)

Available on crate feature v2_8 only.
source

fn unregister_script_message_handler_in_world( &self, name: &str, world_name: &str )

Available on crate feature v2_22 only.
source

fn connect_script_message_received<F: Fn(&Self, &JavascriptResult) + 'static>( &self, detail: Option<&str>, f: F ) -> SignalHandlerId

Available on crate feature v2_8 only.

Object Safety§

This trait is not object safe.

Implementors§