Lucas Nogueira
fb5c76ca06
fix(windows) build on SDK 10.0.19041.1
2020-06-11 10:40:02 -03:00
Lucas Nogueira
7bf4f83517
Merge remote-tracking branch 'origin/master'
2020-06-11 10:28:20 -03:00
Mirko Covizzi
a4cfc7f930
Fix typo ( #185 )
2020-05-24 21:36:55 +02:00
Richard Hozák
f4372ec8f5
Fix build badge
...
Forgot to switch the badge when moving from travis to Github Actions
2020-04-28 19:34:05 +02:00
Richard Hozák
48cfa085e0
Fix type mismatch ( #163 )
...
Fixes #162
2020-04-03 21:41:15 +02:00
Daisuke Kato
7a82e71033
todo example with vuejs+parcel ( #159 )
...
* add todo example using vuejs
* refactor by using vue component
* fix wrapper class name
* switch vue library in production and runtime-only lib
* remove arrow function expressions that breaks to work with IEs
* adD SAMple index.html for todo-vue
* use bundler (parcel)
* update
* support addTask
* update
* update
* use scoped style
* refactor
2020-03-27 00:55:01 +01:00
Matthias
9c331ac5f9
Fixed the indentation ( #155 )
...
Github Flavored Markdown uses indentation for code (See: https://github.github.com/gfm/#indented-code-blocks ). Thus, you have to either use code tags or indentation, but not both.
2020-03-17 17:01:29 +01:00
Alex Jones
3a0db4eaca
Use default icon provided by winres when present ( #124 )
...
* Use default winres icon as top left window icon
* Replace MAKEINTRESOURCE macro with cast
Co-authored-by: Richard Hozák <r.hozak@seznam.cz >
2020-03-16 13:21:11 +01:00
gin66
d5f27ea6f0
Fix for memory leak in ffi_dispatch_handler and ffi_invoke_handler ( #149 )
...
* Fix for memory leak in ffi_dispatch_handler and ffi_invoke_handler
* directly call mem::forget() in the ffi_handlers
* mem::forget leaks memory. So change the concept for the WebView implementation
Co-authored-by: Richard Hozák <r.hozak@seznam.cz >
2020-03-15 12:05:48 +01:00
zxey
56d7b6fa31
Remove travis ci, use only github actions
2020-03-15 02:35:59 +01:00
zxey
8f1f391a92
Apply rustfmt
2020-03-15 02:30:46 +01:00
Richard Hozák
9e7a3e9cd5
Use github actions for ci
2020-03-15 02:28:51 +01:00
zxey
363dd8eb29
Bump versions
2020-03-15 00:43:14 +01:00
zxey
44ed909ea3
Remove webview_check_url
...
It was not needed, simple null check is enough.
Webview on macOS, Linux, and Windows correctly display empty webpage is content is empty, no need to display empty html document.
With this, Linux gtk backend is now fully in Rust, no c compiler needed.
2020-03-15 01:34:43 +01:00
zxey
9b8b107c04
Reimplement inject css function in Rust
2020-03-15 00:55:44 +01:00
zxey
3fb4b4449b
Rewrite gtk backend in rust
2020-03-14 23:39:26 +01:00
zxey
542816bab2
Remove bitflags dependency from webview-sys
2020-03-13 22:57:41 +01:00
zxey
9597833d87
mshtml: Move webview initialization to one function
2020-03-13 12:24:42 +01:00
zxey
6813ebff61
Remove far pointers from mshtml implementation
...
It gets expanded to nothing, it is not needed.
2020-03-13 11:35:30 +01:00
zxey
bbc50de6d2
Do not store title, convert it as needed
...
Storing it served no real purpose, it just made things harder to reason about.
2020-03-13 11:09:09 +01:00
zxey
a11503ab33
Fix mshtml c compilation warning
...
We were retuning pointer to pointer, BSTR is already a pointer.
2020-03-13 10:58:01 +01:00
zxey
30143633fe
Remove mshtml private fields put them directly in implementation
2020-03-13 10:55:00 +01:00
zxey
6006b7386d
Deprecate dialogs
...
Uses tinyfiledialogs to implement dialog functions on webview.
Removes original implementation.
Converts all examples that use dialogs to use tinyfiledialogs directly.
Note:
Your code will still work as it is, you will only get deprecation warnings,
you should eventually switch to tinyfiledialogs or some other crate for handling dialogs.
2020-03-13 00:36:06 +01:00
zxey
fe26a67493
Bump version
2020-03-12 23:00:10 +01:00
Yin Guanhao
5bfb70be19
mshtml: fix compilation with gcc
2020-03-12 21:36:35 +01:00
Yin Guanhao
7c2c83df8e
edge: fix compilation error, scale window size
...
And don't worry too much about older Windows, because edge is only
available on Windows 10 anyway.
2020-03-12 21:36:35 +01:00
Yin Guanhao
74183c8db0
mshtml: various fixes
...
* Fix function signature of SetThreadDpiAwarenessContext.
* Don't return if SetThreadDpiAwarenessContext is not present.
* Use SetProcessDPIAware as fallback.
* Use system dpi awareness.
* Scale window size according to the DPI.
2020-03-12 21:36:35 +01:00
Giovanni Patruno
5353c0486f
webview_mshtml.c: EnableDpiAwareness moved upper
2020-03-12 21:36:35 +01:00
Giovanni Patruno
0e4ef40e0c
webview_mshtml.c: Using HMODULE instead of auto
2020-03-12 21:36:35 +01:00
Giovanni Patruno
acfbc77a0e
webview_mshtml.c: SetThreadDpiAwareness signature changed
2020-03-12 21:36:35 +01:00
Giovanni Patruno
adf0095867
webview_edge.cpp: fix context name
2020-03-12 21:36:35 +01:00
Giovanni Patruno
d46cc70c10
webview_edge.cpp: Enabling DPI awareness
2020-03-12 21:36:35 +01:00
Giovanni Patruno
263b6a43c6
webview_mshtml.c: Enabling DPI awareness
2020-03-12 21:36:35 +01:00
Robert Masen
55f619190e
fix frameless edge window expecting title bar
2020-02-26 21:21:14 +01:00
Robert Masen
21415bdaa5
update windows to allow for frameless + resizable
2020-02-26 21:21:14 +01:00
Robert
96e68018dd
first pass at linux
2020-02-26 21:21:14 +01:00
Robert Masen
2c1d5071e8
pass two at framless on windows
2020-02-26 21:21:14 +01:00
Robert Masen
8dec22b7e6
windows pass at frameless
2020-02-26 21:21:14 +01:00
rfm
17385b8b38
first pass at frameless
2020-02-26 21:21:14 +01:00
zxey
03394d6815
Apply rustfmt formatting
...
Also removes custom rustfmt.toml and uses the tools' defaults.
2020-02-23 19:20:30 +01:00
Daniel
e5fc5b97db
Addition to examples directory
2020-02-23 19:17:19 +01:00
Daniel
581dfbe7b7
Add existing file
2020-02-23 19:17:19 +01:00
gvallat
acaaa2b65c
Fix deadlock during shutdown
2020-02-03 17:35:22 +01:00
Rajiv Shah
aeb9840d17
Add Windows to Travis build matrix
2020-02-03 17:34:31 +01:00
Yin Guanhap
4a8eb623a4
Implement clone manually
...
The Clone implementation for Handle does not need the T: Clone bound.
2020-02-03 17:34:10 +01:00
Richard Hozák
ad12815d2f
Update README.md
...
Closes #129
2020-01-18 11:22:46 +01:00
zxey
0ef21b6682
Bump versions
2020-01-08 23:30:28 +01:00
carbotaniuman
0a26b3ddc5
Address multiple windows on MacOS
2020-01-08 23:27:17 +01:00
Yin Guanhao
7ea3f06575
impl Clone for Handle
2020-01-05 12:39:24 +01:00
zxey
3f0bca943c
Add info, warning and error to dialog example
2019-12-24 15:25:09 +01:00