hal/android/AndroidSensor.cpp
author Jim Chen <nchen@mozilla.com>
Thu, 21 Jul 2016 13:49:04 -0400
changeset 348311 a4baceb961e6c6dda640d93ab99ab167e363dbc7
parent 348128 5643545ad4992dc69233b6b5bef4887fb10fec0c
child 508163 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Bug 1287946 - Update existing code to use mozilla::java; r=me

/* -*- 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