Chromium Code Reviews
DescriptionSimplify logic behind chrome.audio.setActiveDevices
Main updates:
* Explicitly separates input and output device lists,
which makes setting only one set of devices more intuitive.
This is achieved by introducing DeviceIdLists object that
can be used as method argument.
* Provides a way to clear active devices - by setting
active device lists to an empty list. Old setActiveDevices
method would not change set of active input/output devices if no
input/output devices were added to the list of active device IDs.
Note that the old logic is preserved not to break current clients
but will eventually be removed. Old logic can be triggered by passing
list of device IDs as array of strings rather than a newly introduced
|DeviceIdLists| object.
The CL adds new public methods to CrasAudioHandler to support new way
of setting active devices: SetActiveInputNodes and
SetActiveOutputNodes. These methods are tested by replicating test
cases for ChangeActiveNodes - replacing calls To ChangeActiveNodes with
new methods.
BUG=680361
Review-Url: https://codereview.chromium.org/2605983002
Cr-Commit-Position: refs/heads/master@{#444178}
Committed: https://chromium.googlesource.com/chromium/src/+/cae06e2aab96be77610c27f4a1469f9570df1c3c
Patch Set 1 #Patch Set 2 : set active devices #Patch Set 3 : make CrasAudioHandler methods not virtual #Patch Set 4 : . #Patch Set 5 : . #Patch Set 6 : . #
Total comments: 20
Patch Set 7 : . #Patch Set 8 : rebase #Patch Set 9 : . #
Total comments: 2
Patch Set 10 : . #Patch Set 11 : . #
Total comments: 4
Patch Set 12 : . #
Messages
Total messages: 45 (33 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||