Browse Source

Added asserts to clarify that WebBrowserComponent is not implemented on Linux and Android.

tags/2021-05-28
Timur Doumler 9 years ago
parent
commit
6ef3f1e738
2 changed files with 8 additions and 0 deletions
  1. +4
    -0
      modules/juce_gui_extra/native/juce_android_WebBrowserComponent.cpp
  2. +4
    -0
      modules/juce_gui_extra/native/juce_linux_WebBrowserComponent.cpp

+ 4
- 0
modules/juce_gui_extra/native/juce_android_WebBrowserComponent.cpp View File

@@ -27,6 +27,10 @@ WebBrowserComponent::WebBrowserComponent (const bool unloadPageWhenBrowserIsHidd
blankPageShown (false),
unloadPageWhenBrowserIsHidden (unloadPageWhenBrowserIsHidden_)
{
// Unfortunately, WebBrowserComponent is not implemented for Android yet!
// This is just a stub implementation without any useful functionality.
jassertfalse;
setOpaque (true);
}


+ 4
- 0
modules/juce_gui_extra/native/juce_linux_WebBrowserComponent.cpp View File

@@ -32,6 +32,10 @@ WebBrowserComponent::WebBrowserComponent (const bool unloadPageWhenBrowserIsHidd
blankPageShown (false),
unloadPageWhenBrowserIsHidden (unloadPageWhenBrowserIsHidden_)
{
// Unfortunately, WebBrowserComponent is not implemented for Linux yet!
// This is just a stub implementation without any useful functionality.
jassertfalse;
setOpaque (true);
}


Loading…
Cancel
Save