Trait webkit2gtk::UserContentManagerExt
source · 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§
fn add_script(&self, script: &UserScript)
fn add_style_sheet(&self, stylesheet: &UserStyleSheet)
sourcefn register_script_message_handler(&self, name: &str) -> bool
fn register_script_message_handler(&self, name: &str) -> bool
Available on crate feature
v2_8
only.sourcefn register_script_message_handler_in_world(
&self,
name: &str,
world_name: &str
) -> bool
fn register_script_message_handler_in_world( &self, name: &str, world_name: &str ) -> bool
Available on crate feature
v2_22
only.sourcefn register_script_message_handler_with_reply(
&self,
name: &str,
world_name: &str
) -> bool
fn register_script_message_handler_with_reply( &self, name: &str, world_name: &str ) -> bool
Available on crate feature
v2_40
only.sourcefn remove_all_filters(&self)
fn remove_all_filters(&self)
Available on crate feature
v2_24
only.fn remove_all_scripts(&self)
fn remove_all_style_sheets(&self)
sourcefn remove_filter_by_id(&self, filter_id: &str)
fn remove_filter_by_id(&self, filter_id: &str)
Available on crate feature
v2_26
only.sourcefn remove_script(&self, script: &UserScript)
fn remove_script(&self, script: &UserScript)
Available on crate feature
v2_32
only.sourcefn remove_style_sheet(&self, stylesheet: &UserStyleSheet)
fn remove_style_sheet(&self, stylesheet: &UserStyleSheet)
Available on crate feature
v2_32
only.sourcefn unregister_script_message_handler(&self, name: &str)
fn unregister_script_message_handler(&self, name: &str)
Available on crate feature
v2_8
only.sourcefn unregister_script_message_handler_in_world(
&self,
name: &str,
world_name: &str
)
fn unregister_script_message_handler_in_world( &self, name: &str, world_name: &str )
Available on crate feature
v2_22
only.sourcefn connect_script_message_received<F: Fn(&Self, &JavascriptResult) + 'static>(
&self,
detail: Option<&str>,
f: F
) -> SignalHandlerId
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.