Change WebEngine API
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / web-engine.cpp
index b8921c0..9233f28 100644 (file)
@@ -128,14 +128,9 @@ void WebEngine::EvaluateJavaScript( const std::string& script )
   GetImplementation( *this ).EvaluateJavaScript( script );
 }
 
-void WebEngine::AddJavaScriptInterface( const std::string& exposedObjectName, const std::string& jsFunctionName, std::function< std::string(const std::string&) > cb )
+void WebEngine::AddJavaScriptMessageHandler( const std::string& exposedObjectName, std::function< void( const std::string& ) > handler )
 {
-  GetImplementation( *this ).AddJavaScriptInterface( exposedObjectName, jsFunctionName, cb );
-}
-
-void WebEngine::RemoveJavascriptInterface( const std::string& exposedObjectName, const std::string& jsFunctionName )
-{
-  GetImplementation( *this ).RemoveJavascriptInterface( exposedObjectName, jsFunctionName );
+  GetImplementation( *this ).AddJavaScriptMessageHandler( exposedObjectName, handler );
 }
 
 void WebEngine::ClearHistory()