| 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.mojom; | 5 module media_router.mojom; |
| 6 | 6 |
| 7 import "chrome/common/media_router/mojo/media_controller.mojom"; | 7 import "chrome/common/media_router/mojo/media_controller.mojom"; |
| 8 import "chrome/common/media_router/mojo/media_status.mojom"; | 8 import "chrome/common/media_router/mojo/media_status.mojom"; |
| 9 import "mojo/common/time.mojom"; | 9 import "mojo/common/time.mojom"; |
| 10 import "net/interfaces/ip_address.mojom"; | 10 import "net/interfaces/ip_address.mojom"; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // May be missing if route is not local. | 81 // May be missing if route is not local. |
| 82 string? media_source; | 82 string? media_source; |
| 83 // The ID of sink that is rendering the media content. | 83 // The ID of sink that is rendering the media content. |
| 84 string media_sink_id; | 84 string media_sink_id; |
| 85 // Human readable description of this route, e.g. "Tab casting". | 85 // Human readable description of this route, e.g. "Tab casting". |
| 86 string description; | 86 string description; |
| 87 // Specifies that the route is requested locally. | 87 // Specifies that the route is requested locally. |
| 88 bool is_local; | 88 bool is_local; |
| 89 // An optional path to an HTML page bundled bundled with the media router | 89 // An optional path to an HTML page bundled bundled with the media router |
| 90 // component extension. When set, the route can have custom route detail as | 90 // component extension. When set, the route can have custom route detail as |
| 91 // well as its own route controls in the media router dialog. | 91 // well as its own route controls within an extensionview in the Media Router |
| 92 // dialog. |
| 92 string? custom_controller_path; | 93 string? custom_controller_path; |
| 94 // Whether the provider for this route supports the Media Route Controller. |
| 95 bool supports_media_route_controller; |
| 93 // Set to true if this route should be displayed for |media_sink_id| in UI. | 96 // Set to true if this route should be displayed for |media_sink_id| in UI. |
| 94 bool for_display; | 97 bool for_display; |
| 95 // Set to true if this route was created by an incognito profile. | 98 // Set to true if this route was created by an incognito profile. |
| 96 bool is_incognito; | 99 bool is_incognito; |
| 97 // Set to true if this route corresponds to an offscreen presentation. | 100 // Set to true if this route corresponds to an offscreen presentation. |
| 98 bool is_offscreen_presentation; | 101 bool is_offscreen_presentation; |
| 99 }; | 102 }; |
| 100 | 103 |
| 101 // Notifications or an actionable events to be shown to the user. | 104 // Notifications or an actionable events to be shown to the user. |
| 102 // When is_blocking is true, media router UI shows issue only: | 105 // When is_blocking is true, media router UI shows issue only: |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 | 468 |
| 466 // Called when the a batch of messages arrives from the media sink for the | 469 // Called when the a batch of messages arrives from the media sink for the |
| 467 // route given by |route_id|. | 470 // route given by |route_id|. |
| 468 // |StartListeningForRouteMessages| must be called first in order to receive | 471 // |StartListeningForRouteMessages| must be called first in order to receive |
| 469 // messages. | 472 // messages. |
| 470 // |route_id|: ID of route of the messages. | 473 // |route_id|: ID of route of the messages. |
| 471 // |messages|: A non-empty list of messages received. | 474 // |messages|: A non-empty list of messages received. |
| 472 OnRouteMessagesReceived(string route_id, | 475 OnRouteMessagesReceived(string route_id, |
| 473 array<RouteMessage> messages); | 476 array<RouteMessage> messages); |
| 474 }; | 477 }; |
| OLD | NEW |