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

Unified Diff: content/public/common/media_stream_request.h

Issue 312773002: Support for audio output devices for getMediaDevices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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
Index: content/public/common/media_stream_request.h
diff --git a/content/public/common/media_stream_request.h b/content/public/common/media_stream_request.h
index 37172c0261f2da55a3a2cab47e60cfac3450ecdf..5a91fd10cccbac6c7d5f222dd241fccc6ee9decc 100644
--- a/content/public/common/media_stream_request.h
+++ b/content/public/common/media_stream_request.h
@@ -38,6 +38,11 @@ enum MediaStreamType {
// TODO(sergeyu): Replace with MEDIA_DESKTOP_AUDIO_CAPTURE.
MEDIA_LOOPBACK_AUDIO_CAPTURE,
+ // This is used for enumerating audio output devices.
+ // TODO(grunell): Output isn't really a part of media streams. Device
+ // enumeration should be decoupled from media streams and related code.
+ MEDIA_DEVICE_AUDIO_OUTPUT,
+
NUM_MEDIA_TYPES
};
@@ -77,7 +82,7 @@ enum MediaStreamRequestResult {
// Convenience predicates to determine whether the given type represents some
// audio or some video device.
-CONTENT_EXPORT bool IsAudioMediaType(MediaStreamType type);
+CONTENT_EXPORT bool IsAudioInputMediaType(MediaStreamType type);
CONTENT_EXPORT bool IsVideoMediaType(MediaStreamType type);
// TODO(xians): Change the structs to classes.
@@ -152,7 +157,7 @@ struct CONTENT_EXPORT MediaStreamDevice {
};
// These below two member variables are valid only when the type of device is
- // audio (i.e. IsAudioMediaType returns true).
+ // audio (i.e. IsAudioInputMediaType returns true).
// Contains the device properties of the capture device.
AudioDeviceParameters input;
« no previous file with comments | « content/browser/renderer_host/media/media_stream_ui_proxy.cc ('k') | content/public/common/media_stream_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698