Screen Lock / Unlock events (#12714)
* initial lock-screen and unlock-screen event implementation for macOS * Implementation of lock-screen and unlock-screen on windows
This commit is contained in:
parent
c1381ac598
commit
338a816ffd
7 changed files with 187 additions and 0 deletions
|
@ -46,6 +46,9 @@ PowerMonitor::PowerMonitor(v8::Isolate* isolate) {
|
|||
#endif
|
||||
base::PowerMonitor::Get()->AddObserver(this);
|
||||
Init(isolate);
|
||||
#if defined(OS_MACOSX) || defined(OS_WIN)
|
||||
InitPlatformSpecificMonitors();
|
||||
#endif
|
||||
}
|
||||
|
||||
PowerMonitor::~PowerMonitor() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue