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

Windows: Add WebView2Preferences struct to modify aspects of WebView2 behaviour

This commit is contained in:
ed 2021-08-19 15:47:21 +01:00
parent 315f6d8fcd
commit 4649bc1b13
6 changed files with 154 additions and 56 deletions

View file

@ -192,4 +192,11 @@
#if ! JUCE_WINDOWS
juce::ScopedDPIAwarenessDisabler::ScopedDPIAwarenessDisabler() { ignoreUnused (previousContext); }
juce::ScopedDPIAwarenessDisabler::~ScopedDPIAwarenessDisabler() {}
#if JUCE_WEB_BROWSER
juce::WebBrowserComponent::WebBrowserComponent (ConstructWithoutPimpl) {}
juce::WindowsWebView2WebBrowserComponent::WindowsWebView2WebBrowserComponent (bool unloadWhenHidden,
const WebView2Preferences&)
: juce::WebBrowserComponent (unloadWhenHidden) {}
#endif
#endif