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

Unified Diff: components/arc/common/audio.mojom

Issue 1817093003: Host-side implementation of ARC audio bridge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated commit message Created 4 years, 9 months 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: components/arc/common/audio.mojom
diff --git a/components/arc/common/audio.mojom b/components/arc/common/audio.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..7fe87c8b2f278f68b8eba5fb11e33968491efc34
--- /dev/null
+++ b/components/arc/common/audio.mojom
@@ -0,0 +1,24 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module arc;
+
+// Use same switch values as kernel switch events.
+enum AudioSwitch {
Luis Héctor Chávez 2016/03/23 16:22:13 Do you plan on adding entries to this enum or will
chinyue 2016/03/25 09:50:31 Done.
+ SW_HEADPHONE_INSERT = 0x02,
+ SW_MICROPHONE_INSERT = 0x04
+};
+
+interface AudioHost {
+};
+
+interface AudioInstance {
+ // Establishes full-duplex communication with the host.
+ Init(AudioHost host_ptr);
elijahtaylor1 2016/03/23 01:24:55 if you don't have a meaningful Host interface, you
chinyue 2016/03/25 09:50:31 Done.
+
+ // Notify plug states of headphone, microphone, etc. Each switch state is
+ // represented by the corresponding bit, if the bit is set then the switch
+ // is plugged/inserted.
+ NotifySwitchState(uint32 state);
+};
« components/arc/audio/arc_audio_bridge.cc ('K') | « components/arc/common/arc_bridge.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698