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 "mojo/common/common_custom_types.mojom"; | 7 import "mojo/common/common_custom_types.mojom"; |
8 | 8 |
9 // Represents an output sink to which media can be routed. | 9 // Represents an output sink to which media can be routed. |
10 struct MediaSink { | 10 struct MediaSink { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // Specifies that the route is requested locally. | 43 // Specifies that the route is requested locally. |
44 bool is_local; | 44 bool is_local; |
45 // An optional path to an HTML page bundled bundled with the media router | 45 // An optional path to an HTML page bundled bundled with the media router |
46 // component extension. When set, the route can have custom route detail as | 46 // component extension. When set, the route can have custom route detail as |
47 // well as its own route controls in the media router dialog. | 47 // well as its own route controls in the media router dialog. |
48 string? custom_controller_path; | 48 string? custom_controller_path; |
49 // Set to true if this route should be displayed for |media_sink_id| in UI. | 49 // Set to true if this route should be displayed for |media_sink_id| in UI. |
50 bool for_display; | 50 bool for_display; |
51 // Set to true if this route was created by an incognito profile. | 51 // Set to true if this route was created by an incognito profile. |
52 bool incognito; | 52 bool incognito; |
| 53 // Set to true if this route corresponds to an offscreen presentation. |
| 54 bool is_offscreen_presentation; |
53 }; | 55 }; |
54 | 56 |
55 // Notifications or an actionable events to be shown to the user. | 57 // Notifications or an actionable events to be shown to the user. |
56 // When is_blocking is true, media router UI shows issue only: | 58 // When is_blocking is true, media router UI shows issue only: |
57 // | 59 // |
58 // Title | 60 // Title |
59 // Message | 61 // Message |
60 // default_action_button secondary_action_button | 62 // default_action_button secondary_action_button |
61 // | 63 // |
62 // When is_blocking is false, media router UI uses banner: | 64 // When is_blocking is false, media router UI uses banner: |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 | 387 |
386 // Called when the a batch of messages arrives from the media sink for the | 388 // Called when the a batch of messages arrives from the media sink for the |
387 // route given by |route_id|. | 389 // route given by |route_id|. |
388 // |StartListeningForRouteMessages| must be called first in order to receive | 390 // |StartListeningForRouteMessages| must be called first in order to receive |
389 // messages. | 391 // messages. |
390 // |route_id|: ID of route of the messages. | 392 // |route_id|: ID of route of the messages. |
391 // |messages|: A non-empty list of messages received. | 393 // |messages|: A non-empty list of messages received. |
392 OnRouteMessagesReceived(string route_id, | 394 OnRouteMessagesReceived(string route_id, |
393 array<RouteMessage> messages); | 395 array<RouteMessage> messages); |
394 }; | 396 }; |
OLD | NEW |