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

Unified Diff: content/common/presentation/presentation_service.mojom

Issue 978543002: [Presentation API] Plumbing the |defaultpresentationstart| event from Blink to browser/Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
index d1e4b07909b59f888cd7f09433da54fcdb0742c0..a004dda4f48ea3e4c41fa6345cd91e34ece2f326 100644
--- a/content/common/presentation/presentation_service.mojom
+++ b/content/common/presentation/presentation_service.mojom
@@ -39,6 +39,16 @@ interface PresentationService {
// |availablechange| event.
OnScreenAvailabilityListenerRemoved();
+ // Called when |ondefaultpresentationstarted| listener is added or the page
+ // is ready to listen to the next such event. Indicates the frame is ready
+ // to handle the default presentation started by the user agent.
+ WaitForDefaultPresentation()
Peter Beverloo 2015/03/03 21:40:40 ListenToDefaultPresentation perhaps? Wait* in nami
whywhat 2015/03/05 20:26:14 Done.
+ => (PresentationSessionInfo defaultSessionInfo);
+
+ // Called when the frame no longer listens to the
+ // |ondefaultpresentationstarted| event.
+ OnDefaultPresentationListenerRemoved();
+
// Called when startSession() is called by the frame. The result callback
// will return a non-null and valid PresentationSessionInfo if starting the
// session succeeded, or null with a PresentationError if starting the

Powered by Google App Engine
This is Rietveld 408576698