class WebEngineHttpAuthHandler;
class WebEngineLoadError;
class WebEnginePolicyDecision;
-class WebEngineRequestInterceptor;
class WebEngineSettings;
class HoverEvent;
class WheelEvent;
using VideoPlayingCallback = std::function<void(bool)>;
/**
- * @brief WebView callback related with http request interceptor.
- */
- using WebEngineRequestInterceptorCallback = std::function<void(std::unique_ptr<Dali::WebEngineRequestInterceptor>)>;
-
- /**
* @brief WebView callback related with console message logged.
*/
using WebEngineConsoleMessageReceivedCallback = std::function<void(std::unique_ptr<Dali::WebEngineConsoleMessage>)>;
using WebEngineHitTestCreatedCallback = std::function<bool(std::unique_ptr<Dali::WebEngineHitTest>)>;
/**
+ * @brief The callback to be called when the web engine received a plain text of current web page.
+ */
+ using PlainTextReceivedCallback = std::function<void(const std::string&)>;
+
+ /**
* @brief Enumeration for the scroll edge.
*/
enum class ScrollEdge
virtual void RegisterFormRepostDecidedCallback(WebEngineFormRepostDecidedCallback callback) = 0;
/**
- * @brief Callback to be called when http request need be intercepted.
- *
- * @param[in] callback
- */
- virtual void RegisterRequestInterceptorCallback(WebEngineRequestInterceptorCallback callback) = 0;
-
- /**
* @brief Callback to be called when console message will be logged.
*
* @param[in] callback
* @param[in] callback
*/
virtual void RegisterContextMenuHiddenCallback(WebEngineContextMenuHiddenCallback callback) = 0;
+
+ /**
+ * @brief Get a plain text of current web page asynchronously.
+ *
+ * @param[in] callback The callback function called asynchronously.
+ */
+ virtual void GetPlainTextAsynchronously(PlainTextReceivedCallback callback) = 0;
};
// specialization has to be done in the same namespace