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

Side by Side Diff: chromeos/audio/cras_audio_handler.h

Issue 385073009: Side Slide Gestures for Accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Memory leak Created 6 years, 5 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_ 5 #ifndef CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_
6 #define CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_ 6 #define CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Returns true if audio output is muted for a device. 90 // Returns true if audio output is muted for a device.
91 virtual bool IsOutputMutedForDevice(uint64 device_id); 91 virtual bool IsOutputMutedForDevice(uint64 device_id);
92 92
93 // Returns true if audio input is muted. 93 // Returns true if audio input is muted.
94 virtual bool IsInputMuted(); 94 virtual bool IsInputMuted();
95 95
96 // Returns true if audio input is muted for a device. 96 // Returns true if audio input is muted for a device.
97 virtual bool IsInputMutedForDevice(uint64 device_id); 97 virtual bool IsInputMutedForDevice(uint64 device_id);
98 98
99 // Returns true if the output volume is below the default mute volume level. 99 // Returns true if the output volume is below the default mute volume level.
100 virtual bool IsOutputVolumeBelowDefaultMuteLvel(); 100 virtual bool IsOutputVolumeBelowDefaultMuteLevel();
101 101
102 // Returns volume level in 0-100% range at which the volume should be muted. 102 // Returns volume level in 0-100% range at which the volume should be muted.
103 virtual int GetOutputDefaultVolumeMuteThreshold(); 103 virtual int GetOutputDefaultVolumeMuteThreshold();
104 104
105 // Gets volume level in 0-100% range (0 being pure silence) for the current 105 // Gets volume level in 0-100% range (0 being pure silence) for the current
106 // active node. 106 // active node.
107 virtual int GetOutputVolumePercent(); 107 virtual int GetOutputVolumePercent();
108 108
109 // Gets volume level in 0-100% range (0 being pure silence) for a device. 109 // Gets volume level in 0-100% range (0 being pure silence) for a device.
110 virtual int GetOutputVolumePercentForDevice(uint64 device_id); 110 virtual int GetOutputVolumePercentForDevice(uint64 device_id);
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 // Failures are not logged at startup, since CRAS may not be running yet. 272 // Failures are not logged at startup, since CRAS may not be running yet.
273 bool log_errors_; 273 bool log_errors_;
274 274
275 DISALLOW_COPY_AND_ASSIGN(CrasAudioHandler); 275 DISALLOW_COPY_AND_ASSIGN(CrasAudioHandler);
276 }; 276 };
277 277
278 } // namespace chromeos 278 } // namespace chromeos
279 279
280 #endif // CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_ 280 #endif // CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/volume_controller_chromeos.cc ('k') | chromeos/audio/cras_audio_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698