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:
Samuel Attard 2018-05-01 02:04:27 +10:00 committed by GitHub
parent c1381ac598
commit 338a816ffd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 187 additions and 0 deletions

View file

@ -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() {