Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Side by Side Diff: mojo/services/media/control/interfaces/media_source.mojom

Issue 1741963002: Auto-formatted all .mojom files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 [DartPackage="mojo_services"] 5 [DartPackage="mojo_services"]
6 module mojo.media; 6 module mojo.media;
7 7
8 import "mojo/services/media/common/interfaces/media_clock.mojom"; 8 import "mojo/services/media/common/interfaces/media_clock.mojom";
9 import "mojo/services/media/common/interfaces/media_common.mojom"; 9 import "mojo/services/media/common/interfaces/media_common.mojom";
10 import "mojo/services/media/common/interfaces/media_metadata.mojom"; 10 import "mojo/services/media/common/interfaces/media_metadata.mojom";
(...skipping 16 matching lines...) Expand all
27 SetMasterClock(Clock? master_clock); 27 SetMasterClock(Clock? master_clock);
28 28
29 // Gets the producer for the specified stream. 29 // Gets the producer for the specified stream.
30 GetProducer(uint32 stream_index, MediaProducer& producer); 30 GetProducer(uint32 stream_index, MediaProducer& producer);
31 31
32 // Gets the pull mode producer for the specified stream. 32 // Gets the pull mode producer for the specified stream.
33 GetPullModeProducer(uint32 stream_index, MediaPullModeProducer& producer); 33 GetPullModeProducer(uint32 stream_index, MediaPullModeProducer& producer);
34 34
35 // Gets the status. To get the status immediately, call GetStatus(0). To 35 // Gets the status. To get the status immediately, call GetStatus(0). To
36 // get updates thereafter, pass the version sent in the previous callback. 36 // get updates thereafter, pass the version sent in the previous callback.
37 GetStatus(uint64 version_last_seen) => 37 GetStatus(uint64 version_last_seen) => (uint64 version, MediaSourceStatus stat us);
38 (uint64 version, MediaSourceStatus status);
39 38
40 // Prepares the source. 39 // Prepares the source.
41 // TODO(dalesat): Revisit. 40 // TODO(dalesat): Revisit.
42 Prepare() => (); 41 Prepare() => ();
43 }; 42 };
44 43
45 // Describes a media stream produced by a source. 44 // Describes a media stream produced by a source.
46 struct MediaSourceStreamDescriptor { 45 struct MediaSourceStreamDescriptor {
47 // Zero-based index. 46 // Zero-based index.
48 uint32 index; 47 uint32 index;
49 48
50 // Media type of the stream after conversion. 49 // Media type of the stream after conversion.
51 MediaType media_type; 50 MediaType media_type;
52 51
53 // Media type of the stream before conversion (as produced by the demux). 52 // Media type of the stream before conversion (as produced by the demux).
54 MediaType original_media_type; 53 MediaType original_media_type;
55 }; 54 };
56 55
57 // Describes the media source. 56 // Describes the media source.
58 struct MediaSourceStatus { 57 struct MediaSourceStatus {
59 // Current state of the source. 58 // Current state of the source.
60 MediaState state; 59 MediaState state;
61 60
62 // Describes the media. 61 // Describes the media.
63 MediaMetadata? metadata; 62 MediaMetadata? metadata;
64 }; 63 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698