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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/wake_lock/resources/subframe.html
diff --git a/LayoutTests/wake_lock/resources/subframe.html b/LayoutTests/wake_lock/resources/subframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..b69028b824813e343022c6eb75a4ce7dd584891c
--- /dev/null
+++ b/LayoutTests/wake_lock/resources/subframe.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head/>
+<body>
+<script>
+window.addEventListener('message', function(e) {
+ if (e.data.tag === 'getKeepAwake') {
+ window.parent.postMessage({'keepAwake': screen.keepAwake}, '*');
+ } else if (e.data.tag === 'setKeepAwake') {
+ screen.keepAwake = e.data.keepAwake;
+ }
+});
+</script>
+</body>
+</html>
« 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