Add an API for getting web view when request is intercepted. 97/278797/1
authorhuayong.xu <huayong.xu@samsung.com>
Tue, 26 Jul 2022 07:30:20 +0000 (15:30 +0800)
committerhuayong.xu <huayong.xu@samsung.com>
Tue, 26 Jul 2022 07:30:20 +0000 (15:30 +0800)
Change-Id: I03aad2d08cc6df178056006392a05876a7841c13

dali/devel-api/adaptor-framework/web-engine/web-engine-request-interceptor.h
dali/devel-api/adaptor-framework/web-engine/web-engine.cpp
dali/devel-api/adaptor-framework/web-engine/web-engine.h
dali/internal/web-engine/common/web-engine-impl.cpp [changed mode: 0644->0755]
dali/internal/web-engine/common/web-engine-impl.h [changed mode: 0644->0755]

index aa8889d..fc88806 100755 (executable)
@@ -19,6 +19,7 @@
  */
 
 // 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>
@@ -44,6 +45,13 @@ public:
   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
index 5a39d11..bba76f0 100755 (executable)
@@ -101,6 +101,11 @@ void WebEngine::Destroy()
   GetImplementation(*this).Destroy();
 }
 
+Dali::WebEnginePlugin* WebEngine::GetPlugin() const
+{
+  return GetImplementation(*this).GetPlugin();
+}
+
 NativeImageSourcePtr WebEngine::GetNativeImageSource()
 {
   return GetImplementation(*this).GetNativeImageSource();
index 0af9cbe..cdc5b21 100755 (executable)
@@ -123,6 +123,11 @@ public:
   void Destroy();
 
   /**
+   * @brief Gets web engine plugin.
+   */
+  Dali::WebEnginePlugin* GetPlugin() const;
+
+  /**
    * @brief Get native image source to render.
    */
   NativeImageSourcePtr GetNativeImageSource();
old mode 100644 (file)
new mode 100755 (executable)
index 1ec614a..558dac7
@@ -227,6 +227,11 @@ void WebEngine::Destroy()
   mPlugin->Destroy();
 }
 
+Dali::WebEnginePlugin* WebEngine::GetPlugin() const
+{
+  return mPlugin;
+}
+
 Dali::NativeImageSourcePtr WebEngine::GetNativeImageSource()
 {
   return mPlugin->GetNativeImageSource();
old mode 100644 (file)
new mode 100755 (executable)
index 7b9edac..085c28a
@@ -83,6 +83,11 @@ public:
   void Destroy();
 
   /**
+   * @copydoc Dali::WebEngine::GetPlugin()
+   */
+  Dali::WebEnginePlugin* GetPlugin() const;
+
+  /**
    * @copydoc Dali::WebEngine::GetNativeImageSource()
    */
   Dali::NativeImageSourcePtr GetNativeImageSource();