use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
use objc2_app_kit::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSView, NSResponder, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
#[deprecated]
pub struct WebFrameView;
);
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSAccessibility for WebFrameView {}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSAccessibilityElementProtocol for WebFrameView {}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSAnimatablePropertyContainer for WebFrameView {}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSAppearanceCustomization for WebFrameView {}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSCoding for WebFrameView {}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSDraggingDestination for WebFrameView {}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSObjectProtocol for WebFrameView {}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
unsafe impl NSUserInterfaceItemIdentification for WebFrameView {}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
impl WebFrameView {
extern_methods!(
#[cfg(feature = "WebFrame")]
#[deprecated]
#[unsafe(method(webFrame))]
#[unsafe(method_family = none)]
pub unsafe fn webFrame(&self) -> Option<Retained<WebFrame>>;
#[cfg(feature = "WebDocument")]
#[deprecated]
#[unsafe(method(documentView))]
#[unsafe(method_family = none)]
pub unsafe fn documentView(&self) -> Option<Retained<NSView>>;
#[deprecated]
#[unsafe(method(allowsScrolling))]
#[unsafe(method_family = none)]
pub unsafe fn allowsScrolling(&self) -> bool;
#[deprecated]
#[unsafe(method(setAllowsScrolling:))]
#[unsafe(method_family = none)]
pub unsafe fn setAllowsScrolling(&self, allows_scrolling: bool);
#[deprecated]
#[unsafe(method(canPrintHeadersAndFooters))]
#[unsafe(method_family = none)]
pub unsafe fn canPrintHeadersAndFooters(&self) -> bool;
#[deprecated]
#[unsafe(method(printOperationWithPrintInfo:))]
#[unsafe(method_family = none)]
pub unsafe fn printOperationWithPrintInfo(
&self,
print_info: Option<&NSPrintInfo>,
) -> Option<Retained<NSPrintOperation>>;
#[deprecated]
#[unsafe(method(documentViewShouldHandlePrint))]
#[unsafe(method_family = none)]
pub unsafe fn documentViewShouldHandlePrint(&self) -> bool;
#[deprecated]
#[unsafe(method(printDocumentView))]
#[unsafe(method_family = none)]
pub unsafe fn printDocumentView(&self);
);
}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
impl WebFrameView {
extern_methods!(
#[unsafe(method(initWithFrame:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
#[unsafe(method(initWithCoder:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder(
this: Allocated<Self>,
coder: &NSCoder,
) -> Option<Retained<Self>>;
);
}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
impl WebFrameView {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
impl WebFrameView {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}