hal/android/AndroidSensor.cpp
author Cosmin Sabou <csabou@mozilla.com>
Fri, 19 Oct 2018 00:57:18 +0300
changeset 500460 9ae0b64741cbf08fcd0ee6b031befd93fa10d184
parent 348311 a4baceb961e6c6dda640d93ab99ab167e363dbc7
child 508163 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Merge mozilla-central to autoland. a=merge

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "Hal.h"
#include "GeneratedJNIWrappers.h"

using namespace mozilla::hal;

namespace mozilla {
namespace hal_impl {

void
EnableSensorNotifications(SensorType aSensor) {
  java::GeckoAppShell::EnableSensor(aSensor);
}

void
DisableSensorNotifications(SensorType aSensor) {
  java::GeckoAppShell::DisableSensor(aSensor);
}

} // hal_impl
} // mozilla