power_observer.h 634 B

123456789101112131415161718192021222324252627
  1. // Copyright (c) 2017 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ATOM_BROWSER_LIB_POWER_OBSERVER_H_
  5. #define ATOM_BROWSER_LIB_POWER_OBSERVER_H_
  6. #include "base/macros.h"
  7. #if defined(OS_LINUX)
  8. #include "atom/browser/lib/power_observer_linux.h"
  9. #else
  10. #include "base/power_monitor/power_observer.h"
  11. #endif // defined(OS_LINUX)
  12. namespace atom {
  13. #if defined(OS_LINUX)
  14. typedef PowerObserverLinux PowerObserver;
  15. #else
  16. typedef base::PowerObserver PowerObserver;
  17. #endif // defined(OS_LINUX)
  18. } // namespace atom
  19. #endif // ATOM_BROWSER_LIB_POWER_OBSERVER_H_