Bug 1013097 - Remove IPC for switch event because only the chrome process can receive it. r=dhylands

This commit is contained in:
Kershaw Chang 2014-06-02 19:25:00 -04:00
parent 2980b325e7
commit f2fa1b8497
3 changed files with 4 additions and 10 deletions

View File

@ -764,6 +764,7 @@ SwitchState GetCurrentSwitchState(SwitchDevice aDevice)
void NotifySwitchStateFromInputDevice(SwitchDevice aDevice, SwitchState aState)
{
AssertMainThread();
PROXY_IF_SANDBOXED(NotifySwitchStateFromInputDevice(aDevice, aState));
}

View File

@ -175,7 +175,6 @@ parent:
DisableSwitchNotifications(SwitchDevice aDevice);
sync GetCurrentSwitchState(SwitchDevice aDevice)
returns (SwitchState aState);
NotifySwitchStateFromInputDevice(SwitchDevice aDevice, SwitchState aState);
FactoryReset();

View File

@ -344,7 +344,9 @@ GetCurrentSwitchState(SwitchDevice aDevice)
void
NotifySwitchStateFromInputDevice(SwitchDevice aDevice, SwitchState aState)
{
Hal()->SendNotifySwitchStateFromInputDevice(aDevice, aState);
unused << aDevice;
unused << aState;
NS_RUNTIMEABORT("Only the main process may notify switch state change.");
}
bool
@ -862,14 +864,6 @@ public:
return true;
}
virtual bool
RecvNotifySwitchStateFromInputDevice(const SwitchDevice& aDevice,
const SwitchState& aState) MOZ_OVERRIDE
{
hal::NotifySwitchStateFromInputDevice(aDevice, aState);
return true;
}
void Notify(const int64_t& aClockDeltaMS)
{
unused << SendNotifySystemClockChange(aClockDeltaMS);