summaryrefslogtreecommitdiffstats
path: root/hal/sandbox/SandboxHal.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-11-20 09:47:03 +0000
committerMoonchild <moonchild@palemoon.org>2020-11-20 09:47:03 +0000
commit5165ed02285315cc0bed7977c7bac6d0a90ca43c (patch)
tree9b761a21eb924915e51c2d803208e6c01b505a45 /hal/sandbox/SandboxHal.cpp
parente1db27e19989db11fef70f439cf95821316535b3 (diff)
parentca9abcdf1702c37bf00048dab3f460b2252873a3 (diff)
downloadUXP-5c6cf119e93094b4018e48fe286601266d6c9751.tar
UXP-5c6cf119e93094b4018e48fe286601266d6c9751.tar.gz
UXP-5c6cf119e93094b4018e48fe286601266d6c9751.tar.lz
UXP-5c6cf119e93094b4018e48fe286601266d6c9751.tar.xz
UXP-5c6cf119e93094b4018e48fe286601266d6c9751.zip
Merge branch 'redwood' into releaseRELBASE_20201124RELBASE_20201120RC_20201120
Diffstat (limited to 'hal/sandbox/SandboxHal.cpp')
-rw-r--r--hal/sandbox/SandboxHal.cpp52
1 files changed, 0 insertions, 52 deletions
diff --git a/hal/sandbox/SandboxHal.cpp b/hal/sandbox/SandboxHal.cpp
index 579f3b472..28f15b4cc 100644
--- a/hal/sandbox/SandboxHal.cpp
+++ b/hal/sandbox/SandboxHal.cpp
@@ -47,28 +47,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();
@@ -381,36 +359,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);