Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: ash/public/interfaces/accelerator_controller.mojom

Issue 2552483002: mash: Have chrome set itself as a controller interface for changing volume (Closed)
Patch Set: comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/public/interfaces/BUILD.gn ('k') | ash/public/interfaces/volume.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 };
OLDNEW
« no previous file with comments | « ash/public/interfaces/BUILD.gn ('k') | ash/public/interfaces/volume.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698