1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
Commit graph

360 commits

Author SHA1 Message Date
reuk
3005b716fe
ObjCHelpers: Add new macros to help with version checking 2024-10-29 19:46:35 +00:00
reuk
80ac9a78a0
Singleton: Add new macros to simplify singleton creation
The INLINE macros allow singletons to be declared and defined in one
line, without requiring a separate JUCE_IMPLEMENT_SINGLETON statement.
2024-10-16 10:36:52 +01:00
reuk
b52f5cff21 WebBrowserComponent: Fix build issue on older linux platforms
Previously, building the DemoRunner on Ubuntu 18.04 failed due to a
missing type declaration.
2024-10-08 19:13:04 +01:00
attila
171edbec7f MacOS: Suppress deprecation warnings related to NSUserNotification
All NSUserNotification related classes have been deprecated in MacOS 11,
and this class will have to be revamped to use the new User
Notifications framework. We are suppressing the warnings for the time
being.
2024-10-03 16:56:34 +02:00
attila
46eed81aae Windows: WebBrowserComponent: Avoid infinite loops caused by CONNECTION_ABORTED errors
WebView2 can emit COREWEBVIEW2_WEB_ERROR_STATUS_CONNECTION_ABORTED
errors during page navigation, even if the page navigation would happen
correctly afterwards. In such situations our internal error handler can
recursively encounter this error when trying to navigate to the error
handler page.

Prior to this commit the implementation could end up in an infinite loop
receiving the error and then navigating to the error handler page.
2024-10-03 16:56:34 +02:00
Anthony Nicholls
6c2d149ef3 Versioning: Add the JUCE version number to any internally created threads 2024-09-26 08:10:56 +00:00
attila
5b98066a48 Windows: WebBrowserComponent: Fix visibility of initially not visible component
Prior to this commit a WebBrowserComponent created with
setVisible (false) would still be visible.
2024-09-05 16:41:25 +02:00
attila
a34bd74133 Windows: WebBrowserComponent: Fix state handling when the component is invisible
The handling of two state variables had to be adjusted. One is
responsible for signalling that we navigated to a blank page due to the
WebBrowserComponent becoming invisible. The other variable in the
WebView2 implementation stores the URL that we should be navigating to
once the WebView2 instance has been created.

Prior to this commit navigating to the URL requested by goToURL could
fail for two reasons: either because it was called before the underlying
WebView2 instance was created, or because the WebBrowserComponent was
not yet visible.
2024-08-22 17:04:55 +02:00
attila
ae23783f63 Windows: Fix rare crash when creating and destroying WebBrowserComponent instances 2024-07-15 14:37:13 +02:00
attila
7ead20d575 WebBrowserComponent: Windows: Avoid flash to default JUCE background colour
The default background colour of the WebBrowserComponent is white on all
platforms. Before the first page finishes loading this is the colour
that should fill the WebBrowserComponent's area.

Prior to this change however, on Windows a sudden flash to the default
JUCE background colour would occur, before the default white background
could take effect.

At the time of this commit there is a known issue with the
icorewebview2controller2, where a white flash is inevitable, unless the
WEBVIEW2_DEFAULT_BACKGROUND_COLOR environment variable is set. Using
a white background behind the WebView avoids this issue.
2024-07-11 13:36:07 +02:00
attila
9082d3274a Fix inactive sliderDragStarted/sliderDragEnded events in the WebView frontend library
This fixes the behaviour of WebBrowserComponent based plugins, including
the WebViewPluginDemo, when working with automations.
2024-07-04 13:59:30 +00:00
attila
f1954bbe4d Add missing documentation for Javascript helper classes 2024-07-04 13:59:30 +00:00
reuk
a858f91354
Platform: Remove deprecated code paths that will never be called 2024-07-03 14:50:08 +01:00
reuk
ba9b6581b7
Platform: Remove references to unsupported platforms in docs and strings 2024-07-03 13:50:08 +01:00
reuk
8ba2dc2ae2
Platform: Remove compatibility checks for Android 20 and earlier 2024-07-03 13:45:37 +01:00
reuk
5391032238
Platform: Remove compatibility checks for iOS 11 2024-07-02 18:06:28 +01:00
reuk
6428f43eeb
Platform: Remove compatibility checks for iOS 10 2024-07-02 18:06:28 +01:00
reuk
e71ebb3407
Platform: Remove compatibility checks for macOS 10.11 2024-07-02 18:06:28 +01:00
reuk
8ac7bfc9ca
Platform: Remove compatibility checks for macOS 10.10 2024-07-02 18:06:27 +01:00
reuk
6d4bf60330
Platform: Remove compatibility checks for macOS 10.9 2024-07-02 18:06:27 +01:00
reuk
da8c5fdcb4
Platform: Remove compatibility checks for macOS 10.8 2024-07-02 18:06:27 +01:00
reuk
4576a75388
Platform: Remove compatibility checks for macOS 10.7 2024-07-02 18:06:27 +01:00
attila
2516ad808e WebBrowserComponent: Linux: Add support for libwebkit2gtk-4.1 2024-06-11 20:51:22 +02:00
attila
abdf9a6b75 Add WebView related helper classes for implementing AudioProcessorEditor::getControlParameterIndex 2024-06-06 13:48:51 +02:00
attila
d61e516bbc Add the parameterIndex property to all WebView related parameter ParameterAttachments
This affects the WebSliderParameterAttachment,
WebToggleButtonParameterAttachment, and WebComboBoxParameterAttachment
classes.
2024-06-06 13:48:51 +02:00
attila
0d8b05e8ee WebBrowserComponent: Enable click-through behaviour for WkWebView, add option to disable it
The default is enabled to behave similarly to NSViewComponentPeer. The
behaviour for the old Apple WebView is unchanged.
2024-06-06 13:48:51 +02:00
attila
4d2986ea59 Add new WebBrowserComponent option for file access control on Apple platforms
If allowAccessToEnclosingDirectory is set to true, it is now possible
for the WkWebView implementation to access sibling files relative to a
file specified with the file:// scheme.

This allows an iOS app to load an HTML file in the documents directory,
and that HTML file can reference and load image files inside the HTML
file's parent directory.
2024-06-06 13:48:51 +02:00
attila
39ac568433 Add missing licence header to Javascript files 2024-04-23 16:04:09 +02:00
attila
e86e7fca9e WebBrowserComponent: Fix Windows compilation issue 2024-04-18 17:16:57 +02:00
reuk
19061e6d17
Direct2D: Add initial support 2024-04-18 14:16:02 +01:00
reuk
1f9ba0682c
ComSmartPtr: Make ownership more explicit
COM objects now always start with a refcount of 1, as is convention.
2024-04-16 21:07:45 +01:00
attila
ec92ce82b6 WebBrowserComponent: Add native integration helper Javascript library 2024-04-16 17:43:21 +01:00
attila
5f638157f7 WebBrowserComponent: Improve native integrations 2024-04-16 17:43:21 +01:00
attila
624fed2c7f Linux: XEmbedComponent: Improve focus transfer handling 2024-04-16 17:43:21 +01:00
Tom Poole
94d98a2b10 Update licensing information 2024-04-16 11:39:35 +01:00
reuk
047448fbce
Warnings: Add missing overrides 2024-01-30 11:37:30 +00:00
reuk
224c4f706b
JSON: Add new JSON::Formatter for configuring JSON output
This also fixes an issue where MIDI CI header data could contain spaces,
which is not allowed according to the spec.
2023-12-06 20:25:22 +00:00
attila
06855ed05d WebBrowserComponent: Windows: Trigger resized event on DPI change when using WebView2
This fixes a bug where moving a window between displays with different
scaling settings makes the embedded WebView misaligned.
2023-12-05 21:18:44 +01:00
Anthony Nicholls
4d098faaac ObjectiveC: Add support for uninitialised variants when converting to an NSDictionary 2023-11-09 16:36:33 +00:00
Tom Poole
6bf9bb9a2e Add final specifiers in implementation files 2023-10-10 16:12:38 +01:00
Anthony Nicholls
90c458d92e Includes: Move some miscellaneous includes into module header and source files 2023-10-09 14:49:18 +01:00
Tom Poole
4153d59e39 Formatting 2023-10-02 15:42:20 +01:00
attila
8c65efe99b NSViewComponent: Fix accessibility related crash when re-parenting the NSView 2023-09-20 06:47:50 +00:00
Tom Poole
82f1fd57a4 Fix some compiler warnings 2023-08-29 12:59:09 +01:00
attila
aceef4f5a2 Windows WebView2: Fix build on C++17 2023-06-14 12:47:17 +00:00
attila
18489bb7d7 WebBrowserComponent: iOS: Add accessibility integration 2023-06-08 16:07:11 +00:00
attila
f519af3b62 WebBrowserComponent: Android: Add accessibility integration 2023-06-08 16:07:11 +00:00
attila
d8c282e293 WebBrowserComponent: MacOS: Add accessibility integration 2023-06-08 16:07:11 +00:00
attila
7657efd227 WebBrowserComponent: Windows: Add accessibility integration 2023-06-08 16:07:11 +00:00
attila
21fd671551 Android: Fix WebBrowserComponent 2023-04-25 15:15:04 +02:00