| 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/time.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 { |
| 11 enum IconType { | 11 enum IconType { |
| 12 CAST, | 12 CAST, |
| 13 CAST_AUDIO, | 13 CAST_AUDIO, |
| 14 CAST_AUDIO_GROUP, | 14 CAST_AUDIO_GROUP, |
| 15 GENERIC, | 15 GENERIC, |
| 16 HANGOUT | 16 HANGOUT |
| 17 }; | 17 }; |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 389 |
| 390 // Called when the a batch of messages arrives from the media sink for the | 390 // Called when the a batch of messages arrives from the media sink for the |
| 391 // route given by |route_id|. | 391 // route given by |route_id|. |
| 392 // |StartListeningForRouteMessages| must be called first in order to receive | 392 // |StartListeningForRouteMessages| must be called first in order to receive |
| 393 // messages. | 393 // messages. |
| 394 // |route_id|: ID of route of the messages. | 394 // |route_id|: ID of route of the messages. |
| 395 // |messages|: A non-empty list of messages received. | 395 // |messages|: A non-empty list of messages received. |
| 396 OnRouteMessagesReceived(string route_id, | 396 OnRouteMessagesReceived(string route_id, |
| 397 array<RouteMessage> messages); | 397 array<RouteMessage> messages); |
| 398 }; | 398 }; |
| OLD | NEW |