LMMS
Loading...
Searching...
No Matches
juce::WebBrowserComponent::Pimpl Class Reference
Inheritance diagram for juce::WebBrowserComponent::Pimpl:
juce::Thread juce::CommandReceiver::Responder

Classes

struct  HandleOnMessageThread

Public Member Functions

 Pimpl (WebBrowserComponent &parent)
 ~Pimpl () override
void init ()
void quit ()
void goToURL (const String &url, const StringArray *headers, const MemoryBlock *postData)
void goBack ()
void goForward ()
void refresh ()
void stop ()
void resized ()
 Pimpl (WebBrowserComponent &owner, const WebView2Preferences &preferences, bool useWebView2)
InternalWebViewTypegetInternalWebView ()

Private Member Functions

void killChild ()
void launchChild ()
void run () override
bool shouldExit ()
void handleCommandOnMessageThread (const String &cmd, const var &params)
void handlePageAboutToLoad (const String &url, const var &inputParams)
void handlePageLoadHadNetworkError (const var &params)
void handleCommand (const String &cmd, const var &params) override
void receiverHadError () override
Private Member Functions inherited from juce::Thread
 Thread (const String &threadName, size_t threadStackSize=0)
virtual ~Thread ()
void startThread ()
void startThread (int priority)
bool stopThread (int timeOutMilliseconds)
bool isThreadRunning () const
void signalThreadShouldExit ()
bool threadShouldExit () const
bool waitForThreadToExit (int timeOutMilliseconds) const
void addListener (Listener *)
void removeListener (Listener *)
bool setPriority (int priority)
void setAffinityMask (uint32 affinityMask)
bool wait (int timeOutMilliseconds) const
void notify () const
ThreadID getThreadId () const noexcept
const StringgetThreadName () const noexcept
Private Member Functions inherited from juce::CommandReceiver::Responder
virtual ~Responder ()

Private Attributes

bool webKitIsAvailable = false
WebBrowserComponent & owner
std::unique_ptr< CommandReceiverreceiver
int childProcess = 0
int inChannel = 0
int outChannel = 0
int threadControl [2]
std::unique_ptr< XEmbedComponent > xembed
WaitableEvent threadBlocker
std::vector< pollfd > pfds
std::unique_ptr< InternalWebViewTypeinternal

Additional Inherited Members

Private Types inherited from juce::Thread
enum  { realtimeAudioPriority = -1 }
using ThreadID = void*
Static Private Member Functions inherited from juce::Thread
static void launch (std::function< void()> functionToRun)
static bool currentThreadShouldExit ()
static bool setCurrentThreadPriority (int priority)
static void JUCE_CALLTYPE setCurrentThreadAffinityMask (uint32 affinityMask)
static void JUCE_CALLTYPE sleep (int milliseconds)
static void JUCE_CALLTYPE yield ()
static ThreadID JUCE_CALLTYPE getCurrentThreadId ()
static Thread *JUCE_CALLTYPE getCurrentThread ()
static void JUCE_CALLTYPE setCurrentThreadName (const String &newThreadName)

Constructor & Destructor Documentation

◆ Pimpl() [1/2]

juce::WebBrowserComponent::Pimpl::Pimpl ( WebBrowserComponent & parent)
inline

◆ ~Pimpl()

juce::WebBrowserComponent::Pimpl::~Pimpl ( )
inlineoverride

◆ Pimpl() [2/2]

juce::WebBrowserComponent::Pimpl::Pimpl ( WebBrowserComponent & owner,
const WebView2Preferences & preferences,
bool useWebView2 )
inline

Member Function Documentation

◆ getInternalWebView()

InternalWebViewType & juce::WebBrowserComponent::Pimpl::getInternalWebView ( )
inline

◆ goBack()

void juce::WebBrowserComponent::Pimpl::goBack ( )
inline

◆ goForward()

void juce::WebBrowserComponent::Pimpl::goForward ( )
inline

◆ goToURL()

void juce::WebBrowserComponent::Pimpl::goToURL ( const String & url,
const StringArray * headers,
const MemoryBlock * postData )
inline

◆ handleCommand()

void juce::WebBrowserComponent::Pimpl::handleCommand ( const String & cmd,
const var & params )
inlineoverrideprivatevirtual

◆ handleCommandOnMessageThread()

void juce::WebBrowserComponent::Pimpl::handleCommandOnMessageThread ( const String & cmd,
const var & params )
inlineprivate

◆ handlePageAboutToLoad()

void juce::WebBrowserComponent::Pimpl::handlePageAboutToLoad ( const String & url,
const var & inputParams )
inlineprivate

◆ handlePageLoadHadNetworkError()

void juce::WebBrowserComponent::Pimpl::handlePageLoadHadNetworkError ( const var & params)
inlineprivate

◆ init()

void juce::WebBrowserComponent::Pimpl::init ( )
inline

◆ killChild()

void juce::WebBrowserComponent::Pimpl::killChild ( )
inlineprivate

◆ launchChild()

void juce::WebBrowserComponent::Pimpl::launchChild ( )
inlineprivate

◆ quit()

void juce::WebBrowserComponent::Pimpl::quit ( )
inline

◆ receiverHadError()

void juce::WebBrowserComponent::Pimpl::receiverHadError ( )
inlineoverrideprivatevirtual

◆ refresh()

void juce::WebBrowserComponent::Pimpl::refresh ( )
inline

◆ resized()

void juce::WebBrowserComponent::Pimpl::resized ( )
inline

◆ run()

void juce::WebBrowserComponent::Pimpl::run ( )
inlineoverrideprivatevirtual

Must be implemented to perform the thread's actual code.

Remember that the thread must regularly check the threadShouldExit() method whilst running, and if this returns true it should return from the run() method as soon as possible to avoid being forcibly killed.

See also
threadShouldExit, startThread

Implements juce::Thread.

◆ shouldExit()

bool juce::WebBrowserComponent::Pimpl::shouldExit ( )
inlineprivate

◆ stop()

void juce::WebBrowserComponent::Pimpl::stop ( )
inline

Member Data Documentation

◆ childProcess

int juce::WebBrowserComponent::Pimpl::childProcess = 0
private

◆ inChannel

int juce::WebBrowserComponent::Pimpl::inChannel = 0
private

◆ internal

std::unique_ptr<InternalWebViewType> juce::WebBrowserComponent::Pimpl::internal
private

◆ outChannel

int juce::WebBrowserComponent::Pimpl::outChannel = 0
private

◆ owner

WebBrowserComponent& juce::WebBrowserComponent::Pimpl::owner
private

◆ pfds

std::vector<pollfd> juce::WebBrowserComponent::Pimpl::pfds
private

◆ receiver

std::unique_ptr<CommandReceiver> juce::WebBrowserComponent::Pimpl::receiver
private

◆ threadBlocker

WaitableEvent juce::WebBrowserComponent::Pimpl::threadBlocker
private

◆ threadControl

int juce::WebBrowserComponent::Pimpl::threadControl[2]
private

◆ webKitIsAvailable

bool juce::WebBrowserComponent::Pimpl::webKitIsAvailable = false
private

◆ xembed

std::unique_ptr<XEmbedComponent> juce::WebBrowserComponent::Pimpl::xembed
private

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