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

Side by Side Diff: components/arc/audio/arc_audio_bridge.h

Issue 1817093003: Host-side implementation of ARC audio bridge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused override and update data type. 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 unified diff | Download patch
« no previous file with comments | « components/arc/audio/DEPS ('k') | components/arc/audio/arc_audio_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_ARC_AUDIO_ARC_AUDIO_BRIDGE_H_
6 #define COMPONENTS_ARC_AUDIO_ARC_AUDIO_BRIDGE_H_
7
8 #include <string>
9
10 #include "base/macros.h"
11 #include "chromeos/audio/cras_audio_handler.h"
12 #include "components/arc/arc_bridge_service.h"
13 #include "components/arc/arc_service.h"
14 #include "mojo/public/cpp/bindings/binding.h"
15
16 namespace arc {
17
18 class ArcAudioBridge : public ArcService,
19 public ArcBridgeService::Observer,
20 public chromeos::CrasAudioHandler::AudioObserver {
21 public:
22 explicit ArcAudioBridge(ArcBridgeService* bridge_service);
23 ~ArcAudioBridge() override;
24
25 private:
26 chromeos::CrasAudioHandler* cras_audio_handler_ = nullptr;
27
28 // chromeos::CrasAudioHandler::AudioObserver overrides.
29 void OnAudioNodesChanged() override;
30
31 void SendSwitchState(bool headphone_inserted, bool microphone_inserted);
32
33 DISALLOW_COPY_AND_ASSIGN(ArcAudioBridge);
34 };
35
36 } // namespace arc
37
38 #endif // COMPONENTS_ARC_AUDIO_ARC_AUDIO_BRIDGE_H_
OLDNEW
« no previous file with comments | « components/arc/audio/DEPS ('k') | components/arc/audio/arc_audio_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698