FallbackScreenPower.cpp 644 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* -*- Mode: C++; tab-width: 8; 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 file,
  4. * You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. namespace mozilla {
  6. namespace hal_impl {
  7. bool
  8. GetScreenEnabled()
  9. {
  10. return true;
  11. }
  12. void
  13. SetScreenEnabled(bool aEnabled)
  14. {}
  15. bool
  16. GetKeyLightEnabled()
  17. {
  18. return true;
  19. }
  20. void
  21. SetKeyLightEnabled(bool aEnabled)
  22. {}
  23. double
  24. GetScreenBrightness()
  25. {
  26. return 1;
  27. }
  28. void
  29. SetScreenBrightness(double aBrightness)
  30. {}
  31. } // namespace hal_impl
  32. } // namespace mozilla