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

Unified Diff: ash/public/interfaces/volume.mojom

Issue 2552483002: mash: Have chrome set itself as a controller interface for changing volume (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
Index: ash/public/interfaces/volume.mojom
diff --git a/ash/public/interfaces/volume.mojom b/ash/public/interfaces/volume.mojom
index 85bd93928bbbbece6849930d9c3662d92313f4af..d54035204624e59ac29d570d065060dffc4cadc6 100644
--- a/ash/public/interfaces/volume.mojom
+++ b/ash/public/interfaces/volume.mojom
@@ -4,10 +4,18 @@
module ash.mojom;
+// 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.
+// In the future volume may be owned by ash, in which case this interface will
+// implement VolumeUp/VolumeDown/etc.
+interface Volume {
+ // Sets the client interface.
+ SetClient(VolumeClient client);
+};
+
// 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 {
+interface VolumeClient {
// Mute the audio volume.
VolumeMute();
// Decrease the audio volume.

Powered by Google App Engine
This is Rietveld 408576698