hal/android/AndroidSensor.cpp
author Fabrice Desré <fabrice@mozilla.com>
Wed, 23 Oct 2013 11:56:20 -0700
changeset 152643 f103eff52a1a224321b1e8d6d5a32ff45fa869e5
parent 149246 6d82bdf0976509332fb82bab859bf7d94972239e
child 156330 d23d1e678417529b5f485e23043a487b50dd28ae
permissions -rw-r--r--
Bug 924702 - Rewrite the app:// protocol handler in c++ r=jduell,mrbkap

/* -*- 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 "AndroidBridge.h"

using namespace mozilla::hal;

namespace mozilla {
namespace hal_impl {

void
EnableSensorNotifications(SensorType aSensor) {
  AndroidBridge::Bridge()->EnableSensor(aSensor);
}

void
DisableSensorNotifications(SensorType aSensor) {
  AndroidBridge::Bridge()->DisableSensor(aSensor);
}

} // hal_impl
} // mozilla