Commit graph

16 commits

Author SHA1 Message Date
Rui A. Rebelo f98ac60239 Resolves #14. Unlike all controls, WebView has 'fn did_load(&self,...)' with self as non-mutable 2021-07-05 15:32:50 -06:00
Rui A. Rebelo 2f7ebbf2ad Resolves #12. To avoid a Segmentation Fault retains the body of a message from a webpate to a webview 2021-07-03 21:51:02 -06:00
Ryan McGrath eb35b647f7
Update mod.rs
Slight edit for docstring + dereferencing the `NSString`s.
2021-04-26 14:22:07 -07:00
David Lemarier 5ec3b172e8
feat(webview): Allow loading of HTML string instead of URL. 2021-04-26 08:09:13 -04:00
Ryan McGrath be6ff21d11
Merge pull request #9 from lemarier/feat/webview-handlers
feat(webview): Add custom protocol (scheme) support
2021-04-25 17:21:25 -07:00
David Lemarier c9d665963a
feat(webview): Add custom protocol (scheme) support
This is a basic implementation of the custom protocol, with built-in mimetype extraction from the content, backed by URI detection.

To make it clear, I added an example and can be run with:

```
cargo run --example webview_custom_protocol --features webview
```
2021-04-25 12:07:45 -04:00
David Lemarier 1531043943
fix(webview): setWantsLayer is not available on iOS 2021-04-25 08:19:45 -04:00
Ryan McGrath 8a9c45af61
Building out browser example.
- Includes test case to reproduce textfield dealloc bug.
2021-04-14 19:00:34 -07:00
Ryan McGrath 420422187a
Fixes #6 and updates WebView to new layout system.
- Includes a (basic) `browser` example to make testing the feature
  easier.
2021-04-08 17:54:32 -07:00
Ryan McGrath 1b0be74fc8
Begin moving certain core methods to Layout.
- Drag and drop, hidden, and so on now live on on the `Layout` trait,
  which helps make the logic less of a hassle to support (these methods
  are almost always guaranteed to exist on any view type, and it's
  easier to just noop them on a specific view if need be).

- Begin reworking auto-drop-remove-from-superview logic by including an
  `is_handle` flag on `View`; will need to extend this work to others.
2021-03-26 17:51:37 -07:00
Ryan McGrath 696907aa73
Ongoing documentation and cleanup work. 2021-03-15 17:09:50 -07:00
Ryan McGrath ab53150abc
Finalize some NSString handling that I'd been mulling over. This should be much more sound and transparent regarding ownership while keeping the same general approach that's been working so far. 2020-03-31 20:59:08 -07:00
Ryan McGrath ccaf61f56f
Webview patches 2020-03-30 00:37:10 -07:00
Ryan McGrath 4266c4c8dc
Ongoing cleaning efforts 2020-03-28 22:05:40 -07:00
Ryan McGrath b573fba459
Working on fixing up docs, general cleanup 2020-03-26 20:19:52 -07:00
Ryan McGrath 6b8aad4a94
Fix up the repo so examples work as they should 2020-03-26 18:06:11 -07:00