[Bug 553149] Implement sendCrossProcessKeyEvent for e10s. r=smaug

This commit is contained in:
Doug Turner
2010-03-18 23:52:18 -07:00
parent bd53552100
commit 9de3ae2dd3
8 changed files with 86 additions and 1 deletions

View File

@@ -1577,6 +1577,23 @@ nsFrameLoader::ActivateFrameEvent(const nsAString& aType,
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsFrameLoader::SendCrossProcessKeyEvent(const nsAString& aType,
PRInt32 aKeyCode,
PRInt32 aCharCode,
PRInt32 aModifiers,
PRBool aPreventDefault)
{
#ifdef MOZ_IPC
if (mChildProcess) {
mChildProcess->SendKeyEvent(aType, aKeyCode, aCharCode, aModifiers,
aPreventDefault);
return NS_OK;
}
#endif
return NS_ERROR_FAILURE;
}
nsresult
nsFrameLoader::CreateStaticClone(nsIFrameLoader* aDest)
{