Trait objc2_web_kit::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 WebPolicyDelegate 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 feature WebFrame and crate feature WebView and crate feature objc2-app-kit and macOS 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 feature WebView and crate feature objc2-app-kit and macOS 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 feature WebFrame and crate feature WebView and crate feature objc2-app-kit and macOS 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 feature WebFrame and crate feature WebView and crate feature objc2-app-kit and macOS 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§