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 ash.mojom; | 5 module ash.mojom; |
6 | 6 |
7 // Implemented by Chrome and used by ash to request audio volume changes. | 7 import "ash/public/interfaces/volume.mojom"; |
8 // Implemented by Chrome because it's currently the only client of audio dbus | 8 |
9 // interfaces (via CrasAudioHandler); this may be simplified if that changes. | 9 // Implemented by ash to delegate parts of keyboard accelerator handling back |
10 interface VolumeController { | 10 // to chrome. |
11 // Mute the audio volume. | 11 interface AcceleratorController { |
12 VolumeMute(); | 12 // Sets the volume controller interface. This lives in chrome because chrome |
13 // Decrease the audio volume. | 13 // owns the D-Bus CrasAudioHandler implementation. Also the accessibility |
14 VolumeDown(); | 14 // manager in chrome needs to know about volume changes. |
15 // Increase the audio volume. | 15 SetVolumeController(VolumeController controller); |
16 VolumeUp(); | |
17 }; | 16 }; |
OLD | NEW |