Trait WebPolicyDelegate

Source
pub unsafe trait WebPolicyDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn webView_decidePolicyForNavigationAction_request_frame_decisionListener(
        &self,
        web_view: Option<&WebView>,
        action_information: Option<&NSDictionary>,
        request: Option<&NSURLRequest>,
        frame: Option<&WebFrame>,
        listener: Option<&ProtocolObject<dyn WebPolicyDecisionListener>>,
    )
       where Self: Sized + Message { ... }
    unsafe fn webView_decidePolicyForNewWindowAction_request_newFrameName_decisionListener(
        &self,
        web_view: Option<&WebView>,
        action_information: Option<&NSDictionary>,
        request: Option<&NSURLRequest>,
        frame_name: Option<&NSString>,
        listener: Option<&ProtocolObject<dyn WebPolicyDecisionListener>>,
    )
       where Self: Sized + Message { ... }
    unsafe fn webView_decidePolicyForMIMEType_request_frame_decisionListener(
        &self,
        web_view: Option<&WebView>,
        type: Option<&NSString>,
        request: Option<&NSURLRequest>,
        frame: Option<&WebFrame>,
        listener: Option<&ProtocolObject<dyn WebPolicyDecisionListener>>,
    )
       where Self: Sized + Message { ... }
    unsafe fn webView_unableToImplementPolicyWithError_frame(
        &self,
        web_view: Option<&WebView>,
        error: Option<&NSError>,
        frame: Option<&WebFrame>,
    )
       where Self: Sized + Message { ... }
}
👎Deprecated
Available on crate feature WebKit only.

Provided Methods§

Source

unsafe fn webView_decidePolicyForNavigationAction_request_frame_decisionListener( &self, web_view: Option<&WebView>, action_information: Option<&NSDictionary>, request: Option<&NSURLRequest>, frame: Option<&WebFrame>, listener: Option<&ProtocolObject<dyn WebPolicyDecisionListener>>, )
where Self: Sized + Message,

👎Deprecated
Available on crate features Foundation_NSDictionary and Foundation_NSURLRequest and WebKit_WebFrame and WebKit_WebView only.
Source

unsafe fn webView_decidePolicyForNewWindowAction_request_newFrameName_decisionListener( &self, web_view: Option<&WebView>, action_information: Option<&NSDictionary>, request: Option<&NSURLRequest>, frame_name: Option<&NSString>, listener: Option<&ProtocolObject<dyn WebPolicyDecisionListener>>, )
where Self: Sized + Message,

👎Deprecated
Available on crate features Foundation_NSDictionary and Foundation_NSString and Foundation_NSURLRequest and WebKit_WebView only.
Source

unsafe fn webView_decidePolicyForMIMEType_request_frame_decisionListener( &self, web_view: Option<&WebView>, type: Option<&NSString>, request: Option<&NSURLRequest>, frame: Option<&WebFrame>, listener: Option<&ProtocolObject<dyn WebPolicyDecisionListener>>, )
where Self: Sized + Message,

👎Deprecated
Available on crate features Foundation_NSString and Foundation_NSURLRequest and WebKit_WebFrame and WebKit_WebView only.
Source

unsafe fn webView_unableToImplementPolicyWithError_frame( &self, web_view: Option<&WebView>, error: Option<&NSError>, frame: Option<&WebFrame>, )
where Self: Sized + Message,

👎Deprecated
Available on crate features Foundation_NSError and WebKit_WebFrame and WebKit_WebView only.

Trait Implementations§

Source§

impl ProtocolType for dyn WebPolicyDelegate

Source§

const NAME: &'static str = "WebPolicyDelegate"

The name of the Objective-C protocol that this type represents.
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn WebPolicyDelegate

Implementations on Foreign Types§

Source§

impl<T> WebPolicyDelegate for ProtocolObject<T>

Implementors§