Added Mark Goddard from OMTP's changes to add "Refresh" to API and implementation.

Also added Refresh button to EmbeddedMozilla.


git-svn-id: svn://10.0.0.236/trunk@45913 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
1999-09-03 19:28:47 +00:00
parent 01b35cfe60
commit 19cc7f8d9d
8 changed files with 140 additions and 6 deletions

View File

@@ -564,6 +564,35 @@ wsGetURLEvent::handleEvent ()
return NULL;
} // handleEvent()
// Added by Mark Goddard OTMP 9/2/1999
/*
* wsRefreshEvent
*/
wsRefreshEvent::wsRefreshEvent(nsIWebShell* webShell) :
nsActionEvent(),
mWebShell(webShell)
{
}
void *
wsRefreshEvent::handleEvent ()
{
if (mWebShell) {
printf("handleEvent(Refresh())\n");
nsresult rv = mWebShell->Reload(nsIChannel::LOAD_NORMAL);
printf("result = %lx\n", rv);
return (void *) rv;
}
return NULL;
} // handleEvent()
// EOF