fixup! Implement powerMonitor 'shutdown' event for Linux
This commit is contained in:
parent
45763c0afb
commit
f0e210360f
2 changed files with 10 additions and 5 deletions
|
@ -20,12 +20,13 @@ class PowerObserverLinux : public base::PowerObserver {
|
|||
public:
|
||||
PowerObserverLinux();
|
||||
|
||||
void BlockSleep();
|
||||
void UnblockSleep();
|
||||
void BlockShutdown();
|
||||
void UnblockShutdown();
|
||||
virtual bool OnShutdown() { return false; }
|
||||
|
||||
private:
|
||||
void TakeSleepLock();
|
||||
void OnLoginServiceAvailable(bool available);
|
||||
void OnInhibitResponse(base::ScopedFD* scoped_fd, dbus::Response* response);
|
||||
void OnPrepareForSleep(dbus::Signal* signal);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue