OLD | NEW |
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 // Expresses a component's disposition with respect to being a clock master or | 8 // Expresses a component's disposition with respect to being a clock master or |
9 // slave. | 9 // slave. |
10 enum ClockDisposition { | 10 enum ClockDisposition { |
11 // Clocks are irrelevant. Component will produce/consume on demand. | 11 // Clocks are irrelevant. Component will produce/consume on demand. |
12 PASSIVE, | 12 PASSIVE, |
13 | 13 |
14 // Component must slave to a master clock. | 14 // Component must slave to a master clock. |
15 SLAVE, | 15 SLAVE, |
16 | 16 |
17 // Component can be master or slave, but being slave is preferred. | 17 // Component can be master or slave, but being slave is preferred. |
18 PREFER_SLAVE, | 18 PREFER_SLAVE, |
19 | 19 |
20 // Component can be master or slave, doesn't care which. | 20 // Component can be master or slave, doesn't care which. |
21 INDIFFERENT, | 21 INDIFFERENT, |
22 | 22 |
23 // Component can be master or slave, but master is preferred. | 23 // Component can be master or slave, but master is preferred. |
24 PREFER_MASTER, | 24 PREFER_MASTER, |
25 | 25 |
26 // Component must be master and cannot slave to a master clock. | 26 // Component must be master and cannot slave to a master clock. |
27 MASTER | 27 MASTER, |
28 }; | 28 }; |
29 | 29 |
30 interface Clock { | 30 interface Clock { |
31 // TODO(dalesat): Define this. | 31 // TODO(dalesat): Define this. |
32 }; | 32 }; |
OLD | NEW |