Index: third_party/WebKit/public/platform/modules/presentation/presentation.mojom |
diff --git a/third_party/WebKit/public/platform/modules/presentation/presentation.mojom b/third_party/WebKit/public/platform/modules/presentation/presentation.mojom |
index 469cd72d35e559e0357ced5d46e2d8a225cd1c47..bb3251c9b4b3eb88a956b9bf57daea7b66eae53e 100644 |
--- a/third_party/WebKit/public/platform/modules/presentation/presentation.mojom |
+++ b/third_party/WebKit/public/platform/modules/presentation/presentation.mojom |
@@ -135,6 +135,9 @@ interface PresentationService { |
}; |
interface PresentationServiceClient { |
+ |
+ ////////////Functions here are called only on the controlling page./////////// |
+ |
// Called when the client tries to listen for screen availability changes for |
// presentation of |url| but it is not supported by the device or underlying |
// platform. This can also be called if the device is currently in a mode |
@@ -147,6 +150,11 @@ interface PresentationServiceClient { |
// the current known state. It will then be called to notify of state updates. |
OnScreenAvailabilityUpdated(url.mojom.Url url, bool available); |
+ // See PresentationService::SetDefaultPresentationURL. |
+ OnDefaultSessionStarted(PresentationSessionInfo sessionInfo); |
+ |
+ ////////////////////////////////////////////////////////////////////////////// |
+ |
// Called when the state of PresentationConnection |connection| started on |
// this frame has changed to |newState|. |
OnConnectionStateChanged(PresentationSessionInfo connection, |
@@ -162,9 +170,8 @@ interface PresentationServiceClient { |
OnSessionMessagesReceived(PresentationSessionInfo sessionInfo, |
array<SessionMessage> messages); |
- // See PresentationService::SetDefaultPresentationURL. |
- OnDefaultSessionStarted(PresentationSessionInfo sessionInfo); |
- |
- // See PresentationService::ListeningForReceiverPageRendered. |
- OnReceiverConnectionAvailable(PresentationSessionInfo sessionInfo); |
+ // Called on a presentation receiver when the first presentation connection is |
+ // available from the controlling page. |
+ OnReceiverConnectionAvailable(PresentationSessionInfo sessionInfo, |
+ PresentationConnection connection); |
}; |