Simplify the public PowerObserver interface

This commit is contained in:
Cheng Zhao 2018-02-05 15:28:58 +09:00
parent e0e7dd2a8f
commit 8ae3d9dd0b
5 changed files with 23 additions and 34 deletions

View file

@ -26,16 +26,15 @@ class PowerMonitor : public mate::TrackableObject<PowerMonitor>,
explicit PowerMonitor(v8::Isolate* isolate);
~PowerMonitor() override;
void BlockShutdown(mate::Arguments* args);
void UnblockShutdown(mate::Arguments* args);
// base::PowerObserver implementations:
void OnPowerStateChange(bool on_battery_power) override;
void OnSuspend() override;
void OnResume() override;
#if defined(OS_LINUX)
// atom::PowerObserver
bool OnShutdown() override;
#endif
private:
DISALLOW_COPY_AND_ASSIGN(PowerMonitor);