[Tizen] Add WebView FeedMouseWheel as hidden api 91/316591/1
authordongsug.song <dongsug.song@samsung.com>
Sat, 14 Dec 2024 06:55:04 +0000 (15:55 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Sat, 14 Dec 2024 06:55:04 +0000 (15:55 +0900)
Change-Id: I94d7aeec07226f9af4b468febf89627b6371be39

dali/devel-api/adaptor-framework/web-engine/web-engine-plugin.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
dali/internal/web-engine/common/web-engine-impl.h

index 252514cf95c00c0a4de935419443fcab2e3a8e4c..438540fd4e65fcb7b17cfacfca8fb3b2598b0e53 100755 (executable)
@@ -1010,6 +1010,16 @@ public:
    */
   virtual void RegisterUserMediaPermissionRequestCallback(WebEngineUserMediaPermissionRequestCallback callback) = 0;
 
+  /**
+   * @brief Feed mouse wheel event forcefully.
+   *
+   * @param[in] yDirection wheel event's y direction.
+   * @param[in] step step of wheel event.
+   * @param[in] x x value of wheel event.
+   * @param[in] y y value of wheel event.
+   */
+  virtual void FeedMouseWheel(bool yDirection, int step, int x, int y) = 0;
+
 };
 
 // specialization has to be done in the same namespace
index 2d60f26c12966c7edb2ea27f338cc8c1d167086d..25fac97a3ce9a6c83553a749965eb64d4402a5fe 100755 (executable)
@@ -642,4 +642,9 @@ void WebEngine::RegisterUserMediaPermissionRequestCallback(Dali::WebEnginePlugin
   GetImplementation(*this).RegisterUserMediaPermissionRequestCallback(callback);
 }
 
+void WebEngine::FeedMouseWheel(bool yDirection, int step, int x, int y)
+{
+  GetImplementation(*this).FeedMouseWheel(yDirection, step, x, y);
+}
+
 } // namespace Dali
index 1be4a775f81dea289407a01628b6a7be35963689..1d451ecb1e90b32748d0eef47de5fff77f7ec1f3 100755 (executable)
@@ -882,6 +882,15 @@ public:
    */
   void RegisterUserMediaPermissionRequestCallback(Dali::WebEnginePlugin::WebEngineUserMediaPermissionRequestCallback callback);
 
+  /**
+   * @brief Feed mouse wheel event forcefully.
+   *
+   * @param[in] yDirection wheel event's y direction.
+   * @param[in] step step of wheel event.
+   * @param[in] x x value of wheel event.
+   * @param[in] y y value of wheel event.
+   */
+  void FeedMouseWheel(bool yDirection, int step, int x, int y);
 
 private: // Not intended for application developers
   /**
index f81098876da1afef419fd31576f35f33d4e5cd48..feb578b329c23ea4318ef3ea2d03253319262e70 100644 (file)
@@ -866,6 +866,10 @@ void WebEngine::RegisterUserMediaPermissionRequestCallback(Dali::WebEnginePlugin
   mPlugin->RegisterUserMediaPermissionRequestCallback(callback);
 }
 
+void WebEngine::FeedMouseWheel(bool yDirection, int step, int x, int y)
+{
+  mPlugin->FeedMouseWheel(yDirection, step, x, y);
+}
 
 } // namespace Adaptor
 } // namespace Internal
index 6328460c660bee49729b579966e795f5487f0f08..e3e14e73cd4a55e046bb2bb14c629c6b0ebc78af 100755 (executable)
@@ -622,6 +622,11 @@ public:
    */
   void RegisterUserMediaPermissionRequestCallback(Dali::WebEnginePlugin::WebEngineUserMediaPermissionRequestCallback callback);
 
+  /**
+   * @copydoc Dali::WebEngine::FeedMouseWheel()
+   */
+  void FeedMouseWheel(bool yDirection, int step, int x, int y);
+
 private:
   /**
    * @brief Constructor with WebEngine type (0: Chromium, 1: LWE, otherwise: depend on system environment).