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

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

Issue 1741963002: Auto-formatted all .mojom files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 10 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_metadata.mojom"; 8 import "mojo/services/media/common/interfaces/media_metadata.mojom";
9 import "mojo/services/media/common/interfaces/media_state.mojom"; 9 import "mojo/services/media/common/interfaces/media_state.mojom";
10 import "mojo/services/media/common/interfaces/rate_control.mojom"; 10 import "mojo/services/media/common/interfaces/rate_control.mojom";
11 11
12 // Plays media. 12 // Plays media.
13 interface MediaPlayer { 13 interface MediaPlayer {
14 // Starts playback. 14 // Starts playback.
15 Play(); 15 Play();
16 16
17 // Pauses playback. 17 // Pauses playback.
18 Pause(); 18 Pause();
19 19
20 // Gets the status. To get the status immediately, call GetStatus(0). To 20 // Gets the status. To get the status immediately, call GetStatus(0). To
21 // get updates thereafter, pass the version sent in the previous callback. 21 // get updates thereafter, pass the version sent in the previous callback.
22 GetStatus(uint64 version_last_seen) => 22 GetStatus(uint64 version_last_seen) => (uint64 version, MediaPlayerStatus stat us);
23 (uint64 version, MediaPlayerStatus status);
24 }; 23 };
25 24
26 // MediaPlayer status information. 25 // MediaPlayer status information.
27 struct MediaPlayerStatus { 26 struct MediaPlayerStatus {
28 // Current state of the player. 27 // Current state of the player.
29 MediaState state; 28 MediaState state;
30 29
31 // Transform translating local time to presentation time. Reverse translation 30 // Transform translating local time to presentation time. Reverse translation
32 // (presentation time to local time) is only valid when media is playing. 31 // (presentation time to local time) is only valid when media is playing.
33 TimelineTransform? timeline_transform; 32 TimelineTransform? timeline_transform;
34 33
35 // Describes the media. 34 // Describes the media.
36 MediaMetadata? metadata; 35 MediaMetadata? metadata;
37 }; 36 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698