Since Chrome 28.
By default, operating systems dim the screen when users are inactive and eventually suspend the system. With the power API, an app or extension can keep the system awake.
Using this API,
you can specify the
Level to which power management is disabled.
"system" level keeps the system active,
but allows the screen to be dimmed or turned off.
a communication app can continue to receive messages
while the screen is off.
"display" level keeps the screen and system active.
E-book and presentation apps, for example,
can keep the screen and system active
while users read.
When a user has more than one app or extension active,
each with its own power level,
the highest-precedence level takes effect;
"display" always takes precedence
if app A asks for
"system" power management,
and app B asks for
"display" is used until app B
is unloaded or releases its request.
If app A is still active,
"system" is then used.
chrome.power.requestKeepAwake( Level level)
Requests that power management be temporarily disabled. |level| describes the degree to which power management should be disabled. If a request previously made by the same app is still active, it will be replaced by the new request.
Releases a request previously made via requestKeepAwake().