*/
// EXTERNAL INCLUDES
+#include <dali/devel-api/adaptor-framework/web-engine/web-engine-plugin.h>
#include <dali/public-api/common/intrusive-ptr.h>
#include <dali/public-api/object/property-map.h>
#include <dali/public-api/object/ref-object.h>
virtual ~WebEngineRequestInterceptor() = default;
/**
+ * @brief Gets web engine in which http request is intercepted.
+ *
+ * @return web engine if succeeded or null otherwise
+ */
+ virtual Dali::WebEnginePlugin* GetWebEngine() const = 0;
+
+ /**
* @brief Returns request url.
*
* @return url if succeeded or empty otherwise
GetImplementation(*this).Destroy();
}
+Dali::WebEnginePlugin* WebEngine::GetPlugin() const
+{
+ return GetImplementation(*this).GetPlugin();
+}
+
NativeImageSourcePtr WebEngine::GetNativeImageSource()
{
return GetImplementation(*this).GetNativeImageSource();
void Destroy();
/**
+ * @brief Gets web engine plugin.
+ */
+ Dali::WebEnginePlugin* GetPlugin() const;
+
+ /**
* @brief Get native image source to render.
*/
NativeImageSourcePtr GetNativeImageSource();
mPlugin->Destroy();
}
+Dali::WebEnginePlugin* WebEngine::GetPlugin() const
+{
+ return mPlugin;
+}
+
Dali::NativeImageSourcePtr WebEngine::GetNativeImageSource()
{
return mPlugin->GetNativeImageSource();
void Destroy();
/**
+ * @copydoc Dali::WebEngine::GetPlugin()
+ */
+ Dali::WebEnginePlugin* GetPlugin() const;
+
+ /**
* @copydoc Dali::WebEngine::GetNativeImageSource()
*/
Dali::NativeImageSourcePtr GetNativeImageSource();