OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 this.onfetch = function(event) { | 5 module content; |
6 var blob = new Blob(['<title>Title</title>']); | 6 |
7 var response = new Response(blob); | 7 // WebLockService receives per-frame wake lock intention from its client |
8 event.respondWith(response); | 8 interface WakeLockService { |
9 KeepScreenAwake(bool intention); | |
Tom Sepez
2015/04/28 16:22:54
Nit: again, mauybe it would be clearer with two me
mlamouri (slow - plz ping)
2015/05/05 14:08:34
+1
| |
9 }; | 10 }; |
OLD | NEW |