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

Unified Diff: content/common/media/media_stream_options.h

Issue 10177008: Shift media_stream::StreamOptions to align with the new getUserMedia spec (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 8 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/common/media/media_stream_options.h
diff --git a/content/common/media/media_stream_options.h b/content/common/media/media_stream_options.h
index 1fa9efa86a4170f4880682460f20d5d593ec52ad..e5127ed376e6a0da0bdb618e98d6514db901d5f8 100644
--- a/content/common/media/media_stream_options.h
+++ b/content/common/media/media_stream_options.h
@@ -14,25 +14,18 @@
namespace media_stream {
// StreamOptions is a Chromium representation of WebKit's
-// WebGenerateStreamOptionFlags. It describes the components in a request for a
-// new media stream.
+// WebUserMediaRequest Options. It describes the components
+// in a request for a new media stream.
struct CONTENT_EXPORT StreamOptions {
- enum VideoOption {
- kNoCamera = 0,
- kFacingUser,
- kFacingEnvironment,
- kFacingBoth
- };
-
- StreamOptions() : audio(false), video_option(kNoCamera) {}
- StreamOptions(bool audio, VideoOption option)
- : audio(audio), video_option(option) {}
+ StreamOptions() : audio(false), video(false) {}
+ StreamOptions(bool audio, bool video)
+ : audio(audio), video(video) {}
// True if the stream shall contain an audio input stream.
bool audio;
- // Describes if a / which type of video capture device is requested.
- VideoOption video_option;
+ // True if the stream shall contain a video input stream.
+ bool video;
};
typedef content::MediaStreamDeviceType MediaStreamType;
« no previous file with comments | « content/common/media/media_stream_messages.h ('k') | content/renderer/media/media_stream_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698