objc2_web_kit/generated/
WebDOMOperations.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9/// WebDOMNodeOperations.
10#[cfg(all(
11    feature = "DOMNode",
12    feature = "DOMObject",
13    feature = "WebScriptObject"
14))]
15impl DOMNode {
16    extern_methods!(
17        #[cfg(feature = "WebArchive")]
18        /// A WebArchive representing the node and the children of the node.
19        #[deprecated]
20        #[unsafe(method(webArchive))]
21        #[unsafe(method_family = none)]
22        pub unsafe fn webArchive(&self) -> Option<Retained<WebArchive>>;
23    );
24}
25
26/// WebDOMDocumentOperations.
27#[cfg(all(
28    feature = "DOMDocument",
29    feature = "DOMNode",
30    feature = "DOMObject",
31    feature = "WebScriptObject"
32))]
33impl DOMDocument {
34    extern_methods!(
35        #[cfg(feature = "WebFrame")]
36        /// The frame of the DOM document.
37        #[deprecated]
38        #[unsafe(method(webFrame))]
39        #[unsafe(method_family = none)]
40        pub unsafe fn webFrame(&self) -> Option<Retained<WebFrame>>;
41
42        /// Constructs a URL given an attribute string.
43        ///
44        /// This method constructs a URL given an attribute string just as WebKit does.
45        /// An attribute string is the value of an attribute of an element such as the href attribute on
46        /// the DOMHTMLAnchorElement class. This method is only applicable to attributes that refer to URLs.
47        #[deprecated]
48        #[unsafe(method(URLWithAttributeString:))]
49        #[unsafe(method_family = none)]
50        pub unsafe fn URLWithAttributeString(
51            &self,
52            string: Option<&NSString>,
53        ) -> Option<Retained<NSURL>>;
54    );
55}
56
57/// WebDOMRangeOperations.
58#[cfg(all(
59    feature = "DOMObject",
60    feature = "DOMRange",
61    feature = "WebScriptObject"
62))]
63impl DOMRange {
64    extern_methods!(
65        #[cfg(feature = "WebArchive")]
66        /// A WebArchive representing the range.
67        #[deprecated]
68        #[unsafe(method(webArchive))]
69        #[unsafe(method_family = none)]
70        pub unsafe fn webArchive(&self) -> Option<Retained<WebArchive>>;
71
72        /// A markup string representing the range.
73        #[deprecated]
74        #[unsafe(method(markupString))]
75        #[unsafe(method_family = none)]
76        pub unsafe fn markupString(&self) -> Retained<NSString>;
77    );
78}
79
80/// WebDOMHTMLFrameElementOperations.
81#[cfg(all(
82    feature = "DOMElement",
83    feature = "DOMHTMLElement",
84    feature = "DOMHTMLFrameElement",
85    feature = "DOMNode",
86    feature = "DOMObject",
87    feature = "WebScriptObject"
88))]
89impl DOMHTMLFrameElement {
90    extern_methods!(
91        #[cfg(feature = "WebFrame")]
92        /// The content frame of the element.
93        #[deprecated]
94        #[unsafe(method(contentFrame))]
95        #[unsafe(method_family = none)]
96        pub unsafe fn contentFrame(&self) -> Option<Retained<WebFrame>>;
97    );
98}
99
100/// WebDOMHTMLIFrameElementOperations.
101#[cfg(all(
102    feature = "DOMElement",
103    feature = "DOMHTMLElement",
104    feature = "DOMHTMLIFrameElement",
105    feature = "DOMNode",
106    feature = "DOMObject",
107    feature = "WebScriptObject"
108))]
109impl DOMHTMLIFrameElement {
110    extern_methods!(
111        #[cfg(feature = "WebFrame")]
112        /// Returns the content frame of the element.
113        #[deprecated]
114        #[unsafe(method(contentFrame))]
115        #[unsafe(method_family = none)]
116        pub unsafe fn contentFrame(&self) -> Option<Retained<WebFrame>>;
117    );
118}
119
120/// WebDOMHTMLObjectElementOperations.
121#[cfg(all(
122    feature = "DOMElement",
123    feature = "DOMHTMLElement",
124    feature = "DOMHTMLObjectElement",
125    feature = "DOMNode",
126    feature = "DOMObject",
127    feature = "WebScriptObject"
128))]
129impl DOMHTMLObjectElement {
130    extern_methods!(
131        #[cfg(feature = "WebFrame")]
132        /// The content frame of the element.
133        ///
134        /// Returns non-nil only if the object represents a child frame
135        /// such as if the data of the object is HTML content.
136        #[deprecated]
137        #[unsafe(method(contentFrame))]
138        #[unsafe(method_family = none)]
139        pub unsafe fn contentFrame(&self) -> Option<Retained<WebFrame>>;
140    );
141}