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

Side by Side Diff: mojo/services/media/common/interfaces/timelines.mojom

Issue 2006093004: Motown: Convert MediaSink to expose MediaTimelineControlSite (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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; 6 module mojo;
7 7
8 // TODO(dalesat): Move out of media to somewhere more generic. 8 // TODO(dalesat): Move out of media to somewhere more generic.
9 9
10 // Used as a placefolder for unspecified time values. 10 // Used as a placefolder for unspecified time values.
(...skipping 22 matching lines...) Expand all
33 // The change in the reference timeline corresponding to subject_delta. 33 // The change in the reference timeline corresponding to subject_delta.
34 // Cannnot be zero. 34 // Cannnot be zero.
35 uint32 reference_delta = 1; 35 uint32 reference_delta = 1;
36 36
37 // The change in the subject timeline corresponding to reference_delta. 37 // The change in the subject timeline corresponding to reference_delta.
38 uint32 subject_delta = 0; 38 uint32 subject_delta = 0;
39 }; 39 };
40 40
41 // A push-mode consumer of timeline updates. 41 // A push-mode consumer of timeline updates.
42 interface TimelineConsumer { 42 interface TimelineConsumer {
43 // Sets the timeline transform at the indicated effective time. Exactly one 43 // Sets the timeline transform at the indicated effective time. At least one
44 // of the effective_*_time values must be kUnspecifiedTime. 44 // of the effective_*_time values must be kUnspecifiedTime. If both are
45 // kUnspecifiedTime, the requested change is implemented as soon as possible.
45 // effective_subject_time can only be specified if the current subject_delta 46 // effective_subject_time can only be specified if the current subject_delta
46 // isn’t zero. reference_delta may not be zero. subject_time may be 47 // isn’t zero. reference_delta may not be zero. subject_time may be
47 // kUnspecifiedTime to indicate that the new transform subject_time should 48 // kUnspecifiedTime to indicate that the new transform subject_time should
48 // be inferred from the effective time. The new transform reference_time is 49 // be inferred from the effective time. The reference time for the new
49 // always inferred from the effective time. The callback is called at the 50 // transform (the reference time that will correspond to the specified or
50 // effective time or when a pending operation is cancelled due to a 51 // inferred subject_time) is always inferred from the effective time. The
51 // subsequent call, in which case the 'completed' value is false. 52 // callback is called at the effective time or when a pending operation is
53 // cancelled due to a subsequent call, in which case the 'completed' value is
54 // false.
52 SetTimelineTransform( 55 SetTimelineTransform(
53 int64 subject_time, 56 int64 subject_time,
54 uint32 reference_delta, 57 uint32 reference_delta,
55 uint32 subject_delta, 58 uint32 subject_delta,
56 int64 effective_reference_time, 59 int64 effective_reference_time,
57 int64 effective_subject_time) => (bool completed); 60 int64 effective_subject_time) => (bool completed);
58 }; 61 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698