projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a callback for navigation policy in web view.
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
devel-api
/
controls
/
web-view
/
web-cookie-manager.h
diff --git
a/dali-toolkit/devel-api/controls/web-view/web-cookie-manager.h
b/dali-toolkit/devel-api/controls/web-view/web-cookie-manager.h
index
adb8481
..
421db32
100755
(executable)
--- a/
dali-toolkit/devel-api/controls/web-view/web-cookie-manager.h
+++ b/
dali-toolkit/devel-api/controls/web-view/web-cookie-manager.h
@@
-2,7
+2,7
@@
#define DALI_TOOLKIT_WEB_COOKIE_MANAGER_H
/*
#define DALI_TOOLKIT_WEB_COOKIE_MANAGER_H
/*
- * Copyright (c) 202
0
Samsung Electronics Co., Ltd.
+ * Copyright (c) 202
1
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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-19,8
+19,8
@@
*/
// EXTERNAL INCLUDES
*/
// EXTERNAL INCLUDES
-#include <string>
#include <dali/devel-api/adaptor-framework/web-engine-cookie-manager.h>
#include <dali/devel-api/adaptor-framework/web-engine-cookie-manager.h>
+#include <string>
// INTERNAL INCLUDES
#include <dali-toolkit/public-api/dali-toolkit-common.h>
// INTERNAL INCLUDES
#include <dali-toolkit/public-api/dali-toolkit-common.h>
@@
-31,14
+31,13
@@
class WebEngineCookieManager;
namespace Toolkit
{
namespace Toolkit
{
-
/**
* @addtogroup dali_toolkit_controls_web_view
* @{
*/
/**
/**
* @addtogroup dali_toolkit_controls_web_view
* @{
*/
/**
- * @brief WebCookieManager is a control for
settings
of WebView.
+ * @brief WebCookieManager is a control for
cookie manager
of WebView.
*
*
* For working WebCookieManager, a WebView should be provided.
*
*
* For working WebCookieManager, a WebView should be provided.
@@
-47,12
+46,11
@@
namespace Toolkit
class DALI_TOOLKIT_API WebCookieManager
{
public:
class DALI_TOOLKIT_API WebCookieManager
{
public:
-
/**
* @brief Creates a WebCookieManager.
* @param[in] manager A #Dali::WebEngineCookieManager
*/
/**
* @brief Creates a WebCookieManager.
* @param[in] manager A #Dali::WebEngineCookieManager
*/
- WebCookieManager(
Dali::WebEngineCookieManager& manager
);
+ WebCookieManager(
Dali::WebEngineCookieManager& manager
);
/**
* @brief Destructor.
/**
* @brief Destructor.
@@
-67,7
+65,7
@@
public:
*
* @param[in] policy A #Dali::WebEngineCookieManager::CookieAcceptPolicy
*/
*
* @param[in] policy A #Dali::WebEngineCookieManager::CookieAcceptPolicy
*/
- void SetCookieAcceptPolicy(Dali::WebEngineCookieManager::CookieAcceptPolicy policy
);
+ void SetCookieAcceptPolicy(Dali::WebEngineCookieManager::CookieAcceptPolicy policy);
/**
* @brief Gets the cookie acceptance policy. The default is Toolkit::WebCookieManager::CookieAcceptPolicy::NO_THIRD_PARTY.
/**
* @brief Gets the cookie acceptance policy. The default is Toolkit::WebCookieManager::CookieAcceptPolicy::NO_THIRD_PARTY.
@@
-93,11
+91,17
@@
public:
* @param[in] path The path where to read/write Cookies
* @param[in] storage The type of storage
*/
* @param[in] path The path where to read/write Cookies
* @param[in] storage The type of storage
*/
- void SetPersistentStorage(
const std::string& path, Dali::WebEngineCookieManager::CookiePersistentStorage storage
);
+ void SetPersistentStorage(
const std::string& path, Dali::WebEngineCookieManager::CookiePersistentStorage storage
);
-private:
+ /**
+ * @brief Watch for cookies' changes in @a manager.
+ *
+ * @param[in] callback cookies are added, removed or modified.
+ */
+ void ChangesWatch(Dali::WebEngineCookieManager::WebEngineCookieManagerChangesWatchCallback callback);
- Dali::WebEngineCookieManager& mWebEngineCookieManager;
+private:
+ Dali::WebEngineCookieManager& mWebEngineCookieManager;
};
/**
};
/**