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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user