| Index: ash/public/interfaces/accelerator_controller.mojom
|
| diff --git a/ash/public/interfaces/volume.mojom b/ash/public/interfaces/accelerator_controller.mojom
|
| similarity index 30%
|
| copy from ash/public/interfaces/volume.mojom
|
| copy to ash/public/interfaces/accelerator_controller.mojom
|
| index 85bd93928bbbbece6849930d9c3662d92313f4af..0fe3475a6a1ea33d70138a7856fee413a740b54d 100644
|
| --- a/ash/public/interfaces/volume.mojom
|
| +++ b/ash/public/interfaces/accelerator_controller.mojom
|
| @@ -4,14 +4,13 @@
|
|
|
| module ash.mojom;
|
|
|
| -// Implemented by Chrome and used by ash to request audio volume changes.
|
| -// Implemented by Chrome because it's currently the only client of audio dbus
|
| -// interfaces (via CrasAudioHandler); this may be simplified if that changes.
|
| -interface VolumeController {
|
| - // Mute the audio volume.
|
| - VolumeMute();
|
| - // Decrease the audio volume.
|
| - VolumeDown();
|
| - // Increase the audio volume.
|
| - VolumeUp();
|
| +import "ash/public/interfaces/volume.mojom";
|
| +
|
| +// Implemented by ash to delegate parts of keyboard accelerator handling back
|
| +// to chrome.
|
| +interface AcceleratorController {
|
| + // Sets the volume controller interface. This lives in chrome because chrome
|
| + // owns the D-Bus CrasAudioHandler implementation. Also the accessibility
|
| + // manager in chrome needs to know about volume changes.
|
| + SetVolumeController(VolumeController controller);
|
| };
|
|
|