use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::WebKit::*;
extern_protocol!(
#[deprecated]
pub unsafe trait WebDocumentView: NSObjectProtocol {
#[cfg(feature = "WebKit_WebDataSource")]
#[deprecated]
#[method(setDataSource:)]
unsafe fn setDataSource(&self, data_source: Option<&WebDataSource>);
#[cfg(feature = "WebKit_WebDataSource")]
#[deprecated]
#[method(dataSourceUpdated:)]
unsafe fn dataSourceUpdated(&self, data_source: Option<&WebDataSource>);
#[deprecated]
#[method(setNeedsLayout:)]
unsafe fn setNeedsLayout(&self, flag: bool);
#[deprecated]
#[method(layout)]
unsafe fn layout(&self);
#[cfg(feature = "AppKit_NSWindow")]
#[deprecated]
#[method(viewWillMoveToHostWindow:)]
unsafe fn viewWillMoveToHostWindow(&self, host_window: Option<&NSWindow>);
#[deprecated]
#[method(viewDidMoveToHostWindow)]
unsafe fn viewDidMoveToHostWindow(&self);
}
unsafe impl ProtocolType for dyn WebDocumentView {}
);
extern_protocol!(
#[deprecated]
pub unsafe trait WebDocumentSearching: NSObjectProtocol {
#[cfg(feature = "Foundation_NSString")]
#[deprecated]
#[method(searchFor:direction:caseSensitive:wrap:)]
unsafe fn searchFor_direction_caseSensitive_wrap(
&self,
string: Option<&NSString>,
forward: bool,
case_flag: bool,
wrap_flag: bool,
) -> bool;
}
unsafe impl ProtocolType for dyn WebDocumentSearching {}
);
extern_protocol!(
#[deprecated]
pub unsafe trait WebDocumentText: NSObjectProtocol {
#[deprecated]
#[method(supportsTextEncoding)]
unsafe fn supportsTextEncoding(&self) -> bool;
#[cfg(feature = "Foundation_NSString")]
#[deprecated]
#[method_id(@__retain_semantics Other string)]
unsafe fn string(&self) -> Option<Id<NSString>>;
#[cfg(feature = "Foundation_NSAttributedString")]
#[deprecated]
#[method_id(@__retain_semantics Other attributedString)]
unsafe fn attributedString(&self) -> Option<Id<NSAttributedString>>;
#[cfg(feature = "Foundation_NSString")]
#[deprecated]
#[method_id(@__retain_semantics Other selectedString)]
unsafe fn selectedString(&self) -> Option<Id<NSString>>;
#[cfg(feature = "Foundation_NSAttributedString")]
#[deprecated]
#[method_id(@__retain_semantics Other selectedAttributedString)]
unsafe fn selectedAttributedString(&self) -> Option<Id<NSAttributedString>>;
#[deprecated]
#[method(selectAll)]
unsafe fn selectAll(&self);
#[deprecated]
#[method(deselectAll)]
unsafe fn deselectAll(&self);
}
unsafe impl ProtocolType for dyn WebDocumentText {}
);
extern_protocol!(
#[deprecated]
pub unsafe trait WebDocumentRepresentation: NSObjectProtocol {
#[cfg(feature = "WebKit_WebDataSource")]
#[deprecated]
#[method(setDataSource:)]
unsafe fn setDataSource(&self, data_source: Option<&WebDataSource>);
#[cfg(all(feature = "Foundation_NSData", feature = "WebKit_WebDataSource"))]
#[deprecated]
#[method(receivedData:withDataSource:)]
unsafe fn receivedData_withDataSource(
&self,
data: Option<&NSData>,
data_source: Option<&WebDataSource>,
);
#[cfg(all(feature = "Foundation_NSError", feature = "WebKit_WebDataSource"))]
#[deprecated]
#[method(receivedError:withDataSource:)]
unsafe fn receivedError_withDataSource(
&self,
error: Option<&NSError>,
data_source: Option<&WebDataSource>,
);
#[cfg(feature = "WebKit_WebDataSource")]
#[deprecated]
#[method(finishedLoadingWithDataSource:)]
unsafe fn finishedLoadingWithDataSource(&self, data_source: Option<&WebDataSource>);
#[deprecated]
#[method(canProvideDocumentSource)]
unsafe fn canProvideDocumentSource(&self) -> bool;
#[cfg(feature = "Foundation_NSString")]
#[deprecated]
#[method_id(@__retain_semantics Other documentSource)]
unsafe fn documentSource(&self) -> Option<Id<NSString>>;
#[cfg(feature = "Foundation_NSString")]
#[deprecated]
#[method_id(@__retain_semantics Other title)]
unsafe fn title(&self) -> Option<Id<NSString>>;
}
unsafe impl ProtocolType for dyn WebDocumentRepresentation {}
);