| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 bool is_local; | 42 bool is_local; |
| 43 // An optional path to an HTML page bundled bundled with the media router | 43 // An optional path to an HTML page bundled bundled with the media router |
| 44 // component extension. When set, the route can have custom route detail as | 44 // component extension. When set, the route can have custom route detail as |
| 45 // well as its own route controls in the media router dialog. | 45 // well as its own route controls in the media router dialog. |
| 46 string? custom_controller_path; | 46 string? custom_controller_path; |
| 47 // Set to true if this route should be displayed for |media_sink_id| in UI. | 47 // Set to true if this route should be displayed for |media_sink_id| in UI. |
| 48 bool for_display; | 48 bool for_display; |
| 49 // Set to true if this route was created by an off the record (incognito) | 49 // Set to true if this route was created by an off the record (incognito) |
| 50 // profile. | 50 // profile. |
| 51 bool off_the_record; | 51 bool off_the_record; |
| 52 // Set to true if this route corresponds to an offscreen presentation. |
| 53 bool is_offscreen_presentation; |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 // Notifications or an actionable events to be shown to the user. | 56 // Notifications or an actionable events to be shown to the user. |
| 55 // When is_blocking is true, media router UI shows issue only: | 57 // When is_blocking is true, media router UI shows issue only: |
| 56 // | 58 // |
| 57 // Title | 59 // Title |
| 58 // Message | 60 // Message |
| 59 // default_action_button secondary_action_button | 61 // default_action_button secondary_action_button |
| 60 // | 62 // |
| 61 // When is_blocking is false, media router UI uses banner: | 63 // When is_blocking is false, media router UI uses banner: |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 // changed to |state|. | 371 // changed to |state|. |
| 370 OnPresentationConnectionStateChanged( | 372 OnPresentationConnectionStateChanged( |
| 371 string route_id, PresentationConnectionState state); | 373 string route_id, PresentationConnectionState state); |
| 372 | 374 |
| 373 // Called when the presentation connected to route |route_id| has closed. | 375 // Called when the presentation connected to route |route_id| has closed. |
| 374 OnPresentationConnectionClosed( | 376 OnPresentationConnectionClosed( |
| 375 string route_id, PresentationConnectionCloseReason reason, | 377 string route_id, PresentationConnectionCloseReason reason, |
| 376 string message); | 378 string message); |
| 377 }; | 379 }; |
| 378 | 380 |
| OLD | NEW |