objc2_web_kit/
lib.rs

1//! # Bindings to the `WebKit` framework
2//!
3//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information.
4//!
5//! [apple-doc]: https://developer.apple.com/documentation/webkit/
6//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html
7//!
8//!
9//! ## Example
10//!
11//! ```ignore
12#![doc = include_str!("../examples/browser.rs")]
13//! ```
14#![recursion_limit = "512"]
15#![allow(non_snake_case)]
16#![no_std]
17#![cfg_attr(docsrs, feature(doc_auto_cfg))]
18// Update in Cargo.toml as well.
19#![doc(html_root_url = "https://docs.rs/objc2-web-kit/0.3.0")]
20
21#[cfg(feature = "alloc")]
22extern crate alloc;
23
24#[cfg(feature = "std")]
25extern crate std;
26
27mod generated;
28#[allow(unused_imports, unreachable_pub)]
29pub use self::generated::*;
30
31#[cfg(feature = "WKNavigationAction")]
32impl WKNavigationAction {
33    objc2::extern_methods!(
34        #[cfg(feature = "WKFrameInfo")]
35        #[unsafe(method(sourceFrame))]
36        pub unsafe fn sourceFrame(&self) -> Option<objc2::rc::Retained<WKFrameInfo>>;
37    );
38}