class WebBackForwardList;
class WebContext;
class WebContextMenu;
-class WebContextMenuItem;
class WebCookieManager;
class WebFormRepostDecision;
class WebSettings;
using WebViewHttpAuthHandlerSignalType = Signal<void(WebView, std::shared_ptr<Dali::WebEngineHttpAuthHandler>)>;
/**
- * @brief WebView signal type related with context menu customized.
+ * @brief WebView signal type related with context menu shown.
*/
- using WebViewContextMenuCustomizedSignalType = Signal<void(WebView, std::shared_ptr<Dali::WebEngineContextMenu>)>;
+ using WebViewContextMenuShownSignalType = Signal<void(WebView, std::shared_ptr<Dali::WebEngineContextMenu>)>;
/**
- * @brief WebView signal type related with context menu item selected.
+ * @brief WebView signal type related with context menu hidden.
*/
- using WebViewContextMenuItemSelectedSignalType = Signal<void(WebView, std::shared_ptr<Dali::WebEngineContextMenuItem>)>;
+ using WebViewContextMenuHiddenSignalType = Signal<void(WebView, std::shared_ptr<Dali::WebEngineContextMenu>)>;
public:
/**
Dali::Toolkit::WebBackForwardList* GetBackForwardList() const;
/**
- * @brief Get Favicon of web page.
+ * @brief Get favicon of web page.
*
- * @return Handle to a fav icon
+ * @return Handle to a favicon
*/
- Dali::Toolkit::ImageView& GetFavicon();
+ Dali::Toolkit::ImageView GetFavicon() const;
/**
* @brief Load a web page based on a given URL.
void RegisterGeolocationPermissionCallback(Dali::WebEnginePlugin::GeolocationPermissionCallback callback);
/**
+ * @brief Set or unset TTS focus of the webview.
+ * @param[in] focused True if it is gained, false lost.
+ * @return true if succeeded, false otherwise.
+ * @note It only works when the webview does not have keyinput focus. If it has keyinput focus, the TTS focus is set automatically.
+ */
+ void SetTtsFocus(bool focused);
+
+ /**
* @brief Connect to this signal to be notified when page loading is started.
*
* @return A signal object to connect with
WebViewHttpAuthHandlerSignalType& HttpAuthHandlerSignal();
/**
- * @brief Connect to this signal to be notified when context menu would be customized.
+ * @brief Connect to this signal to be notified when context menu would be shown.
*
* @return A signal object to connect with.
*/
- WebViewContextMenuCustomizedSignalType& ContextMenuCustomizedSignal();
+ WebViewContextMenuShownSignalType& ContextMenuShownSignal();
/**
- * @brief Connect to this signal to be notified when context menu item is selected.
+ * @brief Connect to this signal to be notified when context menu would be hidden.
*
* @return A signal object to connect with.
*/
- WebViewContextMenuItemSelectedSignalType& ContextMenuItemSelectedSignal();
+ WebViewContextMenuHiddenSignalType& ContextMenuHiddenSignal();
public: // Not intended for application developers
/// @cond internal