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

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: Switch to 80 char line length limit. 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)
38 (uint64 version, MediaSourceStatus status); 38 => (uint64 version, MediaSourceStatus status);
39 39
40 // Prepares the source. 40 // Prepares the source.
41 Prepare() => (); 41 Prepare() => ();
42 42
43 // Flushes the source. 43 // Flushes the source.
44 Flush() => (); 44 Flush() => ();
45 }; 45 };
46 46
47 // Describes a media stream produced by a source. 47 // Describes a media stream produced by a source.
48 struct MediaSourceStreamDescriptor { 48 struct MediaSourceStreamDescriptor {
49 // Zero-based index. 49 // Zero-based index.
50 uint32 index; 50 uint32 index;
51 51
52 // Media type of the stream after conversion. 52 // Media type of the stream after conversion.
53 MediaType media_type; 53 MediaType media_type;
54 54
55 // Media type of the stream before conversion (as produced by the demux). 55 // Media type of the stream before conversion (as produced by the demux).
56 MediaType original_media_type; 56 MediaType original_media_type;
57 }; 57 };
58 58
59 // Describes the media source. 59 // Describes the media source.
60 struct MediaSourceStatus { 60 struct MediaSourceStatus {
61 // Current state of the source. 61 // Current state of the source.
62 MediaState state; 62 MediaState state;
63 63
64 // Describes the media. 64 // Describes the media.
65 MediaMetadata? metadata; 65 MediaMetadata? metadata;
66 }; 66 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698