Skip to content

Commit 7831ae8

Browse files
committed
Add WebKit bindings
1 parent dca2631 commit 7831ae8

File tree

199 files changed

+16032
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+16032
-0
lines changed

WebKit/DOM.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//! This file has been automatically generated by `objc2`'s `header-translator`.
2+
//! DO NOT EDIT
3+
use crate::common::*;
4+
use crate::AppKit::*;
5+
use crate::Foundation::*;
6+
use crate::WebKit::*;

WebKit/DOMAbstractView.rs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//! This file has been automatically generated by `objc2`'s `header-translator`.
2+
//! DO NOT EDIT
3+
use crate::common::*;
4+
use crate::AppKit::*;
5+
use crate::Foundation::*;
6+
use crate::WebKit::*;
7+
8+
extern_class!(
9+
#[derive(Debug, PartialEq, Eq, Hash)]
10+
#[cfg(feature = "WebKit_DOMAbstractView")]
11+
#[deprecated]
12+
pub struct DOMAbstractView;
13+
14+
#[cfg(feature = "WebKit_DOMAbstractView")]
15+
unsafe impl ClassType for DOMAbstractView {
16+
#[inherits(WebScriptObject, NSObject)]
17+
type Super = DOMObject;
18+
}
19+
);
20+
21+
extern_methods!(
22+
#[cfg(feature = "WebKit_DOMAbstractView")]
23+
unsafe impl DOMAbstractView {
24+
#[cfg(feature = "WebKit_DOMDocument")]
25+
#[method_id(@__retain_semantics Other document)]
26+
pub unsafe fn document(&self) -> Option<Id<DOMDocument, Shared>>;
27+
}
28+
);

WebKit/DOMAttr.rs

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
//! This file has been automatically generated by `objc2`'s `header-translator`.
2+
//! DO NOT EDIT
3+
use crate::common::*;
4+
use crate::AppKit::*;
5+
use crate::Foundation::*;
6+
use crate::WebKit::*;
7+
8+
extern_class!(
9+
#[derive(Debug, PartialEq, Eq, Hash)]
10+
#[cfg(feature = "WebKit_DOMAttr")]
11+
#[deprecated]
12+
pub struct DOMAttr;
13+
14+
#[cfg(feature = "WebKit_DOMAttr")]
15+
unsafe impl ClassType for DOMAttr {
16+
#[inherits(DOMObject, WebScriptObject, NSObject)]
17+
type Super = DOMNode;
18+
}
19+
);
20+
21+
extern_methods!(
22+
#[cfg(feature = "WebKit_DOMAttr")]
23+
unsafe impl DOMAttr {
24+
#[cfg(feature = "Foundation_NSString")]
25+
#[method_id(@__retain_semantics Other name)]
26+
pub unsafe fn name(&self) -> Id<NSString, Shared>;
27+
28+
#[method(specified)]
29+
pub unsafe fn specified(&self) -> bool;
30+
31+
#[cfg(feature = "Foundation_NSString")]
32+
#[method_id(@__retain_semantics Other value)]
33+
pub unsafe fn value(&self) -> Id<NSString, Shared>;
34+
35+
#[cfg(feature = "Foundation_NSString")]
36+
#[method(setValue:)]
37+
pub unsafe fn setValue(&self, value: Option<&NSString>);
38+
39+
#[cfg(feature = "WebKit_DOMElement")]
40+
#[method_id(@__retain_semantics Other ownerElement)]
41+
pub unsafe fn ownerElement(&self) -> Option<Id<DOMElement, Shared>>;
42+
43+
#[cfg(feature = "WebKit_DOMCSSStyleDeclaration")]
44+
#[method_id(@__retain_semantics Other style)]
45+
pub unsafe fn style(&self) -> Option<Id<DOMCSSStyleDeclaration, Shared>>;
46+
}
47+
);

WebKit/DOMBlob.rs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//! This file has been automatically generated by `objc2`'s `header-translator`.
2+
//! DO NOT EDIT
3+
use crate::common::*;
4+
use crate::AppKit::*;
5+
use crate::Foundation::*;
6+
use crate::WebKit::*;
7+
8+
extern_class!(
9+
#[derive(Debug, PartialEq, Eq, Hash)]
10+
#[cfg(feature = "WebKit_DOMBlob")]
11+
#[deprecated]
12+
pub struct DOMBlob;
13+
14+
#[cfg(feature = "WebKit_DOMBlob")]
15+
unsafe impl ClassType for DOMBlob {
16+
#[inherits(WebScriptObject, NSObject)]
17+
type Super = DOMObject;
18+
}
19+
);
20+
21+
extern_methods!(
22+
#[cfg(feature = "WebKit_DOMBlob")]
23+
unsafe impl DOMBlob {
24+
#[method(size)]
25+
pub unsafe fn size(&self) -> c_ulonglong;
26+
}
27+
);

WebKit/DOMCDATASection.rs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//! This file has been automatically generated by `objc2`'s `header-translator`.
2+
//! DO NOT EDIT
3+
use crate::common::*;
4+
use crate::AppKit::*;
5+
use crate::Foundation::*;
6+
use crate::WebKit::*;
7+
8+
extern_class!(
9+
#[derive(Debug, PartialEq, Eq, Hash)]
10+
#[cfg(feature = "WebKit_DOMCDATASection")]
11+
#[deprecated]
12+
pub struct DOMCDATASection;
13+
14+
#[cfg(feature = "WebKit_DOMCDATASection")]
15+
unsafe impl ClassType for DOMCDATASection {
16+
#[inherits(DOMCharacterData, DOMNode, DOMObject, WebScriptObject, NSObject)]
17+
type Super = DOMText;
18+
}
19+
);
20+
21+
extern_methods!(
22+
#[cfg(feature = "WebKit_DOMCDATASection")]
23+
unsafe impl DOMCDATASection {}
24+
);

0 commit comments

Comments
 (0)