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