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

Side by Side Diff: mojo/services/media/control/interfaces/media_sink.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_state.mojom"; 10 import "mojo/services/media/common/interfaces/media_state.mojom";
(...skipping 19 matching lines...) Expand all
30 30
31 // Sets a master clock. 31 // Sets a master clock.
32 SetMasterClock(Clock? master_clock); 32 SetMasterClock(Clock? master_clock);
33 33
34 // Gets the consumer for the stream to be delivered. 34 // Gets the consumer for the stream to be delivered.
35 GetConsumer(MediaConsumer& consumer); 35 GetConsumer(MediaConsumer& consumer);
36 36
37 // Gets the status. To get the status immediately, call 37 // Gets the status. To get the status immediately, call
38 // GetStatus(kInitialStatus). To get updates thereafter, pass the version 38 // GetStatus(kInitialStatus). To get updates thereafter, pass the version
39 // sent in the previous callback. 39 // sent in the previous callback.
40 GetStatus(uint64 version_last_seen) => 40 GetStatus(uint64 version_last_seen)
41 (uint64 version, MediaSinkStatus status); 41 => (uint64 version, MediaSinkStatus status);
42 42
43 // Starts playback. 43 // Starts playback.
44 Play(); 44 Play();
45 45
46 // Pauses playback. 46 // Pauses playback.
47 Pause(); 47 Pause();
48 }; 48 };
49 49
50 // MediaSink status information. 50 // MediaSink status information.
51 struct MediaSinkStatus { 51 struct MediaSinkStatus {
52 // Current state of the sink. 52 // Current state of the sink.
53 MediaState state; 53 MediaState state;
54 54
55 // Transform translating local time to presentation time. Reverse translation 55 // Transform translating local time to presentation time. Reverse translation
56 // (presentation time to local time) is only valid when media is playing. 56 // (presentation time to local time) is only valid when media is playing.
57 TimelineTransform? timeline_transform; 57 TimelineTransform? timeline_transform;
58 }; 58 };
OLDNEW
« no previous file with comments | « mojo/services/media/control/interfaces/media_player.mojom ('k') | mojo/services/media/control/interfaces/media_source.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698