void SRPWindows::OnMethodCall(Awesomium::WebView *caller, unsigned int remote_object_id, const Awesomium::WebString &method_name, const Awesomium::JSArray &args)
{
	/*javascript callback handled, implement working example from PLBerkelium*/

	DebugToConsole("Javascript callback triggered!\n");
	DebugToConsole("name: " + String(const_cast<wchar16*>(method_name.data())) + "\n");
}
void ViewListener::OnAddConsoleMessage(Awesomium::WebView* caller, const Awesomium::WebString& message, int line_number, const Awesomium::WebString& source)
{
	if (g_WebView_AddConsoleMessageCallback != nullptr)
		g_WebView_AddConsoleMessageCallback(caller, message.data(), line_number, source.data());
}