Bug 516727 - Electrolysis+Fennec: forward mouse events from the chrome tiles to the content process

This commit is contained in:
Olli Pettay
2009-11-05 20:21:09 +02:00
parent ae46386080
commit 0dbad6d0e6
8 changed files with 94 additions and 1 deletions

View File

@@ -1470,3 +1470,24 @@ nsFrameLoader::ActivateRemoteFrame() {
#endif
return NS_ERROR_UNEXPECTED;
}
NS_IMETHODIMP
nsFrameLoader::SendCrossProcessMouseEvent(const nsAString& aType,
float aX,
float aY,
PRInt32 aButton,
PRInt32 aClickCount,
PRInt32 aModifiers,
PRBool aIgnoreRootScrollFrame)
{
#ifdef MOZ_IPC
if (mChildProcess) {
mChildProcess->SendMouseEvent(aType, aX, aY, aButton,
aClickCount, aModifiers,
aIgnoreRootScrollFrame);
return NS_OK;
}
#endif
return NS_ERROR_FAILURE;
}