| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // TODO(crbug.com/647290): Rename "Session" to "Connection" | 5 // TODO(crbug.com/647290): Rename "Session" to "Connection" |
| 6 | 6 |
| 7 module blink.mojom; | 7 module blink.mojom; |
| 8 | 8 |
| 9 import "url/mojo/url.mojom"; | 9 import "url/mojo/url.mojom"; |
| 10 | 10 |
| 11 struct PresentationSessionInfo { | 11 struct PresentationSessionInfo { |
| 12 url.mojom.Url url; | 12 url.mojom.Url url; |
| 13 string id; | 13 string id; |
| 14 bool is_offscreen; |
| 14 }; | 15 }; |
| 15 | 16 |
| 16 enum PresentationConnectionState { | 17 enum PresentationConnectionState { |
| 17 CONNECTING, | 18 CONNECTING, |
| 18 CONNECTED, | 19 CONNECTED, |
| 19 CLOSED, | 20 CLOSED, |
| 20 TERMINATED | 21 TERMINATED |
| 21 }; | 22 }; |
| 22 | 23 |
| 23 enum PresentationConnectionCloseReason { | 24 enum PresentationConnectionCloseReason { |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // See PresentationService::ListenForSessionMessages. | 139 // See PresentationService::ListenForSessionMessages. |
| 139 OnSessionMessagesReceived(PresentationSessionInfo sessionInfo, | 140 OnSessionMessagesReceived(PresentationSessionInfo sessionInfo, |
| 140 array<SessionMessage> messages); | 141 array<SessionMessage> messages); |
| 141 | 142 |
| 142 // See PresentationService::SetDefaultPresentationURL. | 143 // See PresentationService::SetDefaultPresentationURL. |
| 143 OnDefaultSessionStarted(PresentationSessionInfo sessionInfo); | 144 OnDefaultSessionStarted(PresentationSessionInfo sessionInfo); |
| 144 | 145 |
| 145 // See PresentationService::ListeningForReceiverPageRendered. | 146 // See PresentationService::ListeningForReceiverPageRendered. |
| 146 OnReceiverConnectionAvailable(PresentationSessionInfo sessionInfo); | 147 OnReceiverConnectionAvailable(PresentationSessionInfo sessionInfo); |
| 147 }; | 148 }; |
| OLD | NEW |