X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fadaptor-framework%2Fweb-engine%2Fweb-engine-plugin.h;h=4c631bf618a69eb680b8a2e0a070530d0fb4667e;hb=39e92ce9125526ae5d32882de44f01b03d27dc5a;hp=7a53042370e5c1c797ae58bd9136fe1d526b378a;hpb=18edb388bb7793dee85f98aa3a3533abce9a40bf;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/adaptor-framework/web-engine/web-engine-plugin.h b/dali/devel-api/adaptor-framework/web-engine/web-engine-plugin.h index 7a53042..4c631bf 100755 --- a/dali/devel-api/adaptor-framework/web-engine/web-engine-plugin.h +++ b/dali/devel-api/adaptor-framework/web-engine/web-engine-plugin.h @@ -2,7 +2,7 @@ #define DALI_WEB_ENGINE_PLUGIN_H /* - * Copyright (c) 2022 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ // EXTERNAL INCLUDES #include #include -#include #include #include @@ -39,9 +38,7 @@ class TouchEvent; class WebEngineBackForwardList; class WebEngineCertificate; class WebEngineConsoleMessage; -class WebEngineContext; class WebEngineContextMenu; -class WebEngineCookieManager; class WebEngineFormRepostDecision; class WebEngineHitTest; class WebEngineHttpAuthHandler; @@ -59,11 +56,6 @@ class WebEnginePlugin { public: /** - * @brief WebView signal type related with frame rendered. - */ - using WebEngineFrameRenderedSignalType = Signal; - - /** * @brief WebEngine callback related with page loading. */ using WebEnginePageLoadCallback = std::function; @@ -174,6 +166,11 @@ public: using WebEngineNavigationPolicyDecidedCallback = std::function)>; /** + * @brief WebView callback related with a new window would be created. + */ + using WebEngineNewWindowCreatedCallback = std::function; + + /** * @brief Hit test callback called after hit test is created asynchronously. */ using WebEngineHitTestCreatedCallback = std::function)>; @@ -317,7 +314,7 @@ public: * * @return true if successfully request, false otherwise */ - virtual bool LoadContents(const std::string& contents, uint32_t contentSize, const std::string& mimeType, const std::string& encoding, const std::string& baseUri) = 0; + virtual bool LoadContents(const int8_t* contents, uint32_t contentSize, const std::string& mimeType, const std::string& encoding, const std::string& baseUri) = 0; /** * @brief Reload the Web. @@ -760,11 +757,11 @@ public: virtual bool SendWheelEvent(const WheelEvent& event) = 0; /** - * @brief Connect to this signal to be notified when frame is rendered. + * @brief Callback to be called when frame would be rendered. * - * @return A signal object to connect with. + * @param[in] callback */ - virtual WebEngineFrameRenderedSignalType& FrameRenderedSignal() = 0; + virtual void RegisterFrameRenderedCallback(WebEngineFrameRenderedCallback callback) = 0; /** * @brief Callback to be called when page loading is started. @@ -837,6 +834,13 @@ public: virtual void RegisterNavigationPolicyDecidedCallback(WebEngineNavigationPolicyDecidedCallback callback) = 0; /** + * @brief Callback to be called when a new window would be created. + * + * @param[in] callback + */ + virtual void RegisterNewWindowCreatedCallback(WebEngineNewWindowCreatedCallback callback) = 0; + + /** * @brief Callback to be called when certificate need be confirmed. * * @param[in] callback