Commit Graph

82 Commits

Author SHA1 Message Date
zxey
f8ee25306c Add actix embed example
Fixes #53
2019-09-25 14:54:13 +02:00
zxey
f9bf450eef Remove webview submodule, include webview.h directly
Closes #64
2019-09-09 22:08:56 +02:00
zxey
47287de107 Add another cool project to showcase 2019-09-09 21:26:17 +02:00
Jim McGrath
fde0bcbf84 disable objc_msgSend type checking 2019-09-08 22:59:34 +02:00
zxey
8e73dc5264 Add new idea to README 2019-09-05 23:28:37 +02:00
zxey
175e4cf907 Add neutrino to showcase 2019-09-05 23:21:30 +02:00
zxey
79477f1432 Forgot to publish webview-sys 2019-09-05 22:59:39 +02:00
zxey
ae00777837 Update webview-sys to use better webview fork 2019-09-05 21:25:20 +02:00
zxey
17308c5be0 Bump patch version 2019-09-04 20:57:42 +02:00
zxey
2984d78e8c Update webview submodule
Fixes #29
This also changes the submodule to point to a fork used solely for this project,
it seems that original webview is no longer maintained.
2019-09-04 20:54:50 +02:00
Thomas Hurst
4f29b0554f Add Compactor to showcase 2019-07-22 12:22:11 +02:00
Francesco Frassinelli
e052b6e1ca Add FrakeGPS as example app 2019-05-26 17:27:44 +02:00
zxey
8954113627 Increment patch version 2019-05-20 18:16:33 +02:00
Thomas Hurst
e982977219 Use C calling convention for callbacks
This fixes crashes on 32bit Windows (reported in #3)
2019-05-16 15:44:48 +02:00
Richard Hozák
10fe46b150 Add showcase
Closes #56
2019-05-16 09:41:21 +02:00
zxey
00bbb3adfd Fix webview-sys version in root crate 2018-11-29 13:00:40 +01:00
zxey
9f45f4e95d Fix cc build warnings 2018-11-29 12:58:26 +01:00
zxey
f9cbefdf10 Bump version 2018-11-29 12:51:43 +01:00
Sam Green
e611d361e3 Bump rustfmt required version. 2018-11-27 18:39:50 +00:00
Sam Green
a019c73756 Remove bounds from type definitions. 2018-11-27 18:39:50 +00:00
Sam Green
4e7378a653 Add fluent dialog API with example. 2018-11-22 20:52:35 +00:00
Sam Green
8a5d2dda0d Implement run method for builder. Use in examples. 2018-11-22 20:52:35 +00:00
Sam Green
09f403fd93 Use convenience builder function in examples. 2018-11-22 20:52:35 +00:00
Sam Green
a9708e255c Add convenience function for constructing new builder. 2018-11-22 20:52:35 +00:00
Sam Green
41fa713175 Add ability to override webview source and document. (#39) 2018-11-16 10:01:35 +00:00
Sam Green
57c0669adf Revert "Fix double free and user data usage after move" to fix leak. (#37)
Add `mem::forget` call to prevent double free.

This reverts commit 8bcb16f52f.
2018-11-11 16:47:51 +00:00
zxey
8bcb16f52f Fix double free and user data usage after move
Previously when in WebView::run method, WebView::into_inner would be called,
which consumed inner user data, and freed inner c-webview instance.

This caused problems when paired with Drop implementation for WebView
which called exactly the same function, thus accessing the moved out
inner user data and freeing the c-webview instance again.

The solution I did here was to split the freeing into Drop and leave only
user data move in into_inner method.
2018-11-10 23:04:07 +01:00
zxey
8874d83297 Remove beta channel from travis until we figre out why it's misbehaving 2018-11-10 21:53:16 +01:00
zxey
8fade5abfb Update README
We require Rust 1.30 now.
Dialogs are already implemented.
2018-11-10 21:50:21 +01: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
Boscop
066eee6c01 Merge pull request #31 from julianpistorius/master
Elm example
2018-08-29 07:05:21 +02:00
Julian Pistorius
e81f0c397c Problem: No Elm example
Solution: Add simple Elm 'counter' example

Elm counter example copied from https://github.com/evancz/guide.elm-lang.org
2018-08-28 21:31:53 -07:00
Richard Hozák
555f422d09 Merge branch 'aatxe-webview_set_title' 2018-07-12 10:26:20 +02:00
Aaron Weiss
8f5caf2db6 Add support for webview_set_title and use it in todo example. 2018-07-12 10:23:19 +02:00
Richard Hozák
f640e3e556 Merge pull request #27 from aatxe/webview_set_color
Add support for webview_set_color and use it in todo example.
2018-07-12 10:14:05 +02:00
Aaron Weiss
db9e4babc5 Add support for webview_set_color and use it in todo example. 2018-07-11 22:00:54 +02:00
Boscop
58d2ec4068 increased patch version 2018-05-08 09:03:04 +02:00
Ram Kaniyur
010126d895 Remove impl Trait because it's still unstable. 2018-05-08 14:49:39 +10:00
Ram Kaniyur
2901294634 Fix boundary bug in the escape code; turns out chars wasn't so stupid after all. 2018-05-08 13:53:38 +10:00
Ram Kaniyur
2ee2eda43f Hide escape module. 2018-05-08 13:42:12 +10:00
Ram Kaniyur
1bdedc99e0 Add JavaScript string escaper. 2018-05-08 13:31:07 +10:00
Boscop
8ad43e4708 increased minor version because api changed 2018-05-07 11:22:11 +02:00
Boscop
3932662710 improved string handling in dialog 2018-04-29 23:57:22 +02:00
zxey
d416fa4bce Fix indentation and typo 2018-04-16 12:48:44 +02: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
zxey
02c3004c8f Implement dialog function for showing system dialogs 2018-04-08 02:04:48 +02:00
zxey
3e5c8a44bf Update c-webview, introduce -sys convention
This adds webview as a submodule instead of including sources directly.
New webview function are not yet implemented, the functionality stays the
same.
2018-04-08 00:00:41 +02:00
Boscop
f6bdc85473 Merge pull request #13 from quadrupleslap-forks-things/master
Link to appropriate Windows libraries.
2018-02-15 22:44:30 +01:00
Ram
415a5a12c2 Link to appropriate Windows libraries. 2018-02-14 16:39:32 +11:00
Boscop
e6bf4db177 Merge pull request #8 from pzmarzly/master
Make timer example less confusing by renaming one of userdata variables
2018-02-10 20:19:57 +01:00