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

Unified Diff: content/common/presentation_service.mojom

Issue 839773002: Plumbing from WebPresentationClient to the Presentation Mojo service for (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the build Created 5 years, 11 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/presentation_service.mojom
diff --git a/content/common/presentation_service.mojom b/content/common/presentation_service.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..f459280f219b95e85d7c61fca8df8758d952bbf7
--- /dev/null
+++ b/content/common/presentation_service.mojom
@@ -0,0 +1,25 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module presentation;
+
+[Client=PresentationServiceClient]
mlamouri (slow - plz ping) 2015/01/08 15:08:54 My understanding is that we want to get ride of Cl
whywhat 2015/01/08 17:28:53 Done.
+interface PresentationService {
+ /* NavigatorPresentation idl */
+
+ // Called when a listener is added to navigator.presentation.availablechange.
+ // Might start device discovery.
+ AddDeviceAvailabilityListener();
mlamouri (slow - plz ping) 2015/01/08 15:08:54 ... instead, you could pass an interface in this m
whywhat 2015/01/08 17:28:53 Done.
+
+ // Called when a listener is removed from
+ // navigator.presentation.availablechange.
+ // Might stop device discovery.
+ RemoveDeviceAvailabilityListener();
mlamouri (slow - plz ping) 2015/01/08 15:08:54 ... and that one.
whywhat 2015/01/08 17:28:53 Got it. Very convenient :(
+};
+
+interface PresentationServiceClient {
+ // Called when the device availability changes.
+ // Fires the |availablechange| event.
Peter Beverloo 2015/01/07 19:41:21 +"in JavaScript."
whywhat 2015/01/08 17:28:53 Done.
+ DeviceAvailabilityChanged(bool available);
+};

Powered by Google App Engine
This is Rietveld 408576698