//! 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_DOMCSSImportRule")]
    #[deprecated]
    pub struct DOMCSSImportRule;

    #[cfg(feature = "WebKit_DOMCSSImportRule")]
    unsafe impl ClassType for DOMCSSImportRule {
        #[inherits(DOMObject, WebScriptObject, NSObject)]
        type Super = DOMCSSRule;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "WebKit_DOMCSSImportRule")]
unsafe impl NSCopying for DOMCSSImportRule {}

#[cfg(feature = "WebKit_DOMCSSImportRule")]
unsafe impl NSObjectProtocol for DOMCSSImportRule {}

extern_methods!(
    #[cfg(feature = "WebKit_DOMCSSImportRule")]
    unsafe impl DOMCSSImportRule {
        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other href)]
        pub unsafe fn href(&self) -> Id<NSString>;

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

        #[cfg(feature = "WebKit_DOMCSSStyleSheet")]
        #[method_id(@__retain_semantics Other styleSheet)]
        pub unsafe fn styleSheet(&self) -> Option<Id<DOMCSSStyleSheet>>;
    }
);

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

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "WebKit_DOMCSSImportRule")]
    unsafe impl DOMCSSImportRule {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);
