X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fweb-view%2Fweb-view-impl.cpp;h=5836f42537083a9a3974a6f7ff4adec3df194ed8;hp=9cc4454bfdc377f8ffb050975aaabc326b835640;hb=a76ab01e4bdaf91bbf3b2588e1a8c628a152bc6a;hpb=b6e05a0ab62ca03afb1321c0c2cba059fcfe20d8 diff --git a/dali-toolkit/internal/controls/web-view/web-view-impl.cpp b/dali-toolkit/internal/controls/web-view/web-view-impl.cpp index 9cc4454..5836f42 100644 --- a/dali-toolkit/internal/controls/web-view/web-view-impl.cpp +++ b/dali-toolkit/internal/controls/web-view/web-view-impl.cpp @@ -200,19 +200,11 @@ void WebView::EvaluateJavaScript( const std::string& script ) } } -void WebView::AddJavaScriptInterface( const std::string& exposedObjectName, const std::string& jsFunctionName, std::function< std::string(const std::string&) > callback ) +void WebView::AddJavaScriptMessageHandler( const std::string& exposedObjectName, std::function< void( const std::string& ) > handler ) { if ( mWebEngine ) { - mWebEngine.AddJavaScriptInterface( exposedObjectName, jsFunctionName, callback ); - } -} - -void WebView::RemoveJavascriptInterface( const std::string& exposedObjectName, const std::string& jsFunctionName ) -{ - if ( mWebEngine ) - { - mWebEngine.RemoveJavascriptInterface( exposedObjectName, jsFunctionName ); + mWebEngine.AddJavaScriptMessageHandler( exposedObjectName, handler ); } }