diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-07-18 08:24:24 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-07-18 08:24:24 +0200 |
commit | fc61780b35af913801d72086456f493f63197da6 (patch) | |
tree | f85891288a7bd988da9f0f15ae64e5c63f00d493 /hal/sandbox/SandboxHal.cpp | |
parent | 69f7f9e5f1475891ce11cc4f431692f965b0cd30 (diff) | |
parent | 50d3e596bbe89c95615f96eb71f6bc5be737a1db (diff) | |
download | UXP-2018.07.18.tar UXP-2018.07.18.tar.gz UXP-2018.07.18.tar.lz UXP-2018.07.18.tar.xz UXP-2018.07.18.zip |
Merge commit '50d3e596bbe89c95615f96eb71f6bc5be737a1db' into Basilisk-releasev2018.07.18
# Conflicts:
# browser/app/profile/firefox.js
# browser/components/preferences/jar.mn
Diffstat (limited to 'hal/sandbox/SandboxHal.cpp')
-rw-r--r-- | hal/sandbox/SandboxHal.cpp | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/hal/sandbox/SandboxHal.cpp b/hal/sandbox/SandboxHal.cpp index d33a53a2f..9771b3ef6 100644 --- a/hal/sandbox/SandboxHal.cpp +++ b/hal/sandbox/SandboxHal.cpp @@ -300,34 +300,6 @@ GetWakeLockInfo(const nsAString &aTopic, WakeLockInformation *aWakeLockInfo) Hal()->SendGetWakeLockInfo(nsString(aTopic), aWakeLockInfo); } -void -EnableSwitchNotifications(SwitchDevice aDevice) -{ - Hal()->SendEnableSwitchNotifications(aDevice); -} - -void -DisableSwitchNotifications(SwitchDevice aDevice) -{ - Hal()->SendDisableSwitchNotifications(aDevice); -} - -SwitchState -GetCurrentSwitchState(SwitchDevice aDevice) -{ - SwitchState state; - Hal()->SendGetCurrentSwitchState(aDevice, &state); - return state; -} - -void -NotifySwitchStateFromInputDevice(SwitchDevice aDevice, SwitchState aState) -{ - Unused << aDevice; - Unused << aState; - NS_RUNTIMEABORT("Only the main process may notify switch state change."); -} - bool EnableAlarm() { @@ -420,7 +392,6 @@ class HalParent : public PHalParent , public ISensorObserver , public WakeLockObserver , public ScreenConfigurationObserver - , public SwitchObserver , public SystemClockChangeObserver , public SystemTimezoneChangeObserver { @@ -440,10 +411,6 @@ public: hal::UnregisterWakeLockObserver(this); hal::UnregisterSystemClockChangeObserver(this); hal::UnregisterSystemTimezoneChangeObserver(this); - for (int32_t switchDevice = SWITCH_DEVICE_UNKNOWN + 1; - switchDevice < NUM_SWITCH_DEVICE; ++switchDevice) { - hal::UnregisterSwitchObserver(SwitchDevice(switchDevice), this); - } } virtual bool @@ -771,34 +738,6 @@ public: Unused << SendNotifyWakeLockChange(aWakeLockInfo); } - virtual bool - RecvEnableSwitchNotifications(const SwitchDevice& aDevice) override - { - // Content has no reason to listen to switch events currently. - hal::RegisterSwitchObserver(aDevice, this); - return true; - } - - virtual bool - RecvDisableSwitchNotifications(const SwitchDevice& aDevice) override - { - hal::UnregisterSwitchObserver(aDevice, this); - return true; - } - - void Notify(const SwitchEvent& aSwitchEvent) override - { - Unused << SendNotifySwitchChange(aSwitchEvent); - } - - virtual bool - RecvGetCurrentSwitchState(const SwitchDevice& aDevice, hal::SwitchState *aState) override - { - // Content has no reason to listen to switch events currently. - *aState = hal::GetCurrentSwitchState(aDevice); - return true; - } - void Notify(const int64_t& aClockDeltaMS) override { Unused << SendNotifySystemClockChange(aClockDeltaMS); @@ -869,12 +808,6 @@ public: } virtual bool - RecvNotifySwitchChange(const mozilla::hal::SwitchEvent& aEvent) override { - hal::NotifySwitchChange(aEvent); - return true; - } - - virtual bool RecvNotifySystemClockChange(const int64_t& aClockDeltaMS) override { hal::NotifySystemClockChange(aClockDeltaMS); return true; |