Tobias Taschner
80c04e3941
Merge branch 'master' into webview_script_message
2021-03-01 09:57:13 +01:00
Maarten Bent
401d547b2a
Fix -Wdeprecated-copy warning when using Scintilla Window
...
Don't use the copy constructor, use a constructor accepting the windowID.
Closes https://github.com/wxWidgets/wxWidgets/pull/2259
2021-03-01 00:11:03 +01:00
Vadim Zeitlin
afb57182e1
Merge branch 'gcc-edge'
...
Make it possible to build wxWebViewEdge with gcc or clang too.
Closes https://github.com/wxWidgets/wxWidgets/pull/2245
2021-03-01 00:09:52 +01:00
Maarten Bent
7532532800
Mention GCC/Clang support in wxWebViewEdge documentation
...
And add a comment explaining the name of the EventRegistrationToken include guard.
2021-03-01 00:09:23 +01:00
Maarten Bent
272c903234
Silence unknown pragmas warning in the WebView2 header
...
Using wxGCC_WARNING_SUPPRESS(unknown-pragmas) around the webview2 header does
not work, so suppress it for the entire webview project.
2021-03-01 00:09:23 +01:00
Maarten Bent
fc3cfb67cf
Add missing UUIDs for wxWebViewEdge
2021-03-01 00:09:23 +01:00
Maarten Bent
09bc566b60
Support building wxWebViewEdge with GCC or Clang
...
Add EventToken.h with EventRegistrationToken implementation, that can be used by the WebView2 header.
2021-03-01 00:09:23 +01:00
Maarten Bent
b43803703d
Move Callback implementation to separate header file
2021-03-01 00:09:23 +01:00
Maarten Bent
66d314c232
Implement QueryInterface of wxWebViewEdge CInvokable
2021-03-01 00:09:23 +01:00
Maarten Bent
156eda92d7
Use WRL when building with MSVC
2021-03-01 00:09:23 +01:00
Maarten Bent
a8b726359b
Format wxWebViewEdge Callback code
2021-03-01 00:09:23 +01:00
Maarten Bent
ad1219d0a2
Fix building with MSVC 32 bit
2021-03-01 00:09:23 +01:00
Maarten Bent
84b19a0ce0
Use the same function signature as the WebView2 SDK
2021-03-01 00:09:23 +01:00
nns52k
b465a95dcc
Make it possible to compile wxWebView Edge backend with gcc
...
Remove the requirement to include wrl/event.h so that GNU C++ (maybe
Clang C++ as well) can compile this file without error.
2021-03-01 00:08:08 +01:00
nns52k
df20e5ec76
Fix case of WebView2.h in the #inclue directive
...
Using the correct case is important when using case-sensitive file
systems as when cross-compiling, for example.
2021-03-01 00:08:08 +01:00
PB
a75aa78263
Fix dragging file in DnD sample
...
At least on Microsoft Windows, it is possible to start dragging an unselected
wxTreeCtrl item. Therefore, in wxEVT_TREE_BEGIN_DRAG handler do not use the
path that is currently selected in the control but the one that is actually
being dragged.
Closes https://github.com/wxWidgets/wxWidgets/pull/2258
2021-03-01 00:03:21 +01:00
Scott Talbert
f6a53b59b2
Fix regression in wxGetKeyState() on GTK3 w/ X11
...
wxGetKeyStateGTK() is intended to be used only with non-X11 GTK backends.
wxGetKeyStateX11() should still be used on GTK3 w/ X11 as the GTK
variant does not provide all key states.
2021-02-28 14:11:26 -08:00
Tobias Taschner
5e35e6c635
Clear script ids in RemoveAllUserScripts()
2021-02-28 22:38:09 +01:00
Tobias Taschner
5a30bbe38f
Apply suggestions from code review
...
Co-authored-by: PB <PBforDev@gmail.com >
2021-02-28 22:33:15 +01:00
Tobias Taschner
e8371824bd
Disable new methods for webkit1
2021-02-28 20:48:01 +01:00
Tobias Taschner
f419240335
Add Apple transport security to wxWebView docs
2021-02-28 20:44:38 +01:00
Tobias Taschner
ca5133fff7
Add usage documentation to wxWebView::AddScriptMessageHandler()
2021-02-28 20:41:49 +01:00
Tobias Taschner
d4a9ec2448
Define unused parameters differently to improve intellisense
2021-02-28 20:14:38 +01:00
Tobias Taschner
166d7e2c83
Fix unused warning in sample
2021-02-28 20:06:59 +01:00
Tobias Taschner
575ae90d85
Fix trailing whitespace
2021-02-28 20:03:36 +01:00
Tobias Taschner
2a16638e2a
Fix EOL issues
2021-02-28 20:03:31 +01:00
Tobias Taschner
2c3d179923
Implement common web message identifier for macOS
2021-02-28 19:57:33 +01:00
Tobias Taschner
a27f73367c
Implement AddUserScript() for WKWebView backend
2021-02-28 19:55:19 +01:00
Artur Wieczorek
04ea7b552a
Fix wxBitmapButon used as wxPG editor button under wxGTK2
...
wxBitmapButton without inner border should work better with themes
if we reduce inner border in a more GTK-compliant way by applying
a dedicated GTK style to the button.
2021-02-27 17:15:39 +01:00
Artur Wieczorek
9a29ea6e63
Fix setting wxBU_EXACTFIT style for wxButton under wxGTK2
...
The way wxBU_EXACTFIT is implemented in commit c1bb80987f
("Improve implementation of wxBU_EXACTFIT style for wxButton under wxGTK2",
2020-04-12) is too intrusive and disrupts button's appearance in some
themes. It should work better with themes if we reduce inner border in
a more GTK-compliant way by applying a dedicated GTK style to the button.
Closes #19081 .
2021-02-27 17:08:37 +01:00
Tobias Taschner
29bfcdfd5e
Add common web message identifier
2021-02-27 11:55:50 +01:00
Tobias Taschner
c9606d7b5a
Implement AddUserScript() for GTK
2021-02-27 10:59:23 +01:00
Tobias Taschner
4d78437a77
Implement AddUserScript() for edge backend
2021-02-26 23:41:39 +01:00
Tobias Taschner
6f7ac6a934
Add wxWebView::AddUserScript()
...
This allows to inject javascript code across multiple pages
2021-02-26 23:41:39 +01:00
Tobias Taschner
f2bfa7d446
Initial AddScriptMessageHandler() documentation
2021-02-26 22:35:49 +01:00
Tobias Taschner
b1d558a612
Disabled dev tools per default for Edge
...
This unifies the behavior among backends and is probably
the more useful default for most applications.
2021-02-26 21:55:10 +01:00
Tobias Taschner
2d007ff3f1
Add named script handler to edge
2021-02-26 21:51:15 +01:00
Tobias Taschner
140e9825b7
Log error if script handler cannot be added
2021-02-26 21:41:02 +01:00
Tobias Taschner
a09713de5f
Decode web message result like RunScript() result
2021-02-26 21:37:23 +01:00
Tobias Taschner
71f745e647
Implement script message for GTK backend
2021-02-26 21:27:50 +01:00
Tobias Taschner
3af4702b11
Implement wxWebView::EnableAccessToDevTools() for GTK
2021-02-26 18:53:46 +01:00
Tobias Taschner
302ae644dd
Fix mixed EOL
2021-02-26 17:11:33 +01:00
Tobias Taschner
3f23273f46
Fix typo in sample
2021-02-26 16:59:57 +01:00
Tobias Taschner
04d22cc9f6
Add RemoveScriptMessage handler and return bool
2021-02-26 16:59:57 +01:00
Tobias Taschner
c3d0d7d000
Identify script handler in message event
2021-02-26 16:59:56 +01:00
Tobias Taschner
c78147b267
Add script command handler to sample
2021-02-26 16:59:56 +01:00
Tobias Taschner
5b838ae6c1
Fix unused warning
2021-02-26 16:59:56 +01:00
Tobias Taschner
a7ff7a8012
Implement script message for WKWebView backend
2021-02-26 16:59:56 +01:00
Vadim Zeitlin
94812c9e06
Merge branch 'sorted-array-str-search'
...
Fix searching in wxSortedArrayString with custom compare function.
Also improve array unit tests.
See https://github.com/wxWidgets/wxWidgets/pull/2251/
2021-02-26 16:51:11 +01:00
Ian McInerney
063dd3e852
Remove hardcoded max width from STC autocomplete listbox
...
The Scintilla engine will automatically truncate lines in the
autocomplete listbox based on the call to AutoCompSetMaxWidth().
It is not good to do it in the wx implementation code as well,
since then the meaning of AutoCompSetMaxWidth(0) (e.g. no truncation)
is not valid and the list items will be truncated anyway.
Closes https://github.com/wxWidgets/wxWidgets/pull/2250
2021-02-26 16:49:35 +01:00