//! 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_WKScriptMessage")]
    pub struct WKScriptMessage;

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

#[cfg(feature = "WebKit_WKScriptMessage")]
unsafe impl NSObjectProtocol for WKScriptMessage {}

extern_methods!(
    #[cfg(feature = "WebKit_WKScriptMessage")]
    unsafe impl WKScriptMessage {
        #[method_id(@__retain_semantics Other body)]
        pub unsafe fn body(&self) -> Id<AnyObject>;

        #[cfg(feature = "WebKit_WKWebView")]
        #[method_id(@__retain_semantics Other webView)]
        pub unsafe fn webView(&self) -> Option<Id<WKWebView>>;

        #[cfg(feature = "WebKit_WKFrameInfo")]
        #[method_id(@__retain_semantics Other frameInfo)]
        pub unsafe fn frameInfo(&self) -> Id<WKFrameInfo>;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other name)]
        pub unsafe fn name(&self) -> Id<NSString>;

        #[cfg(feature = "WebKit_WKContentWorld")]
        #[method_id(@__retain_semantics Other world)]
        pub unsafe fn world(&self) -> Id<WKContentWorld>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "WebKit_WKScriptMessage")]
    unsafe impl WKScriptMessage {
        #[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>;
    }
);
