pub trait WebViewExt: 'static {
Show 74 methods
fn can_execute_editing_command<P: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
command: &str,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
);
fn can_execute_editing_command_future(
&self,
command: &str
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>;
fn can_go_back(&self) -> bool;
fn can_go_forward(&self) -> bool;
fn can_show_mime_type(&self, mime_type: &str) -> bool;
fn download_uri(&self, uri: &str) -> Option<Download>;
fn execute_editing_command(&self, command: &str);
fn back_forward_list(&self) -> Option<BackForwardList>;
fn context(&self) -> Option<WebContext>;
fn custom_charset(&self) -> Option<GString>;
fn estimated_load_progress(&self) -> f64;
fn favicon(&self) -> Option<Surface>;
fn find_controller(&self) -> Option<FindController>;
fn inspector(&self) -> Option<WebInspector>;
fn is_web_process_responsive(&self) -> bool;
fn main_resource(&self) -> Option<WebResource>;
fn page_id(&self) -> u64;
fn settings(&self) -> Option<Settings>;
fn snapshot<P: FnOnce(Result<Surface, Error>) + Send + 'static>(
&self,
region: SnapshotRegion,
options: SnapshotOptions,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
);
fn snapshot_future(
&self,
region: SnapshotRegion,
options: SnapshotOptions
) -> Pin<Box_<dyn Future<Output = Result<Surface, Error>> + 'static>>;
fn title(&self) -> Option<GString>;
fn tls_info(&self) -> Option<(TlsCertificate, TlsCertificateFlags)>;
fn uri(&self) -> Option<GString>;
fn window_properties(&self) -> Option<WindowProperties>;
fn zoom_level(&self) -> f64;
fn go_back(&self);
fn go_forward(&self);
fn go_to_back_forward_list_item(
&self,
list_item: &impl IsA<BackForwardListItem>
);
fn is_editable(&self) -> bool;
fn is_loading(&self) -> bool;
fn load_alternate_html(
&self,
content: &str,
content_uri: &str,
base_uri: Option<&str>
);
fn load_html(&self, content: &str, base_uri: Option<&str>);
fn load_plain_text(&self, plain_text: &str);
fn load_request(&self, request: &impl IsA<URIRequest>);
fn load_uri(&self, uri: &str);
fn reload(&self);
fn reload_bypass_cache(&self);
fn run_javascript<P: FnOnce(Result<JavascriptResult, Error>) + Send + 'static>(
&self,
script: &str,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
);
fn run_javascript_future(
&self,
script: &str
) -> Pin<Box_<dyn Future<Output = Result<JavascriptResult, Error>> + 'static>>;
fn run_javascript_from_gresource<P: FnOnce(Result<JavascriptResult, Error>) + Send + 'static>(
&self,
resource: &str,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
);
fn run_javascript_from_gresource_future(
&self,
resource: &str
) -> Pin<Box_<dyn Future<Output = Result<JavascriptResult, Error>> + 'static>>;
fn save<P: FnOnce(Result<InputStream, Error>) + Send + 'static>(
&self,
save_mode: SaveMode,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
);
fn save_future(
&self,
save_mode: SaveMode
) -> Pin<Box_<dyn Future<Output = Result<InputStream, Error>> + 'static>>;
fn save_to_file<P: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
file: &impl IsA<File>,
save_mode: SaveMode,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
);
fn save_to_file_future(
&self,
file: &impl IsA<File> + Clone + 'static,
save_mode: SaveMode
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>;
fn set_custom_charset(&self, charset: Option<&str>);
fn set_settings(&self, settings: &impl IsA<Settings>);
fn set_zoom_level(&self, zoom_level: f64);
fn stop_loading(&self);
fn web_context(&self) -> Option<WebContext>;
fn connect_close<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_context_menu<F: Fn(&Self, &ContextMenu, &Event, &HitTestResult) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_context_menu_dismissed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_decide_policy<F: Fn(&Self, &PolicyDecision, PolicyDecisionType) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_enter_fullscreen<F: Fn(&Self) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_insecure_content_detected<F: Fn(&Self, InsecureContentEvent) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_leave_fullscreen<F: Fn(&Self) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_load_changed<F: Fn(&Self, LoadEvent) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_load_failed<F: Fn(&Self, LoadEvent, &str, &Error) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_mouse_target_changed<F: Fn(&Self, &HitTestResult, u32) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_permission_request<F: Fn(&Self, &PermissionRequest) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_print<F: Fn(&Self, &PrintOperation) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_ready_to_show<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_resource_load_started<F: Fn(&Self, &WebResource, &URIRequest) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_run_as_modal<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_run_file_chooser<F: Fn(&Self, &FileChooserRequest) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_submit_form<F: Fn(&Self, &FormSubmissionRequest) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_web_process_crashed<F: Fn(&Self) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_estimated_load_progress_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_favicon_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_is_loading_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_title_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_uri_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_zoom_level_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}