Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: LayoutTests/wake_lock/resources/subframe.html

Issue 1084923002: Wake Lock API implementation (Blink part) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head/>
4 <body>
5 <script>
6 window.addEventListener('message', function(e) {
7 if (e.data.tag === 'getKeepAwake') {
8 window.parent.postMessage({'keepAwake': screen.keepAwake}, '*');
9 } else if (e.data.tag === 'setKeepAwake') {
10 screen.keepAwake = e.data.keepAwake;
11 }
12 });
13 </script>
14 </body>
15 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Window/window-appendages-cleared-expected.txt ('k') | LayoutTests/wake_lock/wakelock-api.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698