summaryrefslogtreecommitdiff
path: root/hal/Hal.h
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/Hal.h
parent5262e01a4e56b8727fba5710320ccc74918f1300 (diff)
downloaduxp-13f505539c5c0deff72cc1c007eaa9be1979d294.tar.gz
Issue #1682 - Remove vibrator DOM interface and support code.
Resolves #1682
Diffstat (limited to 'hal/Hal.h')
-rw-r--r--hal/Hal.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/hal/Hal.h b/hal/Hal.h
index e2e5717905..ced295ca4c 100644
--- a/hal/Hal.h
+++ b/hal/Hal.h
@@ -51,41 +51,6 @@ typedef Observer<SystemTimezoneChangeInformation> SystemTimezoneChangeObserver;
namespace MOZ_HAL_NAMESPACE {
/**
- * Turn the default vibrator device on/off per the pattern specified
- * by |pattern|. Each element in the pattern is the number of
- * milliseconds to turn the vibrator on or off. The first element in
- * |pattern| is an "on" element, the next is "off", and so on.
- *
- * If |pattern| is empty, any in-progress vibration is canceled.
- *
- * Only an active window within an active tab may call Vibrate; calls
- * from inactive windows and windows on inactive tabs do nothing.
- *
- * If you're calling hal::Vibrate from the outside world, pass an
- * nsIDOMWindow* in place of the WindowIdentifier parameter.
- * The method with WindowIdentifier will be called automatically.
- */
-void Vibrate(const nsTArray<uint32_t>& pattern,
- nsPIDOMWindowInner* aWindow);
-void Vibrate(const nsTArray<uint32_t>& pattern,
- const hal::WindowIdentifier &id);
-
-/**
- * Cancel a vibration started by the content window identified by
- * WindowIdentifier.
- *
- * If the window was the last window to start a vibration, the
- * cancellation request will go through even if the window is not
- * active.
- *
- * As with hal::Vibrate(), if you're calling hal::CancelVibrate from the outside
- * world, pass an nsIDOMWindow*. The method with WindowIdentifier will be called
- * automatically.
- */
-void CancelVibrate(nsPIDOMWindowInner* aWindow);
-void CancelVibrate(const hal::WindowIdentifier &id);
-
-/**
* Determine whether the device's screen is currently enabled.
*/
bool GetScreenEnabled();