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§
👎Deprecated
Available on crate feature
WebFrame
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.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>> )
👎Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.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>> )
👎Deprecated
Available on crate feature
WebFrame
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_unableToImplementPolicyWithError_frame( &self, web_view: Option<&WebView>, error: Option<&NSError>, frame: Option<&WebFrame> )
👎Deprecated
Available on crate feature
WebFrame
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.