| 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 // Implemented by Chrome and used by ash to request audio volume changes. |
| 8 // Implemented by Chrome because it's currently the only client of audio dbus | 8 // Implemented by Chrome because it's currently the only client of audio dbus |
| 9 // interfaces (via CrasAudioHandler); this may be simplified if that changes. | 9 // interfaces (via CrasAudioHandler). |
| 10 // TODO(crbug.com/644336): Flip this pattern, ash should implement the volume |
| 11 // control interface or both ash and chrome should directly access the |
| 12 // CrasAudioHandler volume control functions. |
| 10 interface VolumeController { | 13 interface VolumeController { |
| 11 // Mute the audio volume. | 14 // Mute the audio volume. |
| 12 VolumeMute(); | 15 VolumeMute(); |
| 13 // Decrease the audio volume. | 16 // Decrease the audio volume. |
| 14 VolumeDown(); | 17 VolumeDown(); |
| 15 // Increase the audio volume. | 18 // Increase the audio volume. |
| 16 VolumeUp(); | 19 VolumeUp(); |
| 17 }; | 20 }; |
| OLD | NEW |