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

Side by Side Diff: content/public/common/media_stream_request.cc

Issue 2609863004: Pass camera facing to WebKit (Closed)
Patch Set: fix trybot errors 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/public/common/media_stream_request.h" 5 #include "content/public/common/media_stream_request.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 video_facing = MEDIA_VIDEO_FACING_USER; 42 video_facing = MEDIA_VIDEO_FACING_USER;
43 } else if (name.find("back") != std::string::npos) { 43 } else if (name.find("back") != std::string::npos) {
44 video_facing = MEDIA_VIDEO_FACING_ENVIRONMENT; 44 video_facing = MEDIA_VIDEO_FACING_ENVIRONMENT;
45 } 45 }
46 #endif 46 #endif
47 } 47 }
48 48
49 MediaStreamDevice::MediaStreamDevice(MediaStreamType type, 49 MediaStreamDevice::MediaStreamDevice(MediaStreamType type,
50 const std::string& id, 50 const std::string& id,
51 const std::string& name, 51 const std::string& name,
52 VideoFacingMode facing)
53 : type(type), id(id), video_facing(facing), name(name) {}
54
55 MediaStreamDevice::MediaStreamDevice(MediaStreamType type,
56 const std::string& id,
57 const std::string& name,
52 int sample_rate, 58 int sample_rate,
53 int channel_layout, 59 int channel_layout,
54 int frames_per_buffer) 60 int frames_per_buffer)
55 : type(type), 61 : type(type),
56 id(id), 62 id(id),
57 video_facing(MEDIA_VIDEO_FACING_NONE), 63 video_facing(MEDIA_VIDEO_FACING_NONE),
58 name(name), 64 name(name),
59 input(sample_rate, channel_layout, frames_per_buffer) {} 65 input(sample_rate, channel_layout, frames_per_buffer) {}
60 66
61 MediaStreamDevice::MediaStreamDevice(const MediaStreamDevice& other) = default; 67 MediaStreamDevice::MediaStreamDevice(const MediaStreamDevice& other) = default;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 video_type(video_type), 134 video_type(video_type),
129 disable_local_echo(disable_local_echo), 135 disable_local_echo(disable_local_echo),
130 all_ancestors_have_same_origin(false) {} 136 all_ancestors_have_same_origin(false) {}
131 137
132 MediaStreamRequest::MediaStreamRequest(const MediaStreamRequest& other) = 138 MediaStreamRequest::MediaStreamRequest(const MediaStreamRequest& other) =
133 default; 139 default;
134 140
135 MediaStreamRequest::~MediaStreamRequest() {} 141 MediaStreamRequest::~MediaStreamRequest() {}
136 142
137 } // namespace content 143 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698