hal/HalWakeLock.h
author L10n Bumper Bot <release+l10nbumper@mozilla.com>
Tue, 03 Jul 2018 17:47:03 -0700
changeset 477812 eb97b84f4bfe07c09a50c3791c3ebfba3b6c5898
parent 284279 91d6e262b662a0b4e47358665e222d3927337af9
child 505383 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
no bug - Bumping Firefox l10n changesets DONTBUILD r=release a=l10n-bump az -> 89c0c979bcd8 bg -> f4a1ac5335d8 br -> 6adea6129193 bs -> ac739d6dac29 cs -> 4850292f0bbd cy -> bac55ec13dc2 es-AR -> ac96e9983c5a es-CL -> 454984340faa es-ES -> c12ae37263f4 es-MX -> 19c2c80278f1 he -> 685be298f1e4 hi-IN -> 46166eb7458f is -> c28b679bde09 it -> 640ada79194a ka -> 97d33c691557 kab -> b54eef9460a6 km -> 62d667170902 ms -> 12b185e9a456 pl -> c4977e7c5c26 sr -> aeecaf9231ea ta -> d1267956537a te -> 45421d80dd98 uk -> 7e9fb9e150cf ur -> a265f7e3e850 vi -> d17c1750348d

/* -*- Mode: C++; tab-width: 40; 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/. */

#ifndef __HAL_WAKELOCK_H_
#define __HAL_WAKELOCK_H_

namespace mozilla {
namespace hal {

enum WakeLockState {
  WAKE_LOCK_STATE_UNLOCKED,
  WAKE_LOCK_STATE_HIDDEN,
  WAKE_LOCK_STATE_VISIBLE
};

/**
 * Return the wake lock state according to the numbers.
 */
WakeLockState ComputeWakeLockState(int aNumLocks, int aNumHidden);

} // namespace hal
} // namespace mozilla

#endif /* __HAL_WAKELOCK_H_ */