Replace Signal with std::function. 03/260903/5
authorhuayong.xu <huayong.xu@samsung.com>
Tue, 6 Jul 2021 02:52:40 +0000 (10:52 +0800)
committerhuayong.xu <huayong.xu@samsung.com>
Tue, 13 Jul 2021 06:44:24 +0000 (14:44 +0800)
commit41e9b753d4490c1d20d35dc411653fecc16772cc
tree22bf9ed105e9282b1db786f71527cd85f484db23
parent8f2687c154d9fc859c58e5ee2fb42a18f9fe6e78
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: I3878d3a4a9bacc64d94e3dd2b55479da85980e90
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-web-engine.cpp
automated-tests/src/dali-toolkit/utc-Dali-WebView.cpp
dali-toolkit/devel-api/controls/web-view/web-view.cpp
dali-toolkit/devel-api/controls/web-view/web-view.h
dali-toolkit/internal/controls/web-view/web-view-impl.cpp [changed mode: 0644->0755]
dali-toolkit/internal/controls/web-view/web-view-impl.h