X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-demo.git;a=blobdiff_plain;f=examples%2Fweb-view%2Fweb-view-example.cpp;h=7351fa887d8e5e190c8a47e879cc217b83b9c8dd;hp=b1aed6f15e3727369530321f61af82db458c5711;hb=8873335cbc3c6deae0e010ee0a71e149e08bff50;hpb=216ee2ded546138e3c7ac0d7b875885f9f22d506 diff --git a/examples/web-view/web-view-example.cpp b/examples/web-view/web-view-example.cpp old mode 100644 new mode 100755 index b1aed6f..7351fa8 --- a/examples/web-view/web-view-example.cpp +++ b/examples/web-view/web-view-example.cpp @@ -68,8 +68,8 @@ public: mWebView.SetProperty(Actor::Property::ANCHOR_POINT, Dali::AnchorPoint::CENTER); mWebView.SetProperty(Actor::Property::POSITION, Vector2(0, 0)); mWebView.SetProperty(Actor::Property::SIZE, Vector2(width, height)); - mWebView.PageLoadStartedSignal().Connect(this, &WebViewController::OnPageLoadStarted); - mWebView.PageLoadFinishedSignal().Connect(this, &WebViewController::OnPageLoadFinished); + mWebView.RegisterPageLoadStartedCallback(std::bind(&WebViewController::OnPageLoadStarted, this, std::placeholders::_1)); + mWebView.RegisterPageLoadFinishedCallback(std::bind(&WebViewController::OnPageLoadFinished, this, std::placeholders::_1)); std::string url = GetNextUrl(); mWebView.LoadUrl(url); @@ -88,12 +88,12 @@ public: Toolkit::KeyboardFocusManager::Get().SetCurrentFocusActor(mWebView); } - void OnPageLoadStarted(Toolkit::WebView view, const std::string& url) + void OnPageLoadStarted(const std::string& url) { mAddressLabel.SetProperty(Toolkit::TextLabel::Property::TEXT, "Loading"); } - void OnPageLoadFinished(Toolkit::WebView view, const std::string& url) + void OnPageLoadFinished(const std::string& url) { mAddressLabel.SetProperty(Toolkit::TextLabel::Property::TEXT, url.c_str()); }