| 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 module media_router.interfaces; | 5 module media_router.interfaces; |
| 6 | 6 |
| 7 // Represents an output sink to which media can be routed. | 7 // Represents an output sink to which media can be routed. |
| 8 struct MediaSink { | 8 struct MediaSink { |
| 9 enum IconType { | 9 enum IconType { |
| 10 CAST, | 10 CAST, |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 string title; | 90 string title; |
| 91 | 91 |
| 92 // Message about issue detail or how to handle issue. | 92 // Message about issue detail or how to handle issue. |
| 93 // Messages should be suitable for end users to decide which actions to take. | 93 // Messages should be suitable for end users to decide which actions to take. |
| 94 string? message; | 94 string? message; |
| 95 | 95 |
| 96 ActionType default_action; | 96 ActionType default_action; |
| 97 | 97 |
| 98 array<ActionType>? secondary_actions; | 98 array<ActionType>? secondary_actions; |
| 99 | 99 |
| 100 // A help page to be opened if users select learn_more. | 100 // The ID of the help page to be opened if users select learn_more. |
| 101 string? help_url; | 101 int32 help_page_id; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 struct RouteMessage { | 104 struct RouteMessage { |
| 105 enum Type { | 105 enum Type { |
| 106 TEXT, | 106 TEXT, |
| 107 BINARY | 107 BINARY |
| 108 }; | 108 }; |
| 109 // The type of this message. | 109 // The type of this message. |
| 110 Type type; | 110 Type type; |
| 111 // Used when the |type| is TEXT. | 111 // Used when the |type| is TEXT. |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 // changed to |state|. | 369 // changed to |state|. |
| 370 OnPresentationConnectionStateChanged( | 370 OnPresentationConnectionStateChanged( |
| 371 string route_id, PresentationConnectionState state); | 371 string route_id, PresentationConnectionState state); |
| 372 | 372 |
| 373 // Called when the presentation connected to route |route_id| has closed. | 373 // Called when the presentation connected to route |route_id| has closed. |
| 374 OnPresentationConnectionClosed( | 374 OnPresentationConnectionClosed( |
| 375 string route_id, PresentationConnectionCloseReason reason, | 375 string route_id, PresentationConnectionCloseReason reason, |
| 376 string message); | 376 string message); |
| 377 }; | 377 }; |
| 378 | 378 |
| OLD | NEW |