X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Fweb-view%2Fweb-view.h;h=0ee8af7449dc4b00d0e8f223b7299ace23be1c97;hb=5feee171a62b20f7d7b8cd1bcfdf5abb79bdd524;hp=55908e8e0838124d86147a80e5427ec6f18da896;hpb=a0389a25a5ce0e8b539c75a6f37b75d3286dacef;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/web-view/web-view.h b/dali-toolkit/devel-api/controls/web-view/web-view.h index 55908e8..0ee8af7 100755 --- a/dali-toolkit/devel-api/controls/web-view/web-view.h +++ b/dali-toolkit/devel-api/controls/web-view/web-view.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_WEB_VIEW_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. @@ -28,12 +28,13 @@ namespace Dali { +class WebEngineContext; +class WebEngineCookieManager; + namespace Toolkit { class ImageView; class WebBackForwardList; -class WebContext; -class WebCookieManager; class WebSettings; namespace Internal DALI_INTERNAL @@ -216,6 +217,21 @@ public: static WebView New(uint32_t argc, char** argv); /** + * @brief Find web view by web engine plugin. + */ + static Toolkit::WebView FindWebView(Dali::WebEnginePlugin* plugin); + + /** + * @brief Get context of web engine. + */ + static Dali::WebEngineContext* GetContext(); + + /** + * @brief Get cookie manager of web engine. + */ + static Dali::WebEngineCookieManager* GetCookieManager(); + + /** * @brief Create an uninitialized WebView. */ WebView(); @@ -259,19 +275,14 @@ public: Dali::Toolkit::WebSettings* GetSettings() const; /** - * @brief Get WebContext of WebEngine. - */ - Dali::Toolkit::WebContext* GetContext() const; - - /** - * @brief Get CookieManager of WebEngine. + * @brief Get WebBackForwardList of WebEngine. */ - Dali::Toolkit::WebCookieManager* GetCookieManager() const; + Dali::Toolkit::WebBackForwardList* GetBackForwardList() const; /** - * @brief Get WebBackForwardList of WebEngine. + * @brief Gets web engine plugin. */ - Dali::Toolkit::WebBackForwardList* GetBackForwardList() const; + Dali::WebEnginePlugin* GetPlugin() const; /** * @brief Get favicon of web page. @@ -316,7 +327,7 @@ public: * * @return true if successfully request, false otherwise */ - bool LoadContents(const std::string& contents, uint32_t contentSize, const std::string& mimeType, const std::string& encoding, const std::string& baseUri); + bool LoadContents(const int8_t* contents, uint32_t contentSize, const std::string& mimeType, const std::string& encoding, const std::string& baseUri); /** * @brief Reload the Web. @@ -699,6 +710,13 @@ public: void RegisterNavigationPolicyDecidedCallback(Dali::WebEnginePlugin::WebEngineNavigationPolicyDecidedCallback callback); /** + * @brief Callback to be called when a new window would be created. + * + * @param[in] callback + */ + void RegisterNewWindowCreatedCallback(Dali::WebEnginePlugin::WebEngineNewWindowCreatedCallback callback); + + /** * @brief Callback to be called when certificate need be confirmed. * * @param[in] callback