Example #1
0
	void Awesomium::setupCallback(char *jsObjectName, char* callbackFunctionName)
	{
		awe_string* awes_name = awe_string_create_from_ascii(jsObjectName, strlen(jsObjectName));	
		awe_string* awes_callback = awe_string_create_from_ascii(callbackFunctionName,strlen(callbackFunctionName));

		awe_webview_create_object(webView, awes_name);			
		awe_webview_set_object_callback(webView, awes_name, awes_callback);
		
		awe_string_destroy(awes_name);
		awe_string_destroy(awes_callback);
		
		awe_webview_set_callback_js_callback(webView, callback_UI);
	}
Example #2
0
void Menu::RegisterCallback(const std::string& callbackName)
{
	awe_webview_set_object_callback( mWebView, AweString("Native"), AweString(callbackName.c_str()) ); 
}