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

Side by Side Diff: webrtc/api/mediaconstraintsinterface.cc

Issue 2663063003: Enable cpplint and fix cpplint errors in webrtc/api (Closed)
Patch Set: Enable cpplint and fix cpplint errors in webrtc/api Created 3 years, 10 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 | « webrtc/api/jsepicecandidate.h ('k') | webrtc/api/mediastreamproxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 template <typename T> 63 template <typename T>
64 void ConstraintToOptional(const webrtc::MediaConstraintsInterface* constraints, 64 void ConstraintToOptional(const webrtc::MediaConstraintsInterface* constraints,
65 const std::string& key, 65 const std::string& key,
66 rtc::Optional<T>* value_out) { 66 rtc::Optional<T>* value_out) {
67 T value; 67 T value;
68 bool present = FindConstraint<T>(constraints, key, &value, nullptr); 68 bool present = FindConstraint<T>(constraints, key, &value, nullptr);
69 if (present) { 69 if (present) {
70 *value_out = rtc::Optional<T>(value); 70 *value_out = rtc::Optional<T>(value);
71 } 71 }
72 } 72 }
73 } 73 } // namespace
74 74
75 namespace webrtc { 75 namespace webrtc {
76 76
77 const char MediaConstraintsInterface::kValueTrue[] = "true"; 77 const char MediaConstraintsInterface::kValueTrue[] = "true";
78 const char MediaConstraintsInterface::kValueFalse[] = "false"; 78 const char MediaConstraintsInterface::kValueFalse[] = "false";
79 79
80 // Constraints declared as static members in mediastreaminterface.h 80 // Constraints declared as static members in mediastreaminterface.h
81 // Specified by draft-alvestrand-constraints-resolution-00b 81 // Specified by draft-alvestrand-constraints-resolution-00b
82 const char MediaConstraintsInterface::kMinAspectRatio[] = "minAspectRatio"; 82 const char MediaConstraintsInterface::kMinAspectRatio[] = "minAspectRatio";
83 const char MediaConstraintsInterface::kMaxAspectRatio[] = "maxAspectRatio"; 83 const char MediaConstraintsInterface::kMaxAspectRatio[] = "maxAspectRatio";
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 constraints, MediaConstraintsInterface::kAudioNetworkAdaptorConfig, 266 constraints, MediaConstraintsInterface::kAudioNetworkAdaptorConfig,
267 &options->audio_network_adaptor_config); 267 &options->audio_network_adaptor_config);
268 // When |kAudioNetworkAdaptorConfig| is defined, it both means that audio 268 // When |kAudioNetworkAdaptorConfig| is defined, it both means that audio
269 // network adaptor is desired, and provides the config string. 269 // network adaptor is desired, and provides the config string.
270 if (options->audio_network_adaptor_config) { 270 if (options->audio_network_adaptor_config) {
271 options->audio_network_adaptor = rtc::Optional<bool>(true); 271 options->audio_network_adaptor = rtc::Optional<bool>(true);
272 } 272 }
273 } 273 }
274 274
275 } // namespace webrtc 275 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/jsepicecandidate.h ('k') | webrtc/api/mediastreamproxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698