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

Unified Diff: content/common/presentation/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: Added OnChangeAvailabilityListenerRemoved 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/presentation_service.mojom
diff --git a/content/common/presentation/presentation_service.mojom b/content/common/presentation/presentation_service.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..c6c3d76d50e3940ba455a661bc7790cc89d49ef2
--- /dev/null
+++ b/content/common/presentation/presentation_service.mojom
@@ -0,0 +1,20 @@
+// 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;
+
+interface PresentationService {
+ // Returns the last session state if it’s changed since the last time the
mark a. foltz 2015/01/28 19:37:02 Returns the last screen availability state
whywhat 2015/01/28 20:26:03 Done.
+ // method was called. The client has to call this method again when handling
+ // the callback to get the next updates about the last availability status.
mark a. foltz 2015/01/28 19:37:02 Which callback?
mark a. foltz 2015/01/28 19:37:02 s/updates/update/ s/last//
whywhat 2015/01/28 20:26:03 Done.
whywhat 2015/01/28 20:26:04 Done.
+ // May start discovery of the presentation screens. The implementation might
+ // stop discovery once there are no active calls to GetScreenAvailability.
+ // |presentation_url| might be specified to help the
mark a. foltz 2015/01/28 19:37:02 s/might/can/
whywhat 2015/01/28 20:26:04 Done.
+ // implementation to filter the incompatible screens.
mark a. foltz 2015/01/28 19:37:02 s/the/out/
whywhat 2015/01/28 20:26:03 Done.
+ GetScreenAvailability(string? presentation_url) => (bool available);
+
+ // Called when the frame no longer listens to the
+ // |availablechange| event.
+ OnScreenAvailabilityListenerRemoved();
+};

Powered by Google App Engine
This is Rietveld 408576698