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

Unified Diff: media/audio/audio_input_ipc.h

Issue 1175003004: Change audio IPC enums from kConstantStyle to MACRO_STYLE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/audio_input_device.cc ('k') | media/audio/audio_output_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_input_ipc.h
diff --git a/media/audio/audio_input_ipc.h b/media/audio/audio_input_ipc.h
index ce7b034d6a5b398fac9e89cb3e9c731f6b34fac2..f9784f585a87820504077068734c5ff5d074fa92 100644
--- a/media/audio/audio_input_ipc.h
+++ b/media/audio/audio_input_ipc.h
@@ -12,19 +12,18 @@
namespace media {
+enum AudioInputIPCDelegateState {
+ AUDIO_INPUT_IPC_DELEGATE_STATE_RECORDING,
+ AUDIO_INPUT_IPC_DELEGATE_STATE_STOPPED,
+ AUDIO_INPUT_IPC_DELEGATE_STATE_ERROR,
+ AUDIO_INPUT_IPC_DELEGATE_STATE_LAST = AUDIO_INPUT_IPC_DELEGATE_STATE_ERROR,
+};
+
// Contains IPC notifications for the state of the server side
// (AudioInputController) audio state changes and when an AudioInputController
// has been created. Implemented by AudioInputDevice.
class MEDIA_EXPORT AudioInputIPCDelegate {
public:
- // Valid states for the input stream.
- enum State {
- kRecording,
- kStopped,
- kError,
- kStateLast = kError
- };
-
// Called when an AudioInputController has been created.
// The shared memory |handle| points to a memory section that's used to
// transfer data between the AudioInputDevice and AudioInputController
@@ -39,7 +38,7 @@ class MEDIA_EXPORT AudioInputIPCDelegate {
int total_segments) = 0;
// Called when state of an audio stream has changed.
- virtual void OnStateChanged(State state) = 0;
+ virtual void OnStateChanged(AudioInputIPCDelegateState state) = 0;
// Called when the input stream volume has changed.
virtual void OnVolume(double volume) = 0;
« no previous file with comments | « media/audio/audio_input_device.cc ('k') | media/audio/audio_output_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698