[Tizen] Add WebView FeedMouseWheel as hidden api 92/316592/1 accepted/tizen/9.0/unified/20241216.142732
authordongsug.song <dongsug.song@samsung.com>
Sat, 14 Dec 2024 06:56:46 +0000 (15:56 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Sat, 14 Dec 2024 06:56:46 +0000 (15:56 +0900)
Change-Id: I8d6993a07ab558a13424bf6af4866a725bec4be6

dali-toolkit/devel-api/controls/web-view/web-view.cpp
dali-toolkit/devel-api/controls/web-view/web-view.h
dali-toolkit/internal/controls/web-view/web-view-impl.cpp
dali-toolkit/internal/controls/web-view/web-view-impl.h

index 9446d65de52a395bfde302d96423954fc13ba2d3..4c3556fa381b5a495f5d67fede46853c2c3022ac 100755 (executable)
@@ -484,6 +484,11 @@ void WebView::RegisterUserMediaPermissionRequestCallback(Dali::WebEnginePlugin::
   Dali::Toolkit::GetImpl(*this).RegisterUserMediaPermissionRequestCallback(callback);
 }
 
+void WebView::FeedMouseWheel(bool yDirection, int step, int x, int y)
+{
+  Dali::Toolkit::GetImpl(*this).FeedMouseWheel(yDirection, step, x, y);
+}
+
 
 WebView::WebView(Internal::WebView& implementation)
 : Control(implementation)
index d216539aad214f8799ed7d441ebb208ab8beea51..62a68a0d8e7e28ece1950abef892e9e48c78459c 100755 (executable)
@@ -854,6 +854,17 @@ 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);
+
+
 public: // Not intended for application developers
   /// @cond internal
   /**
index a7eda72f7a9810e7d019f0225869a98f62286653..b0fe2e78d67a9052a64a17010fe22fe116c8e2ff 100644 (file)
@@ -989,6 +989,14 @@ void WebView::RegisterUserMediaPermissionRequestCallback(Dali::WebEnginePlugin::
   }
 }
 
+void WebView::FeedMouseWheel(bool yDirection, int step, int x, int y)
+{
+  if(mWebEngine)
+  {
+    mWebEngine.FeedMouseWheel(yDirection, step, x, y);
+  }
+}
+
 void WebView::OnFrameRendered()
 {
   if(mFrameRenderedCallback)
index fce9dd2d44ae7fb2cd6e89c7f50f6d9ed4f996b0..559ac5db2c3ddcb1085ebe7224b2acec2c4fc231 100644 (file)
@@ -482,6 +482,11 @@ public:
    */
   void RegisterUserMediaPermissionRequestCallback(Dali::WebEnginePlugin::WebEngineUserMediaPermissionRequestCallback callback);
 
+  /**
+   * @copydoc Dali::Toolkit::WebView::FeedMouseWheel()
+   */
+  void FeedMouseWheel(bool yDirection, int step, int x, int y);
+
 public: // Properties
   /**
    * @brief Called when a property of an object of this type is set.