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
55
56
use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::WebKit::*;
extern_enum!(
#[underlying(c_uint)]
#[deprecated]
pub enum __anonymous__ {
#[deprecated]
DOM_FILTER_ACCEPT = 1,
#[deprecated]
DOM_FILTER_REJECT = 2,
#[deprecated]
DOM_FILTER_SKIP = 3,
#[deprecated]
DOM_SHOW_ALL = 0xFFFFFFFF,
#[deprecated]
DOM_SHOW_ELEMENT = 0x00000001,
#[deprecated]
DOM_SHOW_ATTRIBUTE = 0x00000002,
#[deprecated]
DOM_SHOW_TEXT = 0x00000004,
#[deprecated]
DOM_SHOW_CDATA_SECTION = 0x00000008,
#[deprecated]
DOM_SHOW_ENTITY_REFERENCE = 0x00000010,
#[deprecated]
DOM_SHOW_ENTITY = 0x00000020,
#[deprecated]
DOM_SHOW_PROCESSING_INSTRUCTION = 0x00000040,
#[deprecated]
DOM_SHOW_COMMENT = 0x00000080,
#[deprecated]
DOM_SHOW_DOCUMENT = 0x00000100,
#[deprecated]
DOM_SHOW_DOCUMENT_TYPE = 0x00000200,
#[deprecated]
DOM_SHOW_DOCUMENT_FRAGMENT = 0x00000400,
#[deprecated]
DOM_SHOW_NOTATION = 0x00000800,
}
);
extern_protocol!(
#[deprecated]
pub unsafe trait DOMNodeFilter: NSObjectProtocol {
#[cfg(feature = "WebKit_DOMNode")]
#[method(acceptNode:)]
unsafe fn acceptNode(&self, n: Option<&DOMNode>) -> c_short;
}
unsafe impl ProtocolType for dyn DOMNodeFilter {}
);