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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebMediaConstraints.cpp

Issue 2291893002: Let Contraints Controll Mute/Unmute Audio Local Playback For Desktop Sharing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unique_ptr Created 4 years, 3 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 , sampleRate("sampleRate") 379 , sampleRate("sampleRate")
380 , sampleSize("sampleSize") 380 , sampleSize("sampleSize")
381 , echoCancellation("echoCancellation") 381 , echoCancellation("echoCancellation")
382 , latency("latency") 382 , latency("latency")
383 , channelCount("channelCount") 383 , channelCount("channelCount")
384 , deviceId("deviceId") 384 , deviceId("deviceId")
385 , groupId("groupId") 385 , groupId("groupId")
386 , mediaStreamSource("mediaStreamSource") 386 , mediaStreamSource("mediaStreamSource")
387 , renderToAssociatedSink("chromeRenderToAssociatedSink") 387 , renderToAssociatedSink("chromeRenderToAssociatedSink")
388 , hotwordEnabled("hotwordEnabled") 388 , hotwordEnabled("hotwordEnabled")
389 , googDisableLocalEcho("googDisableLocalEcho")
389 , googEchoCancellation("googEchoCancellation") 390 , googEchoCancellation("googEchoCancellation")
390 , googExperimentalEchoCancellation("googExperimentalEchoCancellation") 391 , googExperimentalEchoCancellation("googExperimentalEchoCancellation")
391 , googAutoGainControl("googAutoGainControl") 392 , googAutoGainControl("googAutoGainControl")
392 , googExperimentalAutoGainControl("googExperimentalAutoGainControl") 393 , googExperimentalAutoGainControl("googExperimentalAutoGainControl")
393 , googNoiseSuppression("googNoiseSuppression") 394 , googNoiseSuppression("googNoiseSuppression")
394 , googHighpassFilter("googHighpassFilter") 395 , googHighpassFilter("googHighpassFilter")
395 , googTypingNoiseDetection("googTypingNoiseDetection") 396 , googTypingNoiseDetection("googTypingNoiseDetection")
396 , googExperimentalNoiseSuppression("googExperimentalNoiseSuppression") 397 , googExperimentalNoiseSuppression("googExperimentalNoiseSuppression")
397 , googBeamforming("googBeamforming") 398 , googBeamforming("googBeamforming")
398 , googArrayGeometry("googArrayGeometry") 399 , googArrayGeometry("googArrayGeometry")
(...skipping 24 matching lines...) Expand all
423 , googLatencyMs("latencyMs") 424 , googLatencyMs("latencyMs")
424 , googPowerLineFrequency("googPowerLineFrequency") 425 , googPowerLineFrequency("googPowerLineFrequency")
425 { 426 {
426 } 427 }
427 428
428 std::vector<const BaseConstraint*> WebMediaTrackConstraintSet::allConstraints() const 429 std::vector<const BaseConstraint*> WebMediaTrackConstraintSet::allConstraints() const
429 { 430 {
430 const BaseConstraint* temp[] = { 431 const BaseConstraint* temp[] = {
431 &width, &height, &aspectRatio, &frameRate, &facingMode, &volume, 432 &width, &height, &aspectRatio, &frameRate, &facingMode, &volume,
432 &sampleRate, &sampleSize, &echoCancellation, &latency, &channelCount, 433 &sampleRate, &sampleSize, &echoCancellation, &latency, &channelCount,
433 &deviceId, &groupId, &mediaStreamSource, &renderToAssociatedSink, 434 &deviceId, &groupId, &mediaStreamSource, &googDisableLocalEcho,
434 &hotwordEnabled, &googEchoCancellation, 435 &renderToAssociatedSink, &hotwordEnabled, &googEchoCancellation,
435 &googExperimentalEchoCancellation, &googAutoGainControl, 436 &googExperimentalEchoCancellation, &googAutoGainControl,
436 &googExperimentalAutoGainControl, &googNoiseSuppression, 437 &googExperimentalAutoGainControl, &googNoiseSuppression,
437 &googHighpassFilter, &googTypingNoiseDetection, 438 &googHighpassFilter, &googTypingNoiseDetection,
438 &googExperimentalNoiseSuppression, &googBeamforming, 439 &googExperimentalNoiseSuppression, &googBeamforming,
439 &googArrayGeometry, &googAudioMirroring, &googDAEchoCancellation, 440 &googArrayGeometry, &googAudioMirroring, &googDAEchoCancellation,
440 &googNoiseReduction, &offerToReceiveAudio, 441 &googNoiseReduction, &offerToReceiveAudio,
441 &offerToReceiveVideo, &voiceActivityDetection, &iceRestart, 442 &offerToReceiveVideo, &voiceActivityDetection, &iceRestart,
442 &googUseRtpMux, &enableDtlsSrtp, &enableRtpDataChannels, 443 &googUseRtpMux, &enableDtlsSrtp, &enableRtpDataChannels,
443 &enableDscp, &enableIPv6, &googEnableVideoSuspendBelowMinBitrate, 444 &enableDscp, &enableIPv6, &googEnableVideoSuspendBelowMinBitrate,
444 &googNumUnsignalledRecvStreams, &googCombinedAudioVideoBwe, 445 &googNumUnsignalledRecvStreams, &googCombinedAudioVideoBwe,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 } 541 }
541 542
542 const WebString WebMediaConstraints::toString() const 543 const WebString WebMediaConstraints::toString() const
543 { 544 {
544 if (isNull()) 545 if (isNull())
545 return WebString(""); 546 return WebString("");
546 return m_private->toString(); 547 return m_private->toString();
547 } 548 }
548 549
549 } // namespace blink 550 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698