Bug 1382099 - Remove MOZ_WIDGET_GONK from hal/. r=gsvelto.
This commit is contained in:
@@ -89,8 +89,6 @@ AssertMainProcess()
|
||||
MOZ_ASSERT(GeckoProcessType_Default == XRE_GetProcessType());
|
||||
}
|
||||
|
||||
#if !defined(MOZ_WIDGET_GONK)
|
||||
|
||||
bool
|
||||
WindowIsActive(nsPIDOMWindowInner* aWindow)
|
||||
{
|
||||
@@ -100,8 +98,6 @@ WindowIsActive(nsPIDOMWindowInner* aWindow)
|
||||
return !document->Hidden();
|
||||
}
|
||||
|
||||
#endif // !defined(MOZ_WIDGET_GONK)
|
||||
|
||||
StaticAutoPtr<WindowIdentifier::IDArrayType> gLastIDToVibrate;
|
||||
|
||||
void InitLastIDToVibrate()
|
||||
@@ -123,7 +119,6 @@ Vibrate(const nsTArray<uint32_t>& pattern, const WindowIdentifier &id)
|
||||
{
|
||||
AssertMainThread();
|
||||
|
||||
#if !defined(MOZ_WIDGET_GONK)
|
||||
// Only active windows may start vibrations. If |id| hasn't gone
|
||||
// through the IPC layer -- that is, if our caller is the outside
|
||||
// world, not hal_proxy -- check whether the window is active. If
|
||||
@@ -134,7 +129,6 @@ Vibrate(const nsTArray<uint32_t>& pattern, const WindowIdentifier &id)
|
||||
HAL_LOG("Vibrate: Window is inactive, dropping vibrate.");
|
||||
return;
|
||||
}
|
||||
#endif // !defined(MOZ_WIDGET_GONK)
|
||||
|
||||
if (!InSandbox()) {
|
||||
if (!gLastIDToVibrate) {
|
||||
|
||||
Reference in New Issue
Block a user