use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::WebKit::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "WebKit_WebFrameView")]
#[deprecated]
pub struct WebFrameView;
#[cfg(feature = "WebKit_WebFrameView")]
unsafe impl ClassType for WebFrameView {
#[inherits(NSResponder, NSObject)]
type Super = NSView;
type Mutability = MainThreadOnly;
}
);
#[cfg(feature = "WebKit_WebFrameView")]
unsafe impl NSAccessibility for WebFrameView {}
#[cfg(feature = "WebKit_WebFrameView")]
unsafe impl NSAccessibilityElementProtocol for WebFrameView {}
#[cfg(feature = "WebKit_WebFrameView")]
unsafe impl NSAnimatablePropertyContainer for WebFrameView {}
#[cfg(feature = "WebKit_WebFrameView")]
unsafe impl NSAppearanceCustomization for WebFrameView {}
#[cfg(feature = "WebKit_WebFrameView")]
unsafe impl NSCoding for WebFrameView {}
#[cfg(feature = "WebKit_WebFrameView")]
unsafe impl NSDraggingDestination for WebFrameView {}
#[cfg(feature = "WebKit_WebFrameView")]
unsafe impl NSObjectProtocol for WebFrameView {}
#[cfg(feature = "WebKit_WebFrameView")]
unsafe impl NSUserInterfaceItemIdentification for WebFrameView {}
extern_methods!(
#[cfg(feature = "WebKit_WebFrameView")]
unsafe impl WebFrameView {
#[cfg(feature = "WebKit_WebFrame")]
#[deprecated]
#[method_id(@__retain_semantics Other webFrame)]
pub unsafe fn webFrame(&self) -> Option<Id<WebFrame>>;
#[deprecated]
#[method_id(@__retain_semantics Other documentView)]
pub unsafe fn documentView(&self) -> Option<Id<NSView>>;
#[deprecated]
#[method(allowsScrolling)]
pub unsafe fn allowsScrolling(&self) -> bool;
#[deprecated]
#[method(setAllowsScrolling:)]
pub unsafe fn setAllowsScrolling(&self, allows_scrolling: bool);
#[deprecated]
#[method(canPrintHeadersAndFooters)]
pub unsafe fn canPrintHeadersAndFooters(&self) -> bool;
#[cfg(all(feature = "AppKit_NSPrintInfo", feature = "AppKit_NSPrintOperation"))]
#[deprecated]
#[method_id(@__retain_semantics Other printOperationWithPrintInfo:)]
pub unsafe fn printOperationWithPrintInfo(
&self,
print_info: Option<&NSPrintInfo>,
) -> Option<Id<NSPrintOperation>>;
#[deprecated]
#[method(documentViewShouldHandlePrint)]
pub unsafe fn documentViewShouldHandlePrint(&self) -> bool;
#[deprecated]
#[method(printDocumentView)]
pub unsafe fn printDocumentView(&self);
}
);
extern_methods!(
#[cfg(feature = "WebKit_WebFrameView")]
unsafe impl WebFrameView {
#[method_id(@__retain_semantics Init initWithFrame:)]
pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Id<Self>;
#[cfg(feature = "Foundation_NSCoder")]
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Option<Id<Self>>;
}
);
extern_methods!(
#[cfg(feature = "WebKit_WebFrameView")]
unsafe impl WebFrameView {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
}
);
extern_methods!(
#[cfg(feature = "WebKit_WebFrameView")]
unsafe impl WebFrameView {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Id<Self>;
}
);