| Index: content/common/presentation/presentation_service.mojom
|
| diff --git a/content/common/presentation/presentation_service.mojom b/content/common/presentation/presentation_service.mojom
|
| index 99ab552c37f40c542d3588b9c14c0189abb8df32..0476e9dea653633316664162cbca9b1fa8b41822 100644
|
| --- a/content/common/presentation/presentation_service.mojom
|
| +++ b/content/common/presentation/presentation_service.mojom
|
| @@ -9,6 +9,11 @@ struct PresentationSessionInfo {
|
| string id;
|
| };
|
|
|
| +enum PresentationSessionState {
|
| + CONNECTED,
|
| + DISCONNECTED
|
| +};
|
| +
|
| enum PresentationErrorType {
|
| NO_AVAILABLE_SCREENS,
|
| SESSION_REQUEST_CANCELLED,
|
| @@ -72,4 +77,11 @@ interface PresentationService {
|
|
|
| // Called when closeSession() is called by the frame.
|
| CloseSession(string presentation_url, string presentation_id);
|
| +
|
| + // Called when the frame is ready to process the next state change. Returns
|
| + // the last session state if it’s changed since the last time the callback
|
| + // was called. Might cause the event fired with the initial state change.
|
| + ListenForSessionStateChange()
|
| + => (PresentationSessionInfo sessionInfo,
|
| + PresentationSessionState newState);
|
| };
|
|
|