Chromium Code Reviews| Index: ash/system/audio/audio_observer.h |
| diff --git a/ash/system/audio/audio_observer.h b/ash/system/audio/audio_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ae4f7eea35b15123100b95d47bfe64deee2a4c61 |
| --- /dev/null |
| +++ b/ash/system/audio/audio_observer.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright (c) 2012 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. |
| + |
| +#ifndef ASH_SYSTEM_AUDIO_AUDIO_OBSERVER_H_ |
| +#define ASH_SYSTEM_AUDIO_AUDIO_OBSERVER_H_ |
| + |
| +namespace ash { |
| + |
| +class AudioObserver { |
|
jennyz
2014/02/14 21:36:43
It looks like you have removed several events from
jennyz
2014/02/14 21:38:34
Sorry, I didn't finish review the entire cl when I
|
| + public: |
| + virtual ~AudioObserver() {} |
| + |
| + // Called when output volume changed. |
| + virtual void OnOutputVolumeChanged() = 0; |
| + |
| + // Called when output mute state changed. |
| + virtual void OnOutputMuteChanged() = 0; |
| + |
| + // Called when audio nodes changed. |
| + virtual void OnAudioNodesChanged() = 0; |
| + |
| + // Called when active audio output node changed. |
| + virtual void OnActiveOutputNodeChanged() = 0; |
| + |
| + // Called when active audio input node changed. |
| + virtual void OnActiveInputNodeChanged() = 0; |
| +}; |
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_SYSTEM_AUDIO_AUDIO_OBSERVER_H_ |