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

Unified Diff: content/common/wake_lock_service.mojom

Issue 1107333002: Wake Lock API implementation (Chromium part) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: content/common/wake_lock_service.mojom
diff --git a/content/test/data/service_worker/fetch_event_blob.js b/content/common/wake_lock_service.mojom
similarity index 52%
copy from content/test/data/service_worker/fetch_event_blob.js
copy to content/common/wake_lock_service.mojom
index 8f15e1f1235d0290346920fa79bbebefd9461a1f..9761562cbb667fab736a9603840b45e27663152f 100644
--- a/content/test/data/service_worker/fetch_event_blob.js
+++ b/content/common/wake_lock_service.mojom
@@ -2,8 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-this.onfetch = function(event) {
- var blob = new Blob(['<title>Title</title>']);
- var response = new Response(blob);
- event.respondWith(response);
+module content;
+
+// WebLockService receives per-frame wake lock intention from its client
+interface WakeLockService {
+ 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
};

Powered by Google App Engine
This is Rietveld 408576698