22 Commits

Author SHA1 Message Date
Lucas Nogueira
fb5c76ca06 fix(windows) build on SDK 10.0.19041.1 2020-06-11 10:40:02 -03: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
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
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
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
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 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
Yin Guanhao
9c116bd5d6 mshtml, edge: speed up Content::Html
Previously `sscanf` is used in decoding the url-encoded html document.
But `sscanf` is quite expensive. Loading a larger document (~800KiB) has
a noticeable delay.

And mshtml is giving the third argument to `sscanf` a `char*` when it
should be an `int*`. It is very problematic.

This commit replaces them with our own hex decoding function.
2019-12-30 11:36:31 +01:00
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
Parker Snell
6f2c3600f0 Eliminate unnecessary string copies/allocations 2019-12-09 09:57:58 +01:00
zxey
b9b40b77d3 Remove unused functions from edge backend 2019-11-21 16:13:23 +01:00
André Twupack
b1779d080e fix for issue #93
- moved functions webview_js_encode and webview_inject_css into webview.h
2019-11-21 10:01:47 +01:00
zxey
eb6c213035 Fix linked libraries
Added missing linked libraries to edge backend.
I also kept the pragmas, if someone want to build the backends separately, so they do not have to supply link library flags to msvc.
2019-11-10 15:38:17 +01:00
zxey
788661593a Fix windows unicode support
Affects both mshtml and edge backends.

Fixes #41
Fixes #78
2019-10-15 21:17:02 +02:00
Darren Kaste
69566708a4 Fix Edge backend process leak 2019-10-11 09:32:53 +02:00
zxey
471d9aa7a4 Rename wrapper functions to webview functions 2019-10-08 09:50:08 +02:00
zxey
f847f2f2b3 Use all webview functions in edge backend
Previously the backend would define some functions differently and had some functions missing.
Now that all of the backends use the same webview.h header, we can make sure that all the functions needed are there.
2019-10-08 09:50:08 +02:00
zxey
c9b0b59a18 Move edge backend to .cpp 2019-10-08 09:50:08 +02:00