return Dali::Toolkit::GetImpl(*this).CreateHitTestAsynchronously(x, y, mode, callback);
}
+void WebView::ExitFullscreen()
+{
+ Dali::Toolkit::GetImpl(*this).ExitFullscreen();
+}
+
void WebView::ClearHistory()
{
Dali::Toolkit::GetImpl(*this).ClearHistory();
Dali::Toolkit::GetImpl(*this).RegisterNavigationPolicyDecidedCallback(callback);
}
+void WebView::RegisterNewWindowPolicyDecidedCallback(Dali::WebEnginePlugin::WebEngineNewWindowPolicyDecidedCallback callback)
+{
+ Dali::Toolkit::GetImpl(*this).RegisterNewWindowPolicyDecidedCallback(callback);
+}
+
void WebView::RegisterNewWindowCreatedCallback(Dali::WebEnginePlugin::WebEngineNewWindowCreatedCallback callback)
{
Dali::Toolkit::GetImpl(*this).RegisterNewWindowCreatedCallback(callback);
Dali::Toolkit::GetImpl(*this).RegisterContextMenuHiddenCallback(callback);
}
+void WebView::RegisterFullscreenEnteredCallback(Dali::WebEnginePlugin::WebEngineFullscreenEnteredCallback callback)
+{
+ Dali::Toolkit::GetImpl(*this).RegisterFullscreenEnteredCallback(callback);
+}
+
+void WebView::RegisterFullscreenExitedCallback(Dali::WebEnginePlugin::WebEngineFullscreenExitedCallback callback)
+{
+ Dali::Toolkit::GetImpl(*this).RegisterFullscreenExitedCallback(callback);
+}
+
+void WebView::RegisterTextFoundCallback(Dali::WebEnginePlugin::WebEngineTextFoundCallback callback)
+{
+ Dali::Toolkit::GetImpl(*this).RegisterTextFoundCallback(callback);
+}
+
void WebView::GetPlainTextAsynchronously(Dali::WebEnginePlugin::PlainTextReceivedCallback callback)
{
Dali::Toolkit::GetImpl(*this).GetPlainTextAsynchronously(callback);
bool CreateHitTestAsynchronously(int32_t x, int32_t y, Dali::WebEngineHitTest::HitTestMode mode, Dali::WebEnginePlugin::WebEngineHitTestCreatedCallback callback);
/**
+ * @brief Exit fullscreen.
+ */
+ void ExitFullscreen();
+
+ /**
* @brief Clear the history of Web.
*/
void ClearHistory();
void RegisterNavigationPolicyDecidedCallback(Dali::WebEnginePlugin::WebEngineNavigationPolicyDecidedCallback callback);
/**
+ * @brief Callback to be called when new window policy would be decided.
+ *
+ * @param[in] callback
+ */
+ void RegisterNewWindowPolicyDecidedCallback(Dali::WebEnginePlugin::WebEngineNewWindowPolicyDecidedCallback callback);
+
+ /**
* @brief Callback to be called when a new window would be created.
*
* @param[in] callback
void RegisterContextMenuHiddenCallback(Dali::WebEnginePlugin::WebEngineContextMenuHiddenCallback callback);
/**
+ * @brief Callback to be called when fullscreen would be entered.
+ *
+ * @param[in] callback
+ */
+ void RegisterFullscreenEnteredCallback(Dali::WebEnginePlugin::WebEngineFullscreenEnteredCallback callback);
+
+ /**
+ * @brief Callback to be called when fullscreen would be exited.
+ *
+ * @param[in] callback
+ */
+ void RegisterFullscreenExitedCallback(Dali::WebEnginePlugin::WebEngineFullscreenExitedCallback callback);
+
+ /**
+ * @brief Callback to be called when text would be found.
+ *
+ * @param[in] callback
+ */
+ void RegisterTextFoundCallback(Dali::WebEnginePlugin::WebEngineTextFoundCallback callback);
+
+ /**
* @brief Get a plain text of current web page asynchronously.
*
* @param[in] callback The callback function called asynchronously.
return mWebEngine ? mWebEngine.CheckVideoPlayingAsynchronously(std::move(callback)) : false;
}
+void WebView::ExitFullscreen()
+{
+ if(mWebEngine)
+ {
+ mWebEngine.ExitFullscreen();
+ }
+}
+
void WebView::RegisterGeolocationPermissionCallback(Dali::WebEnginePlugin::GeolocationPermissionCallback callback)
{
if(mWebEngine)
}
}
+void WebView::RegisterNewWindowPolicyDecidedCallback(Dali::WebEnginePlugin::WebEngineNewWindowPolicyDecidedCallback callback)
+{
+ if(mWebEngine)
+ {
+ mWebEngine.RegisterNewWindowPolicyDecidedCallback(callback);
+ }
+}
+
void WebView::RegisterNewWindowCreatedCallback(Dali::WebEnginePlugin::WebEngineNewWindowCreatedCallback callback)
{
if(mWebEngine)
}
}
+void WebView::RegisterFullscreenEnteredCallback(Dali::WebEnginePlugin::WebEngineFullscreenEnteredCallback callback)
+{
+ if(mWebEngine)
+ {
+ mWebEngine.RegisterFullscreenEnteredCallback(callback);
+ }
+}
+
+void WebView::RegisterFullscreenExitedCallback(Dali::WebEnginePlugin::WebEngineFullscreenExitedCallback callback)
+{
+ if(mWebEngine)
+ {
+ mWebEngine.RegisterFullscreenExitedCallback(callback);
+ }
+}
+
+void WebView::RegisterTextFoundCallback(Dali::WebEnginePlugin::WebEngineTextFoundCallback callback)
+{
+ if(mWebEngine)
+ {
+ mWebEngine.RegisterTextFoundCallback(callback);
+ }
+}
+
void WebView::GetPlainTextAsynchronously(Dali::WebEnginePlugin::PlainTextReceivedCallback callback)
{
if(mWebEngine)
bool CheckVideoPlayingAsynchronously(Dali::WebEnginePlugin::VideoPlayingCallback callback);
/**
+ * @copydoc Dali::Toolkit::WebView::ExitFullscreen()
+ */
+ void ExitFullscreen();
+
+ /**
* @copydoc Dali::Toolkit::WebView::RegisterGeolocationPermissionCallback()
*/
void RegisterGeolocationPermissionCallback(Dali::WebEnginePlugin::GeolocationPermissionCallback callback);
void RegisterNavigationPolicyDecidedCallback(Dali::WebEnginePlugin::WebEngineNavigationPolicyDecidedCallback callback);
/**
+ * @copydoc Dali::Toolkit::WebView::RegisterNewWindowPolicyDecidedCallback()
+ */
+ void RegisterNewWindowPolicyDecidedCallback(Dali::WebEnginePlugin::WebEngineNewWindowPolicyDecidedCallback callback);
+
+ /**
* @copydoc Dali::Toolkit::WebView::RegisterNewWindowCreatedCallback()
*/
void RegisterNewWindowCreatedCallback(Dali::WebEnginePlugin::WebEngineNewWindowCreatedCallback callback);
void RegisterContextMenuHiddenCallback(Dali::WebEnginePlugin::WebEngineContextMenuHiddenCallback callback);
/**
+ * @copydoc Dali::Toolkit::WebView::RegisterFullscreenEnteredCallback()
+ */
+ void RegisterFullscreenEnteredCallback(Dali::WebEnginePlugin::WebEngineFullscreenEnteredCallback callback);
+
+ /**
+ * @copydoc Dali::Toolkit::WebView::RegisterFullscreenExitedCallback()
+ */
+ void RegisterFullscreenExitedCallback(Dali::WebEnginePlugin::WebEngineFullscreenExitedCallback callback);
+
+ /**
+ * @copydoc Dali::Toolkit::WebView::RegisterTextFoundCallback()
+ */
+ void RegisterTextFoundCallback(Dali::WebEnginePlugin::WebEngineTextFoundCallback callback);
+
+ /**
* @copydoc Dali::Toolkit::WebView::GetPlainTextAsynchronously()
*/
void GetPlainTextAsynchronously(Dali::WebEnginePlugin::PlainTextReceivedCallback callback);