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

Issue 2635983006: Final cleanup pass over audio device API (Closed)

Created:
3 years, 11 months ago by tbarzic
Modified:
3 years, 10 months ago
Reviewers:
mnilsson, Devlin, Mark P, jennyz
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Final cleanup pass over audio device API * Makes sure event names are not capitalized (old names are not kept, as events in question do not seem to be used) * Renames onDevicesChanged to onDeviceListChanged to make it clearer that it's triggered only when list of devices change, not when properties of a present device changes * Add getDevices method - replacement for getInfo method - returns device info using AudioDeviceInfo (unified class for both input and output devices), which is in line with properties returned by recomended onDeviceListChanged event - add support for filering returned device by stream type (input vs. outptu devices) and device active state. * Unify |volume| and |gain| property as |level| property in setProperties method argument (consistent with usage of AudioDeviceInfo to describe audio devices). BUG=673392 Review-Url: https://codereview.chromium.org/2635983006 Cr-Commit-Position: refs/heads/master@{#450797} Committed: https://chromium.googlesource.com/chromium/src/+/de70284d458bdca36d42eabeba7971c7087e2492

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Total comments: 6

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : rebase #

Patch Set 8 : . #

Patch Set 9 : . #

Total comments: 14

Patch Set 10 : review feedback #

Patch Set 11 : . #

Patch Set 12 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+548 lines, -186 lines) Patch
M extensions/browser/api/audio/audio_api.h View 1 chunk +9 lines, -0 lines 0 comments Download
M extensions/browser/api/audio/audio_api.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +53 lines, -17 lines 0 comments Download
M extensions/browser/api/audio/audio_apitest.cc View 1 chunk +1 line, -13 lines 0 comments Download
M extensions/browser/api/audio/audio_service.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download
M extensions/browser/api/audio/audio_service.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -0 lines 0 comments Download
M extensions/browser/api/audio/audio_service_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +62 lines, -27 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/audio.idl View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +53 lines, -13 lines 0 comments Download
M extensions/test/data/api_test/audio/add_nodes/background.js View 1 chunk +1 line, -1 line 0 comments Download
M extensions/test/data/api_test/audio/remove_nodes/background.js View 1 chunk +1 line, -1 line 0 comments Download
M extensions/test/data/api_test/audio/test.js View 1 2 3 4 5 6 7 8 9 10 8 chunks +344 lines, -111 lines 0 comments Download
M extensions/test/data/api_test/audio/volume_change/background.js View 1 chunk +3 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
tbarzic
This should be final set of changes to the API itself - though, I' ll ...
3 years, 11 months ago (2017-01-19 01:21:12 UTC) #2
tbarzic
+mnilsson: fyi
3 years, 11 months ago (2017-01-25 19:27:52 UTC) #4
jennyz
https://codereview.chromium.org/2635983006/diff/60001/extensions/browser/api/audio/audio_api.cc File extensions/browser/api/audio/audio_api.cc (right): https://codereview.chromium.org/2635983006/diff/60001/extensions/browser/api/audio/audio_api.cc#newcode183 extensions/browser/api/audio/audio_api.cc:183: level_value >= 0 ? level_value : gain_value)) Please add ...
3 years, 10 months ago (2017-02-02 01:10:44 UTC) #5
tbarzic
https://codereview.chromium.org/2635983006/diff/60001/extensions/browser/api/audio/audio_api.cc File extensions/browser/api/audio/audio_api.cc (right): https://codereview.chromium.org/2635983006/diff/60001/extensions/browser/api/audio/audio_api.cc#newcode183 extensions/browser/api/audio/audio_api.cc:183: level_value >= 0 ? level_value : gain_value)) On 2017/02/02 ...
3 years, 10 months ago (2017-02-02 01:24:41 UTC) #6
tbarzic
any updates on this?
3 years, 10 months ago (2017-02-07 20:22:24 UTC) #7
jennyz
lgtm. Please ask mnilsson to take a look.
3 years, 10 months ago (2017-02-10 18:13:53 UTC) #8
tbarzic
On 2017/02/10 18:13:53, jennyz wrote: > lgtm. Please ask mnilsson to take a look. I've ...
3 years, 10 months ago (2017-02-10 18:16:01 UTC) #9
tbarzic
+owners for histograms, and audio.idl
3 years, 10 months ago (2017-02-10 19:47:31 UTC) #15
Devlin
https://codereview.chromium.org/2635983006/diff/160001/extensions/browser/api/audio/audio_api.cc File extensions/browser/api/audio/audio_api.cc (right): https://codereview.chromium.org/2635983006/diff/160001/extensions/browser/api/audio/audio_api.cc#newcode173 extensions/browser/api/audio/audio_api.cc:173: params->properties.level.get() ? *params->properties.level : -1; largely unrelated to this ...
3 years, 10 months ago (2017-02-10 20:24:29 UTC) #16
tbarzic
https://codereview.chromium.org/2635983006/diff/160001/extensions/browser/api/audio/audio_api.cc File extensions/browser/api/audio/audio_api.cc (right): https://codereview.chromium.org/2635983006/diff/160001/extensions/browser/api/audio/audio_api.cc#newcode173 extensions/browser/api/audio/audio_api.cc:173: params->properties.level.get() ? *params->properties.level : -1; On 2017/02/10 20:24:29, Devlin ...
3 years, 10 months ago (2017-02-10 21:05:18 UTC) #17
Devlin
lgtm https://codereview.chromium.org/2635983006/diff/160001/extensions/browser/api/audio/audio_api.cc File extensions/browser/api/audio/audio_api.cc (right): https://codereview.chromium.org/2635983006/diff/160001/extensions/browser/api/audio/audio_api.cc#newcode173 extensions/browser/api/audio/audio_api.cc:173: params->properties.level.get() ? *params->properties.level : -1; On 2017/02/10 21:05:18, ...
3 years, 10 months ago (2017-02-13 23:18:10 UTC) #18
tbarzic
https://codereview.chromium.org/2635983006/diff/160001/extensions/browser/api/audio/audio_api.cc File extensions/browser/api/audio/audio_api.cc (right): https://codereview.chromium.org/2635983006/diff/160001/extensions/browser/api/audio/audio_api.cc#newcode173 extensions/browser/api/audio/audio_api.cc:173: params->properties.level.get() ? *params->properties.level : -1; On 2017/02/13 23:18:09, Devlin ...
3 years, 10 months ago (2017-02-14 00:27:13 UTC) #19
Mark P
histograms.xml lgtm
3 years, 10 months ago (2017-02-15 06:27:10 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2635983006/220001
3 years, 10 months ago (2017-02-15 18:40:37 UTC) #23
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 21:16:06 UTC) #26
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/de70284d458bdca36d42eabeba79...

Powered by Google App Engine
This is Rietveld 408576698