mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1013097 - Remove IPC for switch event because only the chrome process can receive it. r=dhylands
This commit is contained in:
parent
2980b325e7
commit
f2fa1b8497
@ -764,6 +764,7 @@ SwitchState GetCurrentSwitchState(SwitchDevice aDevice)
|
||||
|
||||
void NotifySwitchStateFromInputDevice(SwitchDevice aDevice, SwitchState aState)
|
||||
{
|
||||
AssertMainThread();
|
||||
PROXY_IF_SANDBOXED(NotifySwitchStateFromInputDevice(aDevice, aState));
|
||||
}
|
||||
|
||||
|
@ -175,7 +175,6 @@ parent:
|
||||
DisableSwitchNotifications(SwitchDevice aDevice);
|
||||
sync GetCurrentSwitchState(SwitchDevice aDevice)
|
||||
returns (SwitchState aState);
|
||||
NotifySwitchStateFromInputDevice(SwitchDevice aDevice, SwitchState aState);
|
||||
|
||||
FactoryReset();
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user