1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;

use crate::*;

#[deprecated]
pub const DOM_FILTER_ACCEPT: c_uint = 1;
#[deprecated]
pub const DOM_FILTER_REJECT: c_uint = 2;
#[deprecated]
pub const DOM_FILTER_SKIP: c_uint = 3;
#[deprecated]
pub const DOM_SHOW_ALL: c_uint = 0xFFFFFFFF;
#[deprecated]
pub const DOM_SHOW_ELEMENT: c_uint = 0x00000001;
#[deprecated]
pub const DOM_SHOW_ATTRIBUTE: c_uint = 0x00000002;
#[deprecated]
pub const DOM_SHOW_TEXT: c_uint = 0x00000004;
#[deprecated]
pub const DOM_SHOW_CDATA_SECTION: c_uint = 0x00000008;
#[deprecated]
pub const DOM_SHOW_ENTITY_REFERENCE: c_uint = 0x00000010;
#[deprecated]
pub const DOM_SHOW_ENTITY: c_uint = 0x00000020;
#[deprecated]
pub const DOM_SHOW_PROCESSING_INSTRUCTION: c_uint = 0x00000040;
#[deprecated]
pub const DOM_SHOW_COMMENT: c_uint = 0x00000080;
#[deprecated]
pub const DOM_SHOW_DOCUMENT: c_uint = 0x00000100;
#[deprecated]
pub const DOM_SHOW_DOCUMENT_TYPE: c_uint = 0x00000200;
#[deprecated]
pub const DOM_SHOW_DOCUMENT_FRAGMENT: c_uint = 0x00000400;
#[deprecated]
pub const DOM_SHOW_NOTATION: c_uint = 0x00000800;

extern_protocol!(
    #[deprecated]
    pub unsafe trait DOMNodeFilter: NSObjectProtocol {
        #[cfg(all(
            feature = "DOMNode",
            feature = "DOMObject",
            feature = "WebScriptObject"
        ))]
        #[deprecated]
        #[method(acceptNode:)]
        unsafe fn acceptNode(&self, n: Option<&DOMNode>) -> c_short;
    }

    unsafe impl ProtocolType for dyn DOMNodeFilter {}
);