| 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 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 enum PresentationConnectionCloseReason { | 23 enum PresentationConnectionCloseReason { |
| 24 CONNECTION_ERROR, | 24 CONNECTION_ERROR, |
| 25 CLOSED, | 25 CLOSED, |
| 26 WENT_AWAY | 26 WENT_AWAY |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 enum PresentationErrorType { | 29 enum PresentationErrorType { |
| 30 NO_AVAILABLE_SCREENS, | 30 NO_AVAILABLE_SCREENS, |
| 31 SESSION_REQUEST_CANCELLED, | 31 SESSION_REQUEST_CANCELLED, |
| 32 NO_PRESENTATION_FOUND, | 32 NO_PRESENTATION_FOUND, |
| 33 PREVIOUS_START_IN_PROGRESS, |
| 33 UNKNOWN, | 34 UNKNOWN, |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 struct PresentationError { | 37 struct PresentationError { |
| 37 PresentationErrorType error_type; | 38 PresentationErrorType error_type; |
| 38 string message; | 39 string message; |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 enum PresentationMessageType { | 42 enum PresentationMessageType { |
| 42 TEXT, | 43 TEXT, |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 OnConnectionMessagesReceived(PresentationSessionInfo sessionInfo, | 172 OnConnectionMessagesReceived(PresentationSessionInfo sessionInfo, |
| 172 array<ConnectionMessage> messages); | 173 array<ConnectionMessage> messages); |
| 173 | 174 |
| 174 // Called on a presentation receiver when presentation connection is available | 175 // Called on a presentation receiver when presentation connection is available |
| 175 // from the controlling page. | 176 // from the controlling page. |
| 176 OnReceiverConnectionAvailable( | 177 OnReceiverConnectionAvailable( |
| 177 PresentationSessionInfo sessionInfo, | 178 PresentationSessionInfo sessionInfo, |
| 178 PresentationConnection controller_connection_ptr, | 179 PresentationConnection controller_connection_ptr, |
| 179 PresentationConnection& receiver_connection_request); | 180 PresentationConnection& receiver_connection_request); |
| 180 }; | 181 }; |
| OLD | NEW |