Chromium Code Reviews| 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 ash. For now, used to delegate volume changes back to Chrome. | |
|
msw
2016/12/05 20:15:09
The new naming is confusing to me, the 'client' be
James Cook
2016/12/05 20:25:49
It's going to be a couple days before I get back t
James Cook
2016/12/05 20:25:49
It's going to be a couple days before I get back t
msw
2016/12/05 20:27:00
sgtm
James Cook
2016/12/06 19:23:57
Done.
| |
| 8 // In the future volume may be owned by ash, in which case this interface will | |
| 9 // implement VolumeUp/VolumeDown/etc. | |
| 10 interface Volume { | |
| 11 // Sets the client interface. | |
| 12 SetClient(VolumeClient client); | |
| 13 }; | |
| 14 | |
| 7 // Implemented by Chrome and used by ash to request audio volume changes. | 15 // 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 | 16 // Implemented by Chrome because it's currently the only client of audio dbus |
| 9 // interfaces (via CrasAudioHandler); this may be simplified if that changes. | 17 // interfaces (via CrasAudioHandler); this may be simplified if that changes. |
| 10 interface VolumeController { | 18 interface VolumeClient { |
| 11 // Mute the audio volume. | 19 // Mute the audio volume. |
| 12 VolumeMute(); | 20 VolumeMute(); |
| 13 // Decrease the audio volume. | 21 // Decrease the audio volume. |
| 14 VolumeDown(); | 22 VolumeDown(); |
| 15 // Increase the audio volume. | 23 // Increase the audio volume. |
| 16 VolumeUp(); | 24 VolumeUp(); |
| 17 }; | 25 }; |
| OLD | NEW |