Implement powerMonitor "suspend"/"resume" events for Linux.
This commit is contained in:
parent
95cb601f2b
commit
897712359f
5 changed files with 182 additions and 2 deletions
|
@ -6,8 +6,8 @@
|
|||
#define ATOM_BROWSER_API_ATOM_API_POWER_MONITOR_H_
|
||||
|
||||
#include "atom/browser/api/trackable_object.h"
|
||||
#include "atom/browser/lib/power_observer.h"
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/power_monitor/power_observer.h"
|
||||
#include "native_mate/handle.h"
|
||||
|
||||
namespace atom {
|
||||
|
@ -15,7 +15,7 @@ namespace atom {
|
|||
namespace api {
|
||||
|
||||
class PowerMonitor : public mate::TrackableObject<PowerMonitor>,
|
||||
public base::PowerObserver {
|
||||
public PowerObserver {
|
||||
public:
|
||||
static v8::Local<v8::Value> Create(v8::Isolate* isolate);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue