objc2_web_kit/generated/
DOMDocument.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domdocument?language=objc)
12    #[unsafe(super(DOMNode, DOMObject, WebScriptObject, NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    #[cfg(all(
15        feature = "DOMNode",
16        feature = "DOMObject",
17        feature = "WebScriptObject"
18    ))]
19    #[deprecated]
20    pub struct DOMDocument;
21);
22
23#[cfg(all(
24    feature = "DOMEventTarget",
25    feature = "DOMNode",
26    feature = "DOMObject",
27    feature = "WebScriptObject"
28))]
29unsafe impl DOMEventTarget for DOMDocument {}
30
31#[cfg(all(
32    feature = "DOMNode",
33    feature = "DOMObject",
34    feature = "WebScriptObject"
35))]
36unsafe impl NSCopying for DOMDocument {}
37
38#[cfg(all(
39    feature = "DOMNode",
40    feature = "DOMObject",
41    feature = "WebScriptObject"
42))]
43unsafe impl CopyingHelper for DOMDocument {
44    type Result = Self;
45}
46
47#[cfg(all(
48    feature = "DOMNode",
49    feature = "DOMObject",
50    feature = "WebScriptObject"
51))]
52unsafe impl NSObjectProtocol for DOMDocument {}
53
54#[cfg(all(
55    feature = "DOMNode",
56    feature = "DOMObject",
57    feature = "WebScriptObject"
58))]
59impl DOMDocument {
60    extern_methods!(
61        #[cfg(feature = "DOMDocumentType")]
62        #[deprecated]
63        #[unsafe(method(doctype))]
64        #[unsafe(method_family = none)]
65        pub unsafe fn doctype(&self) -> Option<Retained<DOMDocumentType>>;
66
67        #[cfg(feature = "DOMImplementation")]
68        #[deprecated]
69        #[unsafe(method(implementation))]
70        #[unsafe(method_family = none)]
71        pub unsafe fn implementation(&self) -> Option<Retained<DOMImplementation>>;
72
73        #[cfg(feature = "DOMElement")]
74        #[deprecated]
75        #[unsafe(method(documentElement))]
76        #[unsafe(method_family = none)]
77        pub unsafe fn documentElement(&self) -> Option<Retained<DOMElement>>;
78
79        #[unsafe(method(inputEncoding))]
80        #[unsafe(method_family = none)]
81        pub unsafe fn inputEncoding(&self) -> Retained<NSString>;
82
83        #[unsafe(method(xmlEncoding))]
84        #[unsafe(method_family = none)]
85        pub unsafe fn xmlEncoding(&self) -> Retained<NSString>;
86
87        #[unsafe(method(xmlVersion))]
88        #[unsafe(method_family = none)]
89        pub unsafe fn xmlVersion(&self) -> Retained<NSString>;
90
91        /// Setter for [`xmlVersion`][Self::xmlVersion].
92        #[unsafe(method(setXmlVersion:))]
93        #[unsafe(method_family = none)]
94        pub unsafe fn setXmlVersion(&self, xml_version: Option<&NSString>);
95
96        #[unsafe(method(xmlStandalone))]
97        #[unsafe(method_family = none)]
98        pub unsafe fn xmlStandalone(&self) -> bool;
99
100        /// Setter for [`xmlStandalone`][Self::xmlStandalone].
101        #[unsafe(method(setXmlStandalone:))]
102        #[unsafe(method_family = none)]
103        pub unsafe fn setXmlStandalone(&self, xml_standalone: bool);
104
105        #[unsafe(method(documentURI))]
106        #[unsafe(method_family = none)]
107        pub unsafe fn documentURI(&self) -> Retained<NSString>;
108
109        /// Setter for [`documentURI`][Self::documentURI].
110        #[unsafe(method(setDocumentURI:))]
111        #[unsafe(method_family = none)]
112        pub unsafe fn setDocumentURI(&self, document_uri: Option<&NSString>);
113
114        #[cfg(feature = "DOMAbstractView")]
115        #[deprecated]
116        #[unsafe(method(defaultView))]
117        #[unsafe(method_family = none)]
118        pub unsafe fn defaultView(&self) -> Option<Retained<DOMAbstractView>>;
119
120        #[cfg(feature = "DOMStyleSheetList")]
121        #[deprecated]
122        #[unsafe(method(styleSheets))]
123        #[unsafe(method_family = none)]
124        pub unsafe fn styleSheets(&self) -> Option<Retained<DOMStyleSheetList>>;
125
126        #[deprecated]
127        #[unsafe(method(title))]
128        #[unsafe(method_family = none)]
129        pub unsafe fn title(&self) -> Retained<NSString>;
130
131        /// Setter for [`title`][Self::title].
132        #[deprecated]
133        #[unsafe(method(setTitle:))]
134        #[unsafe(method_family = none)]
135        pub unsafe fn setTitle(&self, title: Option<&NSString>);
136
137        #[deprecated]
138        #[unsafe(method(referrer))]
139        #[unsafe(method_family = none)]
140        pub unsafe fn referrer(&self) -> Retained<NSString>;
141
142        #[deprecated]
143        #[unsafe(method(domain))]
144        #[unsafe(method_family = none)]
145        pub unsafe fn domain(&self) -> Retained<NSString>;
146
147        #[deprecated]
148        #[unsafe(method(URL))]
149        #[unsafe(method_family = none)]
150        pub unsafe fn URL(&self) -> Retained<NSString>;
151
152        #[deprecated]
153        #[unsafe(method(cookie))]
154        #[unsafe(method_family = none)]
155        pub unsafe fn cookie(&self) -> Retained<NSString>;
156
157        /// Setter for [`cookie`][Self::cookie].
158        #[deprecated]
159        #[unsafe(method(setCookie:))]
160        #[unsafe(method_family = none)]
161        pub unsafe fn setCookie(&self, cookie: Option<&NSString>);
162
163        #[cfg(all(feature = "DOMElement", feature = "DOMHTMLElement"))]
164        #[deprecated]
165        #[unsafe(method(body))]
166        #[unsafe(method_family = none)]
167        pub unsafe fn body(&self) -> Option<Retained<DOMHTMLElement>>;
168
169        #[cfg(all(feature = "DOMElement", feature = "DOMHTMLElement"))]
170        /// Setter for [`body`][Self::body].
171        #[deprecated]
172        #[unsafe(method(setBody:))]
173        #[unsafe(method_family = none)]
174        pub unsafe fn setBody(&self, body: Option<&DOMHTMLElement>);
175
176        #[cfg(feature = "DOMHTMLCollection")]
177        #[deprecated]
178        #[unsafe(method(images))]
179        #[unsafe(method_family = none)]
180        pub unsafe fn images(&self) -> Option<Retained<DOMHTMLCollection>>;
181
182        #[cfg(feature = "DOMHTMLCollection")]
183        #[deprecated]
184        #[unsafe(method(applets))]
185        #[unsafe(method_family = none)]
186        pub unsafe fn applets(&self) -> Option<Retained<DOMHTMLCollection>>;
187
188        #[cfg(feature = "DOMHTMLCollection")]
189        #[deprecated]
190        #[unsafe(method(links))]
191        #[unsafe(method_family = none)]
192        pub unsafe fn links(&self) -> Option<Retained<DOMHTMLCollection>>;
193
194        #[cfg(feature = "DOMHTMLCollection")]
195        #[deprecated]
196        #[unsafe(method(forms))]
197        #[unsafe(method_family = none)]
198        pub unsafe fn forms(&self) -> Option<Retained<DOMHTMLCollection>>;
199
200        #[cfg(feature = "DOMHTMLCollection")]
201        #[deprecated]
202        #[unsafe(method(anchors))]
203        #[unsafe(method_family = none)]
204        pub unsafe fn anchors(&self) -> Option<Retained<DOMHTMLCollection>>;
205
206        #[unsafe(method(lastModified))]
207        #[unsafe(method_family = none)]
208        pub unsafe fn lastModified(&self) -> Retained<NSString>;
209
210        #[unsafe(method(charset))]
211        #[unsafe(method_family = none)]
212        pub unsafe fn charset(&self) -> Retained<NSString>;
213
214        /// Setter for [`charset`][Self::charset].
215        #[unsafe(method(setCharset:))]
216        #[unsafe(method_family = none)]
217        pub unsafe fn setCharset(&self, charset: Option<&NSString>);
218
219        #[unsafe(method(defaultCharset))]
220        #[unsafe(method_family = none)]
221        pub unsafe fn defaultCharset(&self) -> Retained<NSString>;
222
223        #[unsafe(method(readyState))]
224        #[unsafe(method_family = none)]
225        pub unsafe fn readyState(&self) -> Retained<NSString>;
226
227        #[unsafe(method(characterSet))]
228        #[unsafe(method_family = none)]
229        pub unsafe fn characterSet(&self) -> Retained<NSString>;
230
231        #[unsafe(method(preferredStylesheetSet))]
232        #[unsafe(method_family = none)]
233        pub unsafe fn preferredStylesheetSet(&self) -> Retained<NSString>;
234
235        #[unsafe(method(selectedStylesheetSet))]
236        #[unsafe(method_family = none)]
237        pub unsafe fn selectedStylesheetSet(&self) -> Retained<NSString>;
238
239        /// Setter for [`selectedStylesheetSet`][Self::selectedStylesheetSet].
240        #[unsafe(method(setSelectedStylesheetSet:))]
241        #[unsafe(method_family = none)]
242        pub unsafe fn setSelectedStylesheetSet(&self, selected_stylesheet_set: Option<&NSString>);
243
244        #[cfg(feature = "DOMElement")]
245        #[unsafe(method(activeElement))]
246        #[unsafe(method_family = none)]
247        pub unsafe fn activeElement(&self) -> Option<Retained<DOMElement>>;
248
249        #[cfg(feature = "DOMElement")]
250        #[deprecated]
251        #[unsafe(method(createElement:))]
252        #[unsafe(method_family = none)]
253        pub unsafe fn createElement(
254            &self,
255            tag_name: Option<&NSString>,
256        ) -> Option<Retained<DOMElement>>;
257
258        #[cfg(feature = "DOMDocumentFragment")]
259        #[deprecated]
260        #[unsafe(method(createDocumentFragment))]
261        #[unsafe(method_family = none)]
262        pub unsafe fn createDocumentFragment(&self) -> Option<Retained<DOMDocumentFragment>>;
263
264        #[cfg(all(feature = "DOMCharacterData", feature = "DOMText"))]
265        #[deprecated]
266        #[unsafe(method(createTextNode:))]
267        #[unsafe(method_family = none)]
268        pub unsafe fn createTextNode(&self, data: Option<&NSString>) -> Option<Retained<DOMText>>;
269
270        #[cfg(all(feature = "DOMCharacterData", feature = "DOMComment"))]
271        #[deprecated]
272        #[unsafe(method(createComment:))]
273        #[unsafe(method_family = none)]
274        pub unsafe fn createComment(&self, data: Option<&NSString>)
275            -> Option<Retained<DOMComment>>;
276
277        #[cfg(all(
278            feature = "DOMCDATASection",
279            feature = "DOMCharacterData",
280            feature = "DOMText"
281        ))]
282        #[deprecated]
283        #[unsafe(method(createCDATASection:))]
284        #[unsafe(method_family = none)]
285        pub unsafe fn createCDATASection(
286            &self,
287            data: Option<&NSString>,
288        ) -> Option<Retained<DOMCDATASection>>;
289
290        #[cfg(all(feature = "DOMCharacterData", feature = "DOMProcessingInstruction"))]
291        #[unsafe(method(createProcessingInstruction:data:))]
292        #[unsafe(method_family = none)]
293        pub unsafe fn createProcessingInstruction_data(
294            &self,
295            target: Option<&NSString>,
296            data: Option<&NSString>,
297        ) -> Option<Retained<DOMProcessingInstruction>>;
298
299        #[cfg(feature = "DOMAttr")]
300        #[deprecated]
301        #[unsafe(method(createAttribute:))]
302        #[unsafe(method_family = none)]
303        pub unsafe fn createAttribute(&self, name: Option<&NSString>) -> Option<Retained<DOMAttr>>;
304
305        #[cfg(feature = "DOMEntityReference")]
306        #[deprecated]
307        #[unsafe(method(createEntityReference:))]
308        #[unsafe(method_family = none)]
309        pub unsafe fn createEntityReference(
310            &self,
311            name: Option<&NSString>,
312        ) -> Option<Retained<DOMEntityReference>>;
313
314        #[cfg(feature = "DOMNodeList")]
315        #[deprecated]
316        #[unsafe(method(getElementsByTagName:))]
317        #[unsafe(method_family = none)]
318        pub unsafe fn getElementsByTagName(
319            &self,
320            tagname: Option<&NSString>,
321        ) -> Option<Retained<DOMNodeList>>;
322
323        #[unsafe(method(importNode:deep:))]
324        #[unsafe(method_family = none)]
325        pub unsafe fn importNode_deep(
326            &self,
327            imported_node: Option<&DOMNode>,
328            deep: bool,
329        ) -> Option<Retained<DOMNode>>;
330
331        #[cfg(feature = "DOMElement")]
332        #[unsafe(method(createElementNS:qualifiedName:))]
333        #[unsafe(method_family = none)]
334        pub unsafe fn createElementNS_qualifiedName(
335            &self,
336            namespace_uri: Option<&NSString>,
337            qualified_name: Option<&NSString>,
338        ) -> Option<Retained<DOMElement>>;
339
340        #[cfg(feature = "DOMAttr")]
341        #[unsafe(method(createAttributeNS:qualifiedName:))]
342        #[unsafe(method_family = none)]
343        pub unsafe fn createAttributeNS_qualifiedName(
344            &self,
345            namespace_uri: Option<&NSString>,
346            qualified_name: Option<&NSString>,
347        ) -> Option<Retained<DOMAttr>>;
348
349        #[cfg(feature = "DOMNodeList")]
350        #[unsafe(method(getElementsByTagNameNS:localName:))]
351        #[unsafe(method_family = none)]
352        pub unsafe fn getElementsByTagNameNS_localName(
353            &self,
354            namespace_uri: Option<&NSString>,
355            local_name: Option<&NSString>,
356        ) -> Option<Retained<DOMNodeList>>;
357
358        #[unsafe(method(adoptNode:))]
359        #[unsafe(method_family = none)]
360        pub unsafe fn adoptNode(&self, source: Option<&DOMNode>) -> Option<Retained<DOMNode>>;
361
362        #[cfg(feature = "DOMEvent")]
363        #[deprecated]
364        #[unsafe(method(createEvent:))]
365        #[unsafe(method_family = none)]
366        pub unsafe fn createEvent(
367            &self,
368            event_type: Option<&NSString>,
369        ) -> Option<Retained<DOMEvent>>;
370
371        #[cfg(feature = "DOMRange")]
372        #[deprecated]
373        #[unsafe(method(createRange))]
374        #[unsafe(method_family = none)]
375        pub unsafe fn createRange(&self) -> Option<Retained<DOMRange>>;
376
377        #[cfg(all(feature = "DOMNodeFilter", feature = "DOMNodeIterator"))]
378        #[unsafe(method(createNodeIterator:whatToShow:filter:expandEntityReferences:))]
379        #[unsafe(method_family = none)]
380        pub unsafe fn createNodeIterator_whatToShow_filter_expandEntityReferences(
381            &self,
382            root: Option<&DOMNode>,
383            what_to_show: c_uint,
384            filter: Option<&ProtocolObject<dyn DOMNodeFilter>>,
385            expand_entity_references: bool,
386        ) -> Option<Retained<DOMNodeIterator>>;
387
388        #[cfg(all(feature = "DOMNodeFilter", feature = "DOMTreeWalker"))]
389        #[unsafe(method(createTreeWalker:whatToShow:filter:expandEntityReferences:))]
390        #[unsafe(method_family = none)]
391        pub unsafe fn createTreeWalker_whatToShow_filter_expandEntityReferences(
392            &self,
393            root: Option<&DOMNode>,
394            what_to_show: c_uint,
395            filter: Option<&ProtocolObject<dyn DOMNodeFilter>>,
396            expand_entity_references: bool,
397        ) -> Option<Retained<DOMTreeWalker>>;
398
399        #[cfg(all(feature = "DOMCSSStyleDeclaration", feature = "DOMElement"))]
400        #[unsafe(method(getOverrideStyle:pseudoElement:))]
401        #[unsafe(method_family = none)]
402        pub unsafe fn getOverrideStyle_pseudoElement(
403            &self,
404            element: Option<&DOMElement>,
405            pseudo_element: Option<&NSString>,
406        ) -> Option<Retained<DOMCSSStyleDeclaration>>;
407
408        #[cfg(all(feature = "DOMXPathExpression", feature = "DOMXPathNSResolver"))]
409        #[unsafe(method(createExpression:resolver:))]
410        #[unsafe(method_family = none)]
411        pub unsafe fn createExpression_resolver(
412            &self,
413            expression: Option<&NSString>,
414            resolver: Option<&ProtocolObject<dyn DOMXPathNSResolver>>,
415        ) -> Option<Retained<DOMXPathExpression>>;
416
417        #[cfg(feature = "DOMXPathNSResolver")]
418        #[unsafe(method(createNSResolver:))]
419        #[unsafe(method_family = none)]
420        pub unsafe fn createNSResolver(
421            &self,
422            node_resolver: Option<&DOMNode>,
423        ) -> Option<Retained<ProtocolObject<dyn DOMXPathNSResolver>>>;
424
425        #[cfg(all(feature = "DOMXPathNSResolver", feature = "DOMXPathResult"))]
426        #[unsafe(method(evaluate:contextNode:resolver:type:inResult:))]
427        #[unsafe(method_family = none)]
428        pub unsafe fn evaluate_contextNode_resolver_type_inResult(
429            &self,
430            expression: Option<&NSString>,
431            context_node: Option<&DOMNode>,
432            resolver: Option<&ProtocolObject<dyn DOMXPathNSResolver>>,
433            r#type: c_ushort,
434            in_result: Option<&DOMXPathResult>,
435        ) -> Option<Retained<DOMXPathResult>>;
436
437        #[unsafe(method(execCommand:userInterface:value:))]
438        #[unsafe(method_family = none)]
439        pub unsafe fn execCommand_userInterface_value(
440            &self,
441            command: Option<&NSString>,
442            user_interface: bool,
443            value: Option<&NSString>,
444        ) -> bool;
445
446        #[unsafe(method(execCommand:userInterface:))]
447        #[unsafe(method_family = none)]
448        pub unsafe fn execCommand_userInterface(
449            &self,
450            command: Option<&NSString>,
451            user_interface: bool,
452        ) -> bool;
453
454        #[unsafe(method(execCommand:))]
455        #[unsafe(method_family = none)]
456        pub unsafe fn execCommand(&self, command: Option<&NSString>) -> bool;
457
458        #[unsafe(method(queryCommandEnabled:))]
459        #[unsafe(method_family = none)]
460        pub unsafe fn queryCommandEnabled(&self, command: Option<&NSString>) -> bool;
461
462        #[unsafe(method(queryCommandIndeterm:))]
463        #[unsafe(method_family = none)]
464        pub unsafe fn queryCommandIndeterm(&self, command: Option<&NSString>) -> bool;
465
466        #[unsafe(method(queryCommandState:))]
467        #[unsafe(method_family = none)]
468        pub unsafe fn queryCommandState(&self, command: Option<&NSString>) -> bool;
469
470        #[unsafe(method(queryCommandSupported:))]
471        #[unsafe(method_family = none)]
472        pub unsafe fn queryCommandSupported(&self, command: Option<&NSString>) -> bool;
473
474        #[unsafe(method(queryCommandValue:))]
475        #[unsafe(method_family = none)]
476        pub unsafe fn queryCommandValue(
477            &self,
478            command: Option<&NSString>,
479        ) -> Option<Retained<NSString>>;
480
481        #[cfg(feature = "DOMNodeList")]
482        #[deprecated]
483        #[unsafe(method(getElementsByName:))]
484        #[unsafe(method_family = none)]
485        pub unsafe fn getElementsByName(
486            &self,
487            element_name: Option<&NSString>,
488        ) -> Option<Retained<DOMNodeList>>;
489
490        #[cfg(feature = "DOMElement")]
491        #[unsafe(method(elementFromPoint:y:))]
492        #[unsafe(method_family = none)]
493        pub unsafe fn elementFromPoint_y(&self, x: c_int, y: c_int)
494            -> Option<Retained<DOMElement>>;
495
496        #[cfg(feature = "DOMCSSStyleDeclaration")]
497        #[unsafe(method(createCSSStyleDeclaration))]
498        #[unsafe(method_family = none)]
499        pub unsafe fn createCSSStyleDeclaration(&self) -> Option<Retained<DOMCSSStyleDeclaration>>;
500
501        #[cfg(all(feature = "DOMCSSStyleDeclaration", feature = "DOMElement"))]
502        #[unsafe(method(getComputedStyle:pseudoElement:))]
503        #[unsafe(method_family = none)]
504        pub unsafe fn getComputedStyle_pseudoElement(
505            &self,
506            element: Option<&DOMElement>,
507            pseudo_element: Option<&NSString>,
508        ) -> Option<Retained<DOMCSSStyleDeclaration>>;
509
510        #[cfg(all(feature = "DOMCSSRuleList", feature = "DOMElement"))]
511        #[unsafe(method(getMatchedCSSRules:pseudoElement:))]
512        #[unsafe(method_family = none)]
513        pub unsafe fn getMatchedCSSRules_pseudoElement(
514            &self,
515            element: Option<&DOMElement>,
516            pseudo_element: Option<&NSString>,
517        ) -> Option<Retained<DOMCSSRuleList>>;
518
519        #[cfg(all(feature = "DOMCSSRuleList", feature = "DOMElement"))]
520        #[unsafe(method(getMatchedCSSRules:pseudoElement:authorOnly:))]
521        #[unsafe(method_family = none)]
522        pub unsafe fn getMatchedCSSRules_pseudoElement_authorOnly(
523            &self,
524            element: Option<&DOMElement>,
525            pseudo_element: Option<&NSString>,
526            author_only: bool,
527        ) -> Option<Retained<DOMCSSRuleList>>;
528
529        #[cfg(feature = "DOMNodeList")]
530        #[unsafe(method(getElementsByClassName:))]
531        #[unsafe(method_family = none)]
532        pub unsafe fn getElementsByClassName(
533            &self,
534            class_names: Option<&NSString>,
535        ) -> Option<Retained<DOMNodeList>>;
536
537        #[unsafe(method(hasFocus))]
538        #[unsafe(method_family = none)]
539        pub unsafe fn hasFocus(&self) -> bool;
540
541        #[unsafe(method(webkitCancelFullScreen))]
542        #[unsafe(method_family = none)]
543        pub unsafe fn webkitCancelFullScreen(&self);
544
545        #[cfg(feature = "DOMElement")]
546        #[deprecated]
547        #[unsafe(method(getElementById:))]
548        #[unsafe(method_family = none)]
549        pub unsafe fn getElementById(
550            &self,
551            element_id: Option<&NSString>,
552        ) -> Option<Retained<DOMElement>>;
553
554        #[cfg(feature = "DOMElement")]
555        #[unsafe(method(querySelector:))]
556        #[unsafe(method_family = none)]
557        pub unsafe fn querySelector(
558            &self,
559            selectors: Option<&NSString>,
560        ) -> Option<Retained<DOMElement>>;
561
562        #[cfg(feature = "DOMNodeList")]
563        #[unsafe(method(querySelectorAll:))]
564        #[unsafe(method_family = none)]
565        pub unsafe fn querySelectorAll(
566            &self,
567            selectors: Option<&NSString>,
568        ) -> Option<Retained<DOMNodeList>>;
569    );
570}
571
572/// Methods declared on superclass `DOMObject`.
573#[cfg(all(
574    feature = "DOMNode",
575    feature = "DOMObject",
576    feature = "WebScriptObject"
577))]
578impl DOMDocument {
579    extern_methods!(
580        #[deprecated]
581        #[unsafe(method(init))]
582        #[unsafe(method_family = init)]
583        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
584    );
585}
586
587/// Methods declared on superclass `NSObject`.
588#[cfg(all(
589    feature = "DOMNode",
590    feature = "DOMObject",
591    feature = "WebScriptObject"
592))]
593impl DOMDocument {
594    extern_methods!(
595        #[unsafe(method(new))]
596        #[unsafe(method_family = new)]
597        pub unsafe fn new() -> Retained<Self>;
598    );
599}
600
601/// DOMDocumentDeprecated.
602#[cfg(all(
603    feature = "DOMNode",
604    feature = "DOMObject",
605    feature = "WebScriptObject"
606))]
607impl DOMDocument {
608    extern_methods!(
609        #[cfg(all(feature = "DOMCharacterData", feature = "DOMProcessingInstruction"))]
610        #[deprecated]
611        #[unsafe(method(createProcessingInstruction::))]
612        #[unsafe(method_family = none)]
613        pub unsafe fn createProcessingInstruction(
614            &self,
615            target: Option<&NSString>,
616            data: Option<&NSString>,
617        ) -> Option<Retained<DOMProcessingInstruction>>;
618
619        #[deprecated]
620        #[unsafe(method(importNode::))]
621        #[unsafe(method_family = none)]
622        pub unsafe fn importNode(
623            &self,
624            imported_node: Option<&DOMNode>,
625            deep: bool,
626        ) -> Option<Retained<DOMNode>>;
627
628        #[cfg(feature = "DOMElement")]
629        #[deprecated]
630        #[unsafe(method(createElementNS::))]
631        #[unsafe(method_family = none)]
632        pub unsafe fn createElementNS(
633            &self,
634            namespace_uri: Option<&NSString>,
635            qualified_name: Option<&NSString>,
636        ) -> Option<Retained<DOMElement>>;
637
638        #[cfg(feature = "DOMAttr")]
639        #[deprecated]
640        #[unsafe(method(createAttributeNS::))]
641        #[unsafe(method_family = none)]
642        pub unsafe fn createAttributeNS(
643            &self,
644            namespace_uri: Option<&NSString>,
645            qualified_name: Option<&NSString>,
646        ) -> Option<Retained<DOMAttr>>;
647
648        #[cfg(feature = "DOMNodeList")]
649        #[deprecated]
650        #[unsafe(method(getElementsByTagNameNS::))]
651        #[unsafe(method_family = none)]
652        pub unsafe fn getElementsByTagNameNS(
653            &self,
654            namespace_uri: Option<&NSString>,
655            local_name: Option<&NSString>,
656        ) -> Option<Retained<DOMNodeList>>;
657
658        #[cfg(all(feature = "DOMNodeFilter", feature = "DOMNodeIterator"))]
659        #[deprecated]
660        #[unsafe(method(createNodeIterator::::))]
661        #[unsafe(method_family = none)]
662        pub unsafe fn createNodeIterator(
663            &self,
664            root: Option<&DOMNode>,
665            what_to_show: c_uint,
666            filter: Option<&ProtocolObject<dyn DOMNodeFilter>>,
667            expand_entity_references: bool,
668        ) -> Option<Retained<DOMNodeIterator>>;
669
670        #[cfg(all(feature = "DOMNodeFilter", feature = "DOMTreeWalker"))]
671        #[deprecated]
672        #[unsafe(method(createTreeWalker::::))]
673        #[unsafe(method_family = none)]
674        pub unsafe fn createTreeWalker(
675            &self,
676            root: Option<&DOMNode>,
677            what_to_show: c_uint,
678            filter: Option<&ProtocolObject<dyn DOMNodeFilter>>,
679            expand_entity_references: bool,
680        ) -> Option<Retained<DOMTreeWalker>>;
681
682        #[cfg(all(feature = "DOMCSSStyleDeclaration", feature = "DOMElement"))]
683        #[deprecated]
684        #[unsafe(method(getOverrideStyle::))]
685        #[unsafe(method_family = none)]
686        pub unsafe fn getOverrideStyle(
687            &self,
688            element: Option<&DOMElement>,
689            pseudo_element: Option<&NSString>,
690        ) -> Option<Retained<DOMCSSStyleDeclaration>>;
691
692        #[cfg(all(feature = "DOMXPathExpression", feature = "DOMXPathNSResolver"))]
693        #[deprecated]
694        #[unsafe(method(createExpression::))]
695        #[unsafe(method_family = none)]
696        pub unsafe fn createExpression(
697            &self,
698            expression: Option<&NSString>,
699            resolver: Option<&ProtocolObject<dyn DOMXPathNSResolver>>,
700        ) -> Option<Retained<DOMXPathExpression>>;
701
702        #[cfg(all(feature = "DOMXPathNSResolver", feature = "DOMXPathResult"))]
703        #[deprecated]
704        #[unsafe(method(evaluate:::::))]
705        #[unsafe(method_family = none)]
706        pub unsafe fn evaluate(
707            &self,
708            expression: Option<&NSString>,
709            context_node: Option<&DOMNode>,
710            resolver: Option<&ProtocolObject<dyn DOMXPathNSResolver>>,
711            r#type: c_ushort,
712            in_result: Option<&DOMXPathResult>,
713        ) -> Option<Retained<DOMXPathResult>>;
714
715        #[cfg(all(feature = "DOMCSSStyleDeclaration", feature = "DOMElement"))]
716        #[deprecated]
717        #[unsafe(method(getComputedStyle::))]
718        #[unsafe(method_family = none)]
719        pub unsafe fn getComputedStyle(
720            &self,
721            element: Option<&DOMElement>,
722            pseudo_element: Option<&NSString>,
723        ) -> Option<Retained<DOMCSSStyleDeclaration>>;
724    );
725}