summaryrefslogtreecommitdiffstats
path: root/hal/sandbox
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-11-13 13:33:08 +0000
committerMoonchild <moonchild@palemoon.org>2020-11-13 13:33:08 +0000
commit13f505539c5c0deff72cc1c007eaa9be1979d294 (patch)
treeb115bf7f8c8933412282687146cd4f55118c4806 /hal/sandbox
parent5262e01a4e56b8727fba5710320ccc74918f1300 (diff)
downloadUXP-13f505539c5c0deff72cc1c007eaa9be1979d294.tar
UXP-13f505539c5c0deff72cc1c007eaa9be1979d294.tar.gz
UXP-13f505539c5c0deff72cc1c007eaa9be1979d294.tar.lz
UXP-13f505539c5c0deff72cc1c007eaa9be1979d294.tar.xz
UXP-13f505539c5c0deff72cc1c007eaa9be1979d294.zip
Issue #1682 - Remove vibrator DOM interface and support code.
Resolves #1682
Diffstat (limited to 'hal/sandbox')
-rw-r--r--hal/sandbox/PHal.ipdl3
-rw-r--r--hal/sandbox/SandboxHal.cpp52
2 files changed, 0 insertions, 55 deletions
diff --git a/hal/sandbox/PHal.ipdl b/hal/sandbox/PHal.ipdl
index cfd021c10..5fa2b2b97 100644
--- a/hal/sandbox/PHal.ipdl
+++ b/hal/sandbox/PHal.ipdl
@@ -69,9 +69,6 @@ child:
async NotifySystemTimezoneChange(SystemTimezoneChangeInformation aSystemTimezoneChangeInfo);
parent:
- async Vibrate(uint32_t[] pattern, uint64_t[] id, PBrowser browser);
- async CancelVibrate(uint64_t[] id, PBrowser browser);
-
async EnableNetworkNotifications();
async DisableNetworkNotifications();
sync GetCurrentNetworkInformation()
diff --git a/hal/sandbox/SandboxHal.cpp b/hal/sandbox/SandboxHal.cpp
index fd84f7c39..9a214f085 100644
--- a/hal/sandbox/SandboxHal.cpp
+++ b/hal/sandbox/SandboxHal.cpp
@@ -46,28 +46,6 @@ Hal()
}
void
-Vibrate(const nsTArray<uint32_t>& pattern, const WindowIdentifier &id)
-{
- HAL_LOG("Vibrate: Sending to parent process.");
-
- AutoTArray<uint32_t, 8> p(pattern);
-
- WindowIdentifier newID(id);
- newID.AppendProcessID();
- Hal()->SendVibrate(p, newID.AsArray(), TabChild::GetFrom(newID.GetWindow()));
-}
-
-void
-CancelVibrate(const WindowIdentifier &id)
-{
- HAL_LOG("CancelVibrate: Sending to parent process.");
-
- WindowIdentifier newID(id);
- newID.AppendProcessID();
- Hal()->SendCancelVibrate(newID.AsArray(), TabChild::GetFrom(newID.GetWindow()));
-}
-
-void
EnableNetworkNotifications()
{
Hal()->SendEnableNetworkNotifications();
@@ -380,36 +358,6 @@ public:
}
virtual bool
- RecvVibrate(InfallibleTArray<unsigned int>&& pattern,
- InfallibleTArray<uint64_t>&& id,
- PBrowserParent *browserParent) override
- {
- // We give all content vibration permission.
- // TabParent *tabParent = TabParent::GetFrom(browserParent);
- /* xxxkhuey wtf
- nsCOMPtr<nsIDOMWindow> window =
- do_QueryInterface(tabParent->GetBrowserDOMWindow());
- */
- WindowIdentifier newID(id, nullptr);
- hal::Vibrate(pattern, newID);
- return true;
- }
-
- virtual bool
- RecvCancelVibrate(InfallibleTArray<uint64_t> &&id,
- PBrowserParent *browserParent) override
- {
- //TabParent *tabParent = TabParent::GetFrom(browserParent);
- /* XXXkhuey wtf
- nsCOMPtr<nsIDOMWindow> window =
- tabParent->GetBrowserDOMWindow();
- */
- WindowIdentifier newID(id, nullptr);
- hal::CancelVibrate(newID);
- return true;
- }
-
- virtual bool
RecvEnableNetworkNotifications() override {
// We give all content access to this network-status information.
hal::RegisterNetworkObserver(this);