virtual std::vector<std::unique_ptr<WebEngineContextMenuItem>> GetItemList() const = 0;
/**
- * @brief Get position of the context menu.
- *
- * @return position of context menu.
- */
- virtual Dali::Vector2 GetPosition() const = 0;
-
- /**
* @brief Remove the item from the context menu.
*
* @param[in] item The context menu item to be removed
virtual void SetProxyUri(const std::string& uri) = 0;
/**
+ * @brief Get the proxy URI from the network backend of specific context.
+ *
+ * @return current proxy URI or null if it's not set
+ */
+ virtual std::string GetProxyUri() const = 0;
+
+ /**
* @brief Set a proxy auth credential to network backend of specific context.
* @details Normally, proxy auth credential should be got from the callback
* set by ewk_view_authentication_callback_set, once the username in
virtual void SetDefaultProxyAuth(const std::string& username, const std::string& password) = 0;
/**
+ * @brief Set the given proxy to network backend of specific context.
+ *
+ * @param[in] proxy URI to set
+ * @param[in] bypass rule to set
+ */
+ virtual void SetProxyBypassRule(const std::string& proxy, const std::string& bypass) = 0;
+
+ /**
+ * @brief Get the proxy bypass rule from the network backend of specific context.
+ *
+ * @return current proxy bypass rule or null string if it's not set
+ */
+ virtual std::string GetProxyBypassRule() const = 0;
+
+ /**
* @brief Add CA certificates to persistent NSS certificate database
* Function accepts a path to a CA certificate file, a path to a directory
* containing CA certificate files, or a colon-seprarated list of those.
virtual void SetCertificateFilePath(const std::string& certificatePath) = 0;
/**
+ * @brief Get CA certifcate file path
+ *
+ * It returns an internal string and should not be modified.
+ *
+ * @return certificate_file path which is set during ewk_context_certificate_file_set or null string otherwise
+ */
+ virtual std::string GetCertificateFilePath() const = 0;
+
+ /**
* @brief Request for deleting all web databases.
*/
virtual void DeleteAllWebDatabase() = 0;
virtual bool IsCacheEnabled() const = 0;
/**
- * @brief Get CA certifcate file path
- *
- * It returns an internal string and should not be modified.
+ * @brief Set application id for context.
*
- * @return @c certificate_file is path which is set during ewk_context_certificate_file_set or @c null string otherwise
+ * @param[in] appId application id
*/
- virtual std::string GetContextCertificateFile() const = 0;
+ virtual void SetAppId(const std::string& appId) = 0;
/**
- * @brief Set application id for @a context.
- *
- * @param[in] appID application id
- */
- virtual void SetContextAppId(const std::string& appID) = 0;
-
- /**
- * @brief Set application version for @a context.
+ * @brief Set application version for context.
*
* @param[in] appVersion application version
*
- * @return @c true if successful, @c false otherwise
+ * @return true if successful, false otherwise
*/
- virtual bool SetContextAppVersion(const std::string& appVersion) = 0;
+ virtual bool SetAppVersion(const std::string& appVersion) = 0;
/**
* @brief To declare application type
* @param[in] applicationType The Application_Type enum
*
*/
- virtual void SetContextApplicationType(const ApplicationType applicationType) = 0;
+ virtual void SetApplicationType(const ApplicationType applicationType) = 0;
/**
* @brief Set time offset
*
* @param[in] timeOffset The value will be added to system time as offset
*/
- virtual void SetContextTimeOffset(float timeOffset) = 0;
+ virtual void SetTimeOffset(float timeOffset) = 0;
/**
* @brief Set timezone offset
* @param[in] timeZoneOffset offset for time zone.
* @param[in] daylightSavingTime The value is for daylight saving time use.
*/
- virtual void SetContextTimeZoneOffset(float timeZoneOffset, float daylightSavingTime) = 0;
+ virtual void SetTimeZoneOffset(float timeZoneOffset, float daylightSavingTime) = 0;
+
+ /**
+ * @brief Set default zoom factor
+ *
+ * @param[in] zoomFactor default zoom factor
+ */
+ virtual void SetDefaultZoomFactor(float zoomFactor) = 0;
+
+ /**
+ * @brief Get default zoom factor
+ *
+ * Gets default zoom factor for all pages opened with this context.
+ *
+ * @return default zoom factor or negative value on error
+ */
+ virtual float GetDefaultZoomFactor() const = 0;
/**
* @brief Register url schemes as CORS enabled
virtual void RegisterJsPluginMimeTypes(const std::vector<std::string>& mimeTypes) = 0;
/**
- * @brief Set default zoom factor
- *
- * @param[in] zoomFactor default zoom factor
- */
- virtual void SetDefaultZoomFactor(float zoomFactor) = 0;
-
- /**
- * @brief Get default zoom factor
- *
- * Gets default zoom factor for all pages opened with this context.
- *
- * @return @c default zoom factor or negative value on error
- */
- virtual float GetContextDefaultZoomFactor() const = 0;
-
- /**
* @brief Request for deleting all web application caches.
*
* @return @c true on success, otherwise @c false
virtual void DeleteAllFormCandidateData() = 0;
/**
- * @brief Get the proxy URI from the network backend of specific context.
- *
- * @return current proxy URI or @c null string if it's not set
- */
- virtual std::string GetContextProxy() const = 0;
-
- /**
- * @brief Set the given proxy to network backend of specific context.
- *
- * @param[in] proxy URI to set
- * @param[in] bypass rule to set
- */
- virtual void SetContextProxy(const std::string& proxy, const std::string& bypass) = 0;
-
- /**
- * @brief Get the proxy bypass rule from the network backend of specific context.
- *
- * @return current proxy bypass rule or @c null string if it's not set
- */
- virtual std::string GetProxyBypassRule() const = 0;
-
- /**
* @brief Notify low memory to free unused memory.
*
* @return @c true on success or @c false otherwise.
class WebEngineConsoleMessage;
class WebEngineContext;
class WebEngineContextMenu;
-class WebEngineContextMenuItem;
class WebEngineCookieManager;
class WebEngineFormRepostDecision;
class WebEngineHitTest;
using WebEngineRequestInterceptorSignalType = Signal<void(std::shared_ptr<Dali::WebEngineRequestInterceptor>)>;
/**
- * @brief WebView signal type related with console message will be logged.
+ * @brief WebView signal type related with console message logged.
*/
using WebEngineConsoleMessageSignalType = Signal<void(std::shared_ptr<Dali::WebEngineConsoleMessage>)>;
using WebEngineHttpAuthHandlerSignalType = Signal<void(std::shared_ptr<Dali::WebEngineHttpAuthHandler>)>;
/**
- * @brief WebView signal type related with context menu customized.
+ * @brief WebView signal type related with context menu shown.
*/
- using WebEngineContextMenuCustomizedSignalType = Signal<void(std::shared_ptr<Dali::WebEngineContextMenu>)>;
+ using WebEngineContextMenuShownSignalType = Signal<void(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 WebEngineContextMenuItemSelectedSignalType = Signal<void(std::shared_ptr<Dali::WebEngineContextMenuItem>)>;
+ using WebEngineContextMenuHiddenSignalType = Signal<void(std::shared_ptr<Dali::WebEngineContextMenu>)>;
/**
* @brief Alert callback when JavaScript alert is called with a message.
*
* @return Url of string type
*/
- virtual const std::string& GetUrl() = 0;
+ virtual std::string GetUrl() const = 0;
/**
* @brief Load a given string as web contents.
*
* @return The string value of user agent
*/
- virtual const std::string& GetUserAgent() const = 0;
+ virtual std::string GetUserAgent() const = 0;
/**
* @brief Set user agent string.
virtual WebEngineHttpAuthHandlerSignalType& HttpAuthHandlerSignal() = 0;
/**
- * @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.
*/
- virtual WebEngineContextMenuCustomizedSignalType& ContextMenuCustomizedSignal() = 0;
+ virtual WebEngineContextMenuShownSignalType& ContextMenuShownSignal() = 0;
/**
- * @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.
*/
- virtual WebEngineContextMenuItemSelectedSignalType& ContextMenuItemSelectedSignal() = 0;
+ virtual WebEngineContextMenuHiddenSignalType& ContextMenuHiddenSignal() = 0;
};
// specialization has to be done in the same namespace
return GetImplementation(*this).GetFavicon();
}
-const std::string& WebEngine::GetUrl()
+std::string WebEngine::GetUrl() const
{
return GetImplementation(*this).GetUrl();
}
GetImplementation(*this).ClearAllTilesResources();
}
-const std::string& WebEngine::GetUserAgent() const
+std::string WebEngine::GetUserAgent() const
{
return GetImplementation(*this).GetUserAgent();
}
return GetImplementation(*this).HttpAuthHandlerSignal();
}
-Dali::WebEnginePlugin::WebEngineContextMenuCustomizedSignalType& WebEngine::ContextMenuCustomizedSignal()
+Dali::WebEnginePlugin::WebEngineContextMenuShownSignalType& WebEngine::ContextMenuShownSignal()
{
- return GetImplementation(*this).ContextMenuCustomizedSignal();
+ return GetImplementation(*this).ContextMenuShownSignal();
}
-Dali::WebEnginePlugin::WebEngineContextMenuItemSelectedSignalType& WebEngine::ContextMenuItemSelectedSignal()
+Dali::WebEnginePlugin::WebEngineContextMenuHiddenSignalType& WebEngine::ContextMenuHiddenSignal()
{
- return GetImplementation(*this).ContextMenuItemSelectedSignal();
+ return GetImplementation(*this).ContextMenuHiddenSignal();
}
} // namespace Dali
/**
* @brief Get the url.
*/
- const std::string& GetUrl();
+ std::string GetUrl() const;
/**
* @brief Load a given string as web contents.
*
* @return The string value of user agent
*/
- const std::string& GetUserAgent() const;
+ std::string GetUserAgent() const;
/**
* @brief Set user agent string.
Dali::WebEnginePlugin::WebEngineHttpAuthHandlerSignalType& 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.
*/
- Dali::WebEnginePlugin::WebEngineContextMenuCustomizedSignalType& ContextMenuCustomizedSignal();
+ Dali::WebEnginePlugin::WebEngineContextMenuShownSignalType& 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.
*/
- Dali::WebEnginePlugin::WebEngineContextMenuItemSelectedSignalType& ContextMenuItemSelectedSignal();
+ Dali::WebEnginePlugin::WebEngineContextMenuHiddenSignalType& ContextMenuHiddenSignal();
private: // Not intended for application developers
/**
return mPlugin->GetFavicon();
}
-const std::string& WebEngine::GetUrl()
+std::string WebEngine::GetUrl() const
{
return mPlugin->GetUrl();
}
-const std::string& WebEngine::GetUserAgent() const
+std::string WebEngine::GetUserAgent() const
{
return mPlugin->GetUserAgent();
}
return mPlugin->HttpAuthHandlerSignal();
}
-Dali::WebEnginePlugin::WebEngineContextMenuCustomizedSignalType& WebEngine::ContextMenuCustomizedSignal()
+Dali::WebEnginePlugin::WebEngineContextMenuShownSignalType& WebEngine::ContextMenuShownSignal()
{
- return mPlugin->ContextMenuCustomizedSignal();
+ return mPlugin->ContextMenuShownSignal();
}
-Dali::WebEnginePlugin::WebEngineContextMenuItemSelectedSignalType& WebEngine::ContextMenuItemSelectedSignal()
+Dali::WebEnginePlugin::WebEngineContextMenuHiddenSignalType& WebEngine::ContextMenuHiddenSignal()
{
- return mPlugin->ContextMenuItemSelectedSignal();
+ return mPlugin->ContextMenuHiddenSignal();
}
} // namespace Adaptor
/**
* @copydoc Dali::WebEngine::GetUrl()
*/
- const std::string& GetUrl();
+ std::string GetUrl() const;
/**
* @copydoc Dali::WebEngine::GetUserAgent()
*/
- const std::string& GetUserAgent() const;
+ std::string GetUserAgent() const;
/**
* @copydoc Dali::WebEngine::SetUserAgent()
Dali::WebEnginePlugin::WebEngineHttpAuthHandlerSignalType& HttpAuthHandlerSignal();
/**
- * @copydoc Dali::WebEngine::ContextMenuCustomizedSignal()
+ * @copydoc Dali::WebEngine::ContextMenuShownSignal()
*/
- Dali::WebEnginePlugin::WebEngineContextMenuCustomizedSignalType& ContextMenuCustomizedSignal();
+ Dali::WebEnginePlugin::WebEngineContextMenuShownSignalType& ContextMenuShownSignal();
/**
- * @copydoc Dali::WebEngine::ContextMenuItemSelectedSignal()
+ * @copydoc Dali::WebEngine::ContextMenuHiddenSignal()
*/
- Dali::WebEnginePlugin::WebEngineContextMenuItemSelectedSignalType& ContextMenuItemSelectedSignal();
+ Dali::WebEnginePlugin::WebEngineContextMenuHiddenSignalType& ContextMenuHiddenSignal();
private:
/**