[][src]Trait webkit2gtk::WebViewExt

pub trait WebViewExt: 'static {
    fn can_execute_editing_command<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        command: &str,
        cancellable: Option<&P>,
        callback: Q
    );
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 get_back_forward_list(&self) -> Option<BackForwardList>;
fn get_context(&self) -> Option<WebContext>;
fn get_custom_charset(&self) -> Option<GString>;
fn get_estimated_load_progress(&self) -> f64;
fn get_favicon(&self) -> Option<Surface>;
fn get_find_controller(&self) -> Option<FindController>;
fn get_inspector(&self) -> Option<WebInspector>;
fn get_javascript_global_context(&self) -> Option<GlobalContextRef>;
fn get_main_resource(&self) -> Option<WebResource>;
fn get_page_id(&self) -> u64;
fn get_settings(&self) -> Option<Settings>;
fn get_snapshot<P: IsA<Cancellable>, Q: FnOnce(Result<Surface, Error>) + Send + 'static>(
        &self,
        region: SnapshotRegion,
        options: SnapshotOptions,
        cancellable: Option<&P>,
        callback: Q
    );
fn get_title(&self) -> Option<GString>;
fn get_tls_info(&self) -> Option<(TlsCertificate, TlsCertificateFlags)>;
fn get_uri(&self) -> Option<GString>;
fn get_window_properties(&self) -> Option<WindowProperties>;
fn get_zoom_level(&self) -> f64;
fn go_back(&self);
fn go_forward(&self);
fn go_to_back_forward_list_item<P: IsA<BackForwardListItem>>(
        &self,
        list_item: &P
    );
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<P: IsA<URIRequest>>(&self, request: &P);
fn load_uri(&self, uri: &str);
fn reload(&self);
fn reload_bypass_cache(&self);
fn run_javascript<P: IsA<Cancellable>, Q: FnOnce(Result<JavascriptResult, Error>) + Send + 'static>(
        &self,
        script: &str,
        cancellable: Option<&P>,
        callback: Q
    );
fn run_javascript_from_gresource<P: IsA<Cancellable>, Q: FnOnce(Result<JavascriptResult, Error>) + Send + 'static>(
        &self,
        resource: &str,
        cancellable: Option<&P>,
        callback: Q
    );
fn set_custom_charset(&self, charset: Option<&str>);
fn set_settings<P: IsA<Settings>>(&self, settings: &P);
fn set_zoom_level(&self, zoom_level: f64);
fn stop_loading(&self);
fn get_property_is_loading(&self) -> bool;
fn get_property_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_script_dialog<F: Fn(&Self, &ScriptDialog) -> 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_property_estimated_load_progress_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_favicon_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_is_loading_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_title_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_uri_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_zoom_level_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

fn can_execute_editing_command<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
    &self,
    command: &str,
    cancellable: Option<&P>,
    callback: Q
)

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 get_back_forward_list(&self) -> Option<BackForwardList>

fn get_context(&self) -> Option<WebContext>

fn get_custom_charset(&self) -> Option<GString>

fn get_estimated_load_progress(&self) -> f64

fn get_favicon(&self) -> Option<Surface>

fn get_find_controller(&self) -> Option<FindController>

fn get_inspector(&self) -> Option<WebInspector>

fn get_javascript_global_context(&self) -> Option<GlobalContextRef>

fn get_main_resource(&self) -> Option<WebResource>

fn get_page_id(&self) -> u64

fn get_settings(&self) -> Option<Settings>

fn get_snapshot<P: IsA<Cancellable>, Q: FnOnce(Result<Surface, Error>) + Send + 'static>(
    &self,
    region: SnapshotRegion,
    options: SnapshotOptions,
    cancellable: Option<&P>,
    callback: Q
)

fn get_title(&self) -> Option<GString>

fn get_tls_info(&self) -> Option<(TlsCertificate, TlsCertificateFlags)>

fn get_uri(&self) -> Option<GString>

fn get_window_properties(&self) -> Option<WindowProperties>

fn get_zoom_level(&self) -> f64

fn go_back(&self)

fn go_forward(&self)

fn go_to_back_forward_list_item<P: IsA<BackForwardListItem>>(
    &self,
    list_item: &P
)

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<P: IsA<URIRequest>>(&self, request: &P)

fn load_uri(&self, uri: &str)

fn reload(&self)

fn reload_bypass_cache(&self)

fn run_javascript<P: IsA<Cancellable>, Q: FnOnce(Result<JavascriptResult, Error>) + Send + 'static>(
    &self,
    script: &str,
    cancellable: Option<&P>,
    callback: Q
)

fn run_javascript_from_gresource<P: IsA<Cancellable>, Q: FnOnce(Result<JavascriptResult, Error>) + Send + 'static>(
    &self,
    resource: &str,
    cancellable: Option<&P>,
    callback: Q
)

fn set_custom_charset(&self, charset: Option<&str>)

fn set_settings<P: IsA<Settings>>(&self, settings: &P)

fn set_zoom_level(&self, zoom_level: f64)

fn stop_loading(&self)

fn get_property_is_loading(&self) -> bool

fn get_property_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_script_dialog<F: Fn(&Self, &ScriptDialog) -> 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_property_estimated_load_progress_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_favicon_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_is_loading_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_title_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_uri_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_zoom_level_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<WebView>> WebViewExt for O[src]

Loading content...