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

Side by Side Diff: content/common/media/media_stream_options.h

Issue 2081093002: Cleanup: Remove video constraint names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/common/media/media_stream_options.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ 5 #ifndef CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_
6 #define CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ 6 #define CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/public/common/media_stream_request.h" 12 #include "content/public/common/media_stream_request.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 // MediaStreamConstraint keys for constraints that are passed to getUserMedia. 16 // Names for media stream source capture types.
17 CONTENT_EXPORT extern const char kMediaStreamSource[]; 17 // These are values of the "TrackControls.stream_source" field, and are
18 CONTENT_EXPORT extern const char kMediaStreamSourceId[]; 18 // set via the "chromeMediaSource" constraint.
19 CONTENT_EXPORT extern const char kMediaStreamSourceInfoId[];
20 CONTENT_EXPORT extern const char kMediaStreamSourceTab[]; 19 CONTENT_EXPORT extern const char kMediaStreamSourceTab[];
21 CONTENT_EXPORT extern const char kMediaStreamSourceScreen[]; 20 CONTENT_EXPORT extern const char kMediaStreamSourceScreen[];
22 CONTENT_EXPORT extern const char kMediaStreamSourceDesktop[]; 21 CONTENT_EXPORT extern const char kMediaStreamSourceDesktop[];
23 CONTENT_EXPORT extern const char kMediaStreamSourceSystem[]; 22 CONTENT_EXPORT extern const char kMediaStreamSourceSystem[];
24 23
25 // Experimental constraint to do device matching. When this optional constraint
26 // is set, WebRTC audio renderer will render audio from media streams to an
27 // output device that belongs to the same hardware as the requested source
28 // device belongs to.
29 CONTENT_EXPORT extern const char kMediaStreamRenderToAssociatedSink[];
30
31 // Controls whether the hotword audio stream is used on platforms that support
32 // it.
33 CONTENT_EXPORT extern const char kMediaStreamAudioHotword[];
34
35 struct CONTENT_EXPORT TrackControls { 24 struct CONTENT_EXPORT TrackControls {
36 public: 25 public:
37 TrackControls(); 26 TrackControls();
38 TrackControls(bool request); 27 TrackControls(bool request);
39 TrackControls(const TrackControls& other); 28 TrackControls(const TrackControls& other);
40 ~TrackControls(); 29 ~TrackControls();
41 bool requested; 30 bool requested;
42 31
43 // Source. This is "tab", "screen", "desktop", "system", or blank. 32 // Source. This is "tab", "screen", "desktop", "system", or blank.
44 // Consider replacing with MediaStreamType enum variables. 33 // Consider replacing with MediaStreamType enum variables.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 80
92 // Id for this capture session. Unique for all sessions of the same type. 81 // Id for this capture session. Unique for all sessions of the same type.
93 int session_id; 82 int session_id;
94 }; 83 };
95 84
96 typedef std::vector<StreamDeviceInfo> StreamDeviceInfoArray; 85 typedef std::vector<StreamDeviceInfo> StreamDeviceInfoArray;
97 86
98 } // namespace content 87 } // namespace content
99 88
100 #endif // CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ 89 #endif // CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/media/media_stream_options.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698