JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::WebBrowserComponent::Options::AppleWkWebView Class Reference

Options specific to the WkWebView backend used on Apple systems. More...

#include <juce_WebBrowserComponent.h>

Collaboration diagram for juce::WebBrowserComponent::Options::AppleWkWebView:

Public Member Functions

auto getAcceptsFirstMouse () const
 
auto getAllowAccessToEnclosingDirectory () const
 
AppleWkWebView withAllowAccessToEnclosingDirectory (bool x) const
 Specifies whether the WebView is allowed to access siblings of files specified with the file:// URL scheme.
 
AppleWkWebView withDisabledAcceptsFirstMouse () const
 If this options is specified, the underlying WebView will return NO from its acceptsFirstMouse method.
 

Private Attributes

bool acceptsFirstMouse = true
 
bool allowAccessToEnclosingDirectory = false
 

Detailed Description

Options specific to the WkWebView backend used on Apple systems.

These options will be ignored on non-Apple platforms.

Member Function Documentation

◆ getAcceptsFirstMouse()

auto juce::WebBrowserComponent::Options::AppleWkWebView::getAcceptsFirstMouse ( ) const
inline

◆ getAllowAccessToEnclosingDirectory()

auto juce::WebBrowserComponent::Options::AppleWkWebView::getAllowAccessToEnclosingDirectory ( ) const
inline

◆ withAllowAccessToEnclosingDirectory()

AppleWkWebView juce::WebBrowserComponent::Options::AppleWkWebView::withAllowAccessToEnclosingDirectory ( bool  x) const
inline

Specifies whether the WebView is allowed to access siblings of files specified with the file:// URL scheme.

Allowing this is a potential security vulnerability if you don't have full control over the file that you are opening.

References juce::withMember().

◆ withDisabledAcceptsFirstMouse()

AppleWkWebView juce::WebBrowserComponent::Options::AppleWkWebView::withDisabledAcceptsFirstMouse ( ) const
inline

If this options is specified, the underlying WebView will return NO from its acceptsFirstMouse method.

This disables the click-through behaviour, meaning that clicking a previously unfocused application window only makes the window focused, but will not pass on the click to whichever control inside the WebView is under the mouse.

References juce::withMember().

Member Data Documentation

◆ acceptsFirstMouse

bool juce::WebBrowserComponent::Options::AppleWkWebView::acceptsFirstMouse = true
private

◆ allowAccessToEnclosingDirectory

bool juce::WebBrowserComponent::Options::AppleWkWebView::allowAccessToEnclosingDirectory = false
private

The documentation for this class was generated from the following file: