OLD | NEW |
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 module arc; | 5 module arc.mojom; |
6 | 6 |
7 // Use same switch values as kernel switch events. | 7 // Use same switch values as kernel switch events. |
8 [Extensible] | 8 [Extensible] |
9 enum AudioSwitch { | 9 enum AudioSwitch { |
10 SW_HEADPHONE_INSERT = 0x02, | 10 SW_HEADPHONE_INSERT = 0x02, |
11 SW_MICROPHONE_INSERT = 0x04 | 11 SW_MICROPHONE_INSERT = 0x04 |
12 }; | 12 }; |
13 | 13 |
14 interface AudioInstance { | 14 interface AudioInstance { |
15 // Notify plug states of headphone, microphone, etc. Each switch state is | 15 // Notify plug states of headphone, microphone, etc. Each switch state is |
16 // represented by the corresponding bit, if the bit is set then the switch | 16 // represented by the corresponding bit, if the bit is set then the switch |
17 // is plugged/inserted. | 17 // is plugged/inserted. |
18 NotifySwitchState(uint32 state); | 18 NotifySwitchState(uint32 state); |
19 }; | 19 }; |
OLD | NEW |