From 6ef3f1e738e6a952b4bce4f4c20efd6b7f0fb949 Mon Sep 17 00:00:00 2001 From: Timur Doumler Date: Thu, 21 Apr 2016 10:42:10 +0100 Subject: [PATCH] Added asserts to clarify that WebBrowserComponent is not implemented on Linux and Android. --- .../native/juce_android_WebBrowserComponent.cpp | 4 ++++ .../juce_gui_extra/native/juce_linux_WebBrowserComponent.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/modules/juce_gui_extra/native/juce_android_WebBrowserComponent.cpp b/modules/juce_gui_extra/native/juce_android_WebBrowserComponent.cpp index 1542168830..e6bec05eea 100644 --- a/modules/juce_gui_extra/native/juce_android_WebBrowserComponent.cpp +++ b/modules/juce_gui_extra/native/juce_android_WebBrowserComponent.cpp @@ -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); } diff --git a/modules/juce_gui_extra/native/juce_linux_WebBrowserComponent.cpp b/modules/juce_gui_extra/native/juce_linux_WebBrowserComponent.cpp index 13d1981c37..6de6880e02 100644 --- a/modules/juce_gui_extra/native/juce_linux_WebBrowserComponent.cpp +++ b/modules/juce_gui_extra/native/juce_linux_WebBrowserComponent.cpp @@ -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); }