1
2
3
4
5
6
7
8
9
10
11
12
13
14
use cocoa::base::id;

#[link(name = "WebKit", kind = "framework")]
extern "C" {
    pub static WKNavigation: id;
}

pub trait WKNavigation: Sized {
    /// # Safety
    /// All the FFI functions are unsafe.
    unsafe fn alloc(_: Self) -> id {
        msg_send![class!(WKNavigation), alloc]
    }
}