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

Side by Side Diff: chrome/browser/chromeos/extensions/extension_volume_observer.h

Issue 2427913003: Use mojo volume interfaces for mash and classic ash. (Closed)
Patch Set: Split volume and system events observers; only hook up volume. Created 4 years, 2 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
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 CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTENSION_VOLUME_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTENSION_VOLUME_OBSERVER_H_
7
8 #include "base/macros.h"
9 #include "chromeos/audio/cras_audio_handler.h"
10
11 namespace chromeos {
12
13 // Dispatches extension events in response to volume events.
14 class ExtensionVolumeObserver : public CrasAudioHandler::AudioObserver {
15 public:
16 // This class registers/unregisters itself as an observer in ctor/dtor.
17 ExtensionVolumeObserver();
18 ~ExtensionVolumeObserver() override;
19
20 // CrasAudioHandler::AudioObserver:
21 void OnOutputNodeVolumeChanged(uint64_t node_id, int volume) override;
22 void OnOutputMuteChanged(bool mute_on, bool system_adjust) override;
23
24 private:
25 DISALLOW_COPY_AND_ASSIGN(ExtensionVolumeObserver);
26 };
27
28 } // namespace chromeos
29
30 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTENSION_VOLUME_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/chrome_interface_factory.cc ('k') | chrome/browser/chromeos/extensions/extension_volume_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698