Replace Signal with std::function. 97/260897/5
authorhuayong.xu <huayong.xu@samsung.com>
Tue, 6 Jul 2021 02:29:13 +0000 (10:29 +0800)
committerhuayong.xu <huayong.xu@samsung.com>
Wed, 7 Jul 2021 07:45:58 +0000 (15:45 +0800)
commit04ac566274b389acb4913ef8af74851c69c99918
tree5990b1964df17a63f0f1a25eb8af5640a6fa02d5
parent67fd107092cde5f3477483f437787cea61d6ebc4
Replace Signal with std::function.

Originally Signal is used to notify webview when callback of web
engine is called. If Signal is called with a std::shared_ptr<X>,
lifecyle of object X would be managed by Signal only in
csharp-binder. So if Signal are destroyed, object X would be
destroyed too. This might cause some problem.
This patch is to replace Signal with std::fuction, and replace
std:shared_ptr with unique_ptr. Lifecycle of object X would not
be associated with that of Signal.

Change-Id: I7ce7cd977994308541ac645494b6dea97765e818
dali/devel-api/adaptor-framework/web-engine-plugin.h
dali/devel-api/adaptor-framework/web-engine.cpp
dali/devel-api/adaptor-framework/web-engine.h
dali/internal/web-engine/common/web-engine-impl.cpp
dali/internal/web-engine/common/web-engine-impl.h