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()