9 Commits

Author SHA1 Message Date
Robert Masen
b664974c1b Allow for graceful Exit (#107)
* First pass at graceful exit

* Working macos unified exit

* fix example html to work with IE

* terminate > exit

* unified edge, I think

* update gtk c impl

* tag terminate as depricated

* fix old fn name

* remove OleUninitialize from edge

* remove queue_close

* remove terminate

* fix typo in edge cpp file

* inspect return value of graceful exit example

* actually create the variable inspected

* make example run a little faster

* Adjust cocoa webveiw_exit

* add back missing method on edge

* lots of pinting

* fix printf arg

* better even debug printing

* clean up debugging stuff

* remove some unneeded changes

* slow down example

* fix view title

* add comment about posting the event to the application on close

Closes #105 
Fixes #52
2019-12-28 14:27:12 +01:00
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