2017-12-01 11:44:45 +00:00
|
|
|
// Copyright (c) 2017 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#ifndef SHELL_BROWSER_LIB_POWER_OBSERVER_H_
|
|
|
|
#define SHELL_BROWSER_LIB_POWER_OBSERVER_H_
|
2017-12-01 11:44:45 +00:00
|
|
|
|
|
|
|
#include "base/macros.h"
|
|
|
|
|
|
|
|
#if defined(OS_LINUX)
|
2019-06-19 20:46:59 +00:00
|
|
|
#include "shell/browser/lib/power_observer_linux.h"
|
2017-12-01 11:44:45 +00:00
|
|
|
#else
|
|
|
|
#include "base/power_monitor/power_observer.h"
|
|
|
|
#endif // defined(OS_LINUX)
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2017-12-01 11:44:45 +00:00
|
|
|
|
|
|
|
#if defined(OS_LINUX)
|
|
|
|
typedef PowerObserverLinux PowerObserver;
|
|
|
|
#else
|
|
|
|
typedef base::PowerObserver PowerObserver;
|
|
|
|
#endif // defined(OS_LINUX)
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|
2017-12-01 11:44:45 +00:00
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#endif // SHELL_BROWSER_LIB_POWER_OBSERVER_H_
|