Dali::Toolkit::GetImpl(*this).FeedMouseWheel(yDirection, step, x, y);
}
+void WebView::SetVideoHole(bool enabled, bool isWaylandWindow)
+{
+ Dali::Toolkit::GetImpl(*this).SetVideoHole(enabled, isWaylandWindow);
+}
WebView::WebView(Internal::WebView& implementation)
: Control(implementation)
*/
void FeedMouseWheel(bool yDirection, int step, int x, int y);
+ /**
+ * @brief Enable video hole for a specific window type.
+ * @param[in] enabled True if enabled, false othewise.
+ * @param[in] isWaylandWindow True if wayland window, false if EFL window.
+ */
+ void SetVideoHole(bool enabled, bool isWaylandWindow);
+
/**
* @brief Register DeviceConnectionChanged callback.
*
*/
void RegisterDeviceListGetCallback(Dali::WebEnginePlugin::WebEngineDeviceListGetCallback callback);
-
public: // Not intended for application developers
/// @cond internal
/**
}
}
+void WebView::SetVideoHole(bool enabled, bool isWaylandWindow)
+{
+ mVideoHoleEnabled = enabled;
+
+ EnableBlendMode(!mVideoHoleEnabled);
+
+ if(mWebEngine)
+ {
+ DALI_LOG_DEBUG_INFO("WebView[%p] SetVideoHole(%d) isWaylandWindow(%d)\n", this, mVideoHoleEnabled, isWaylandWindow);
+ mWebEngine.SetVideoHole(mVideoHoleEnabled, isWaylandWindow);
+ }
+}
+
void WebView::OnFrameRendered()
{
if(mFrameRenderedCallback)
*/
void FeedMouseWheel(bool yDirection, int step, int x, int y);
+ /**
+ * @copydoc Dali::Toolkit::WebView::SetVideoHole()
+ */
+ void SetVideoHole(bool enabled, bool isWaylandWindow);
+
public: // Properties
/**
* @brief Called when a property of an object of this type is set.