From 9f06b4f6a631895a045b48860bc49e24219df720 Mon Sep 17 00:00:00 2001 From: attila Date: Wed, 3 Jul 2024 11:09:56 +0200 Subject: [PATCH] Update WebBrowserComponent documentation --- .../juce_gui_extra/misc/juce_WebBrowserComponent.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/juce_gui_extra/misc/juce_WebBrowserComponent.h b/modules/juce_gui_extra/misc/juce_WebBrowserComponent.h index e8a9723152..688630bc63 100644 --- a/modules/juce_gui_extra/misc/juce_WebBrowserComponent.h +++ b/modules/juce_gui_extra/misc/juce_WebBrowserComponent.h @@ -50,10 +50,12 @@ namespace juce The browser itself will be platform-dependent. On Mac and iOS it will be WebKit, on Android it will be Chrome, and on Linux it will be WebKit. - On Windows it will be IE, but if JUCE_USE_WIN_WEBVIEW2 is enabled then using - the WindowsWebView2WebBrowserComponent wrapper instead of this class directly - will attempt to use the Microsoft Edge (Chromium) WebView2. See the documentation - of that class for more information about its requirements. + The default engine on Windows will be IE, but if JUCE_USE_WIN_WEBVIEW2=1 or + JUCE_USE_WIN_WEBVIEW2_WITH_STATIC_LINKING=1 is defined, then passing the + WebBrowserComponent::Options::Backend::webview2 value to the constructor will + attempt to use the Chrome based Edge WebView, and fall back to IE in case of + failure. CMake builds also need to specify the NEEDS_WEBVIEW2 option when + creating a JUCE based target. @tags{GUI} */ @@ -283,6 +285,8 @@ public: To call this function from the frontend, you can import the JUCE frontend helper module or issue a call to the low-level frontend API. + The callback is always called on the message thread. + @code import { getNativeFunction } from "./juce";