michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_dom_battery_Constants_h__ michael@0: #define mozilla_dom_battery_Constants_h__ michael@0: michael@0: /** michael@0: * A set of constants that might need to be used by battery backends. michael@0: * It's not part of BatteryManager.h to prevent those backends to include it. michael@0: */ michael@0: namespace mozilla { michael@0: namespace dom { michael@0: namespace battery { michael@0: michael@0: static const double kDefaultLevel = 1.0; michael@0: static const bool kDefaultCharging = true; michael@0: static const double kDefaultRemainingTime = 0; michael@0: static const double kUnknownRemainingTime = -1; michael@0: michael@0: } // namespace battery michael@0: } // namespace dom michael@0: } // namespace mozilla michael@0: michael@0: #endif // mozilla_dom_battery_Constants_h__