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

Unified Diff: ash/common/system/chromeos/audio/audio_observer.h

Issue 2489723005: chromeos: Make system tray audio item observe CrasAudioHandler directly (Closed)
Patch Set: rebase Created 4 years, 1 month 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
« no previous file with comments | « ash/common/BUILD.gn ('k') | ash/common/system/chromeos/audio/tray_audio.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/audio/audio_observer.h
diff --git a/ash/common/system/chromeos/audio/audio_observer.h b/ash/common/system/chromeos/audio/audio_observer.h
deleted file mode 100644
index ed937ad1b85112054bd1c856046d82c63314bc1c..0000000000000000000000000000000000000000
--- a/ash/common/system/chromeos/audio/audio_observer.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2014 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_COMMON_SYSTEM_CHROMEOS_AUDIO_AUDIO_OBSERVER_H_
-#define ASH_COMMON_SYSTEM_CHROMEOS_AUDIO_AUDIO_OBSERVER_H_
-
-#include <stdint.h>
-
-namespace ash {
-
-class AudioObserver {
- public:
- virtual ~AudioObserver() {}
-
- // Called when an active output device's volume changed.
- // |node_id|: id of the active node.
- // |volume|: volume as a percentage, 0.0 -- 100.0.
- virtual void OnOutputNodeVolumeChanged(uint64_t node_id, double volume) = 0;
-
- // Called when output mute state changed.
- // |mute_on|: True if output is muted.
- // |system_adjust|: True if the mute state is adjusted by the system
- // automatically, UI should be consistent with the system's mute state,
- // but it should not be too loud, e.g., the volume pop up window should not
- // be triggered.
- virtual void OnOutputMuteChanged(bool mute_on, bool system_adjust) = 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_COMMON_SYSTEM_CHROMEOS_AUDIO_AUDIO_OBSERVER_H_
« no previous file with comments | « ash/common/BUILD.gn ('k') | ash/common/system/chromeos/audio/tray_audio.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698