There's a chrome.idle.* API that allows chrome apps to detect when the user is active or idle, and when the screen is locked.
We should expose something similar to the web for use by chat apps, etc.
Rough sketch at: https://github.com/inexorabletash/idle-detection
Comment 1 by dtapu...@chromium.org
, Sep 5