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

Unified Diff: content/renderer/media/mock_media_stream_dispatcher.cc

Issue 2609863004: Pass camera facing to WebKit (Closed)
Patch Set: change comments Created 3 years, 11 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 | « content/renderer/media/media_stream_video_track.cc ('k') | media/base/video_facing.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/mock_media_stream_dispatcher.cc
diff --git a/content/renderer/media/mock_media_stream_dispatcher.cc b/content/renderer/media/mock_media_stream_dispatcher.cc
index db27d900d605d6fcdb205abfb9eefbb8caf34b9d..e2f054acb9711946bb4a48a22a06d59de07fc33e 100644
--- a/content/renderer/media/mock_media_stream_dispatcher.cc
+++ b/content/renderer/media/mock_media_stream_dispatcher.cc
@@ -89,7 +89,7 @@ void MockMediaStreamDispatcher::AddAudioInputDeviceToArray(
audio.device.id = audio.device.id + base::IntToString(session_id_);
audio.device.name = "microphone";
audio.device.type = MEDIA_DEVICE_AUDIO_CAPTURE;
- audio.device.video_facing = MEDIA_VIDEO_FACING_NONE;
+ audio.device.video_facing = media::MEDIA_VIDEO_FACING_NONE;
if (matched_output) {
audio.device.matched_output_device_id =
kAudioOutputDeviceIdPrefix + base::IntToString(session_id_);
@@ -109,8 +109,9 @@ void MockMediaStreamDispatcher::AddVideoDeviceToArray(
video.device.id = video.device.id + base::IntToString(session_id_);
video.device.name = "usb video camera";
video.device.type = MEDIA_DEVICE_VIDEO_CAPTURE;
- video.device.video_facing = facing_user ? MEDIA_VIDEO_FACING_USER
- : MEDIA_VIDEO_FACING_ENVIRONMENT;
+ video.device.video_facing = facing_user
+ ? media::MEDIA_VIDEO_FACING_USER
+ : media::MEDIA_VIDEO_FACING_ENVIRONMENT;
video.session_id = session_id_;
video_array_.push_back(video);
}
« no previous file with comments | « content/renderer/media/media_stream_video_track.cc ('k') | media/base/video_facing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698