Bug 1180684 - Part 2. Hook GetKeyState on plugin process. r=aklotz

MozReview-Commit-ID: 3cCWMYYaTkn
This commit is contained in:
Makoto Kato
2016-08-22 16:06:50 +09:00
parent 82d9cd1d80
commit 8893b79119
6 changed files with 52 additions and 1 deletions

View File

@@ -3365,4 +3365,20 @@ PluginModuleChromeParent::RecvProfile(const nsCString& aProfile)
return true;
}
bool
PluginModuleParent::AnswerGetKeyState(const int32_t& aVirtKey, int16_t* aRet)
{
return false;
}
bool
PluginModuleChromeParent::AnswerGetKeyState(const int32_t& aVirtKey,
int16_t* aRet)
{
#if defined(XP_WIN)
*aRet = ::GetKeyState(aVirtKey);
return true;
#else
return PluginModuleParent::AnswerGetKeyState(aVirtKey, aRet);
#endif
}