chrome-sys 0.2.0

Raw wasm_bindgen bindings for the Chrome Browser Extension API.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::runtime::port::Port;
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
extern "C" {

    #[wasm_bindgen(js_namespace = ["chrome", "runtime", "onConnect"], js_name="addListener")]
    pub fn add_on_connect_listener(closure: &Closure<dyn FnMut(Port) -> JsValue>);

}