//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::WebKit::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "WebKit_WKNavigationResponse")]
    pub struct WKNavigationResponse;

    #[cfg(feature = "WebKit_WKNavigationResponse")]
    unsafe impl ClassType for WKNavigationResponse {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "WebKit_WKNavigationResponse")]
unsafe impl NSObjectProtocol for WKNavigationResponse {}

extern_methods!(
    #[cfg(feature = "WebKit_WKNavigationResponse")]
    unsafe impl WKNavigationResponse {
        #[method(isForMainFrame)]
        pub unsafe fn isForMainFrame(&self) -> bool;

        #[cfg(feature = "Foundation_NSURLResponse")]
        #[method_id(@__retain_semantics Other response)]
        pub unsafe fn response(&self) -> Id<NSURLResponse>;

        #[method(canShowMIMEType)]
        pub unsafe fn canShowMIMEType(&self) -> bool;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "WebKit_WKNavigationResponse")]
    unsafe impl WKNavigationResponse {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);
