Sam Green
|
09f403fd93
|
Use convenience builder function in examples.
|
2018-11-22 20:52:35 +00:00 |
|
Sam Green
|
d5f9f284e3
|
Rewrite to use builder pattern. Fix dispatch unsafety. (#36)
* Major rewrite.
- Fix unsafety (require 'static bound on dispatched closure)
- Switch to builder pattern.
- Run rustfmt
- Fix clippy warnings
- Userdata borrowed from webview instead of being arg of dispatch closure
- Bump minor version
- Update webview
- Add crate-level doc
* Add rustfmt.toml
* Allow propagation of errors from invoke and dispatch closures.
* Refine doc comments.
* Add enum derives.
* Remove mut bound from `handle()`.
* Remove dependency on failure.
|
2018-11-10 20:16:12 +00:00 |
|
zxey
|
69519d102b
|
Implement Content enum
Content enum allows us to pass url or html content easily to webview
without the need to encode the passed string beforehand.
|
2018-04-08 02:44:46 +02:00 |
|
Paweł Zmarzły
|
f971baecbb
|
make timer example less confusing by renaming one of userdata variables
|
2018-02-03 19:25:37 +01:00 |
|
Boscop
|
49846c9dea
|
made init callback FnOnce and dispatch callback generic over WebView lifetime
(uses webview.h from zserge/webview#5a16d33)
|
2018-02-01 16:14:28 +01:00 |
|
Boscop
|
d059d895dc
|
renamed package to web-view because of naming conflict
|
2018-01-21 23:37:27 +01:00 |
|
Boscop
|
82599e65d6
|
simplify examples by using urlencoding::encode(html) instead of url::percent_encoding::utf8_percent_encode(html, PATH_SEGMENT_ENCODE_SET)
|
2018-01-21 13:27:16 +01:00 |
|
Boscop
|
450b215f2c
|
import
|
2018-01-21 07:36:31 +01:00 |
|