1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #include "GeneratedJNINatives.h"
9 #include "GeneratedJNIWrappers.h"
11 using namespace mozilla::hal
;
15 class AlarmReceiver
: public java::AlarmReceiver::Natives
<AlarmReceiver
>
21 static void NotifyAlarmFired() {
22 hal::NotifyAlarmFired();
31 AlarmReceiver::Init();
38 java::GeckoAppShell::DisableAlarm();
42 SetAlarm(int32_t aSeconds
, int32_t aNanoseconds
)
44 return java::GeckoAppShell::SetAlarm(aSeconds
, aNanoseconds
);