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

Issue 945103002: Add a new audio extension event OnLevelChanged. (Closed)

Created:
5 years, 10 months ago by jennyz
Modified:
5 years, 9 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, sadrul, asvitkine+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, kalyank, stevenjb+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Redesign audio extension apis. This adds the following P1 requests api features: OnLevelChanged event: This is fired when the level of an active audio device changes(volume for output, gain for inout), node id and new value of level are passed as arguments of the event. BUG=429312 Committed: https://crrev.com/481292c5ac84c13aee9a1e1d0ebd83fdd52d744d Cr-Commit-Position: refs/heads/master@{#321679}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comments update. #

Patch Set 3 : Rebase. #

Patch Set 4 : Rebase and fix a compiler issue for win bot. #

Total comments: 4

Patch Set 5 : Address code review comments. #

Total comments: 29

Patch Set 6 : Address code review comments. #

Patch Set 7 : Rebase. #

Total comments: 4

Patch Set 8 : Fix compiling issue. #

Patch Set 9 : Address code review and fix win bot build issue. #

Patch Set 10 : Rebase, remove getDeviceInfo, change level to int type. #

Total comments: 4

Patch Set 11 : Remove unused AUDIO_GETDEVICEINFO and rebase. #

Total comments: 7

Patch Set 12 : Deprecate uint64 to use uint64_t. #

Patch Set 13 : Update audio.idl comment #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -261 lines) Patch
M ash/system/audio/audio_observer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -2 lines 0 comments Download
M ash/system/audio/tray_audio.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M ash/system/audio/tray_audio.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M ash/system/tray/system_tray_notifier.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M ash/system/tray/system_tray_notifier.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/volume_controller_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/ash/volume_controller_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chromeos/audio/cras_audio_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +31 lines, -31 lines 0 comments Download
M chromeos/audio/cras_audio_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 22 chunks +38 lines, -32 lines 0 comments Download
M chromeos/audio/cras_audio_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +40 lines, -43 lines 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -6 lines 0 comments Download
M extensions/browser/api/audio/audio_api.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -1 line 0 comments Download
M extensions/browser/api/audio/audio_api.cc View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -0 lines 0 comments Download
M extensions/browser/api/audio/audio_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +126 lines, -3 lines 0 comments Download
M extensions/browser/api/audio/audio_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 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 11 5 chunks +21 lines, -11 lines 0 comments Download
M extensions/browser/api/audio/audio_service_linux.cc View 1 2 3 4 5 1 chunk +0 lines, -91 lines 0 comments Download
M extensions/common/api/audio.idl View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +17 lines, -5 lines 4 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -5 lines 0 comments Download
M extensions/extensions.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -5 lines 2 comments Download
M extensions/shell/browser/shell_audio_controller_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/shell/browser/shell_audio_controller_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -4 lines 4 comments Download
M extensions/test/data/api_test/audio/test.js View 1 2 3 4 5 6 7 8 9 2 chunks +24 lines, -0 lines 0 comments Download
A + extensions/test/data/api_test/audio/volume_change/background.js View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
A extensions/test/data/api_test/audio/volume_change/manifest.json View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (7 generated)
jennyz
5 years, 10 months ago (2015-02-20 23:10:58 UTC) #2
stevenjb
https://codereview.chromium.org/945103002/diff/1/ash/system/audio/tray_audio.cc File ash/system/audio/tray_audio.cc (right): https://codereview.chromium.org/945103002/diff/1/ash/system/audio/tray_audio.cc#newcode100 ash/system/audio/tray_audio.cc:100: void TrayAudio::OnOutputNodeVolumeChanged(uint64 node_id, double volume) { Comment out node_id ...
5 years, 10 months ago (2015-02-23 22:16:19 UTC) #4
rkc
I'll give this a thorough review tomorrow. If I need to get to it before ...
5 years, 10 months ago (2015-02-23 22:31:15 UTC) #5
jennyz
Tomorrow will be fine. Thanks a lot! Jenny On Mon, Feb 23, 2015 at 2:31 ...
5 years, 10 months ago (2015-02-23 22:40:55 UTC) #6
jennyz
https://codereview.chromium.org/945103002/diff/1/ash/system/audio/tray_audio.cc File ash/system/audio/tray_audio.cc (right): https://codereview.chromium.org/945103002/diff/1/ash/system/audio/tray_audio.cc#newcode100 ash/system/audio/tray_audio.cc:100: void TrayAudio::OnOutputNodeVolumeChanged(uint64 node_id, double volume) { On 2015/02/23 22:16:19, ...
5 years, 10 months ago (2015-02-24 00:05:39 UTC) #7
stevenjb
as/system lgtm https://codereview.chromium.org/945103002/diff/80001/ash/system/audio/tray_audio.cc File ash/system/audio/tray_audio.cc (right): https://codereview.chromium.org/945103002/diff/80001/ash/system/audio/tray_audio.cc#newcode103 ash/system/audio/tray_audio.cc:103: // queries the current primary output device's ...
5 years, 10 months ago (2015-02-24 18:25:14 UTC) #8
rkc
https://codereview.chromium.org/945103002/diff/80001/chromeos/audio/cras_audio_handler.cc File chromeos/audio/cras_audio_handler.cc (right): https://codereview.chromium.org/945103002/diff/80001/chromeos/audio/cras_audio_handler.cc#newcode58 chromeos/audio/cras_audio_handler.cc:58: void CrasAudioHandler::AudioObserver::OnOutputNodeVolumeChanged(uint64 node_id, Remove names for unused parameters. https://codereview.chromium.org/945103002/diff/80001/extensions/browser/api/audio/audio_service_chromeos.cc ...
5 years, 10 months ago (2015-02-24 21:30:34 UTC) #9
jennyz
https://codereview.chromium.org/945103002/diff/80001/ash/system/audio/tray_audio.cc File ash/system/audio/tray_audio.cc (right): https://codereview.chromium.org/945103002/diff/80001/ash/system/audio/tray_audio.cc#newcode103 ash/system/audio/tray_audio.cc:103: // queries the current primary output device's volume. On ...
5 years, 10 months ago (2015-02-25 22:47:42 UTC) #10
mnilsson
https://codereview.chromium.org/945103002/diff/80001/extensions/common/api/audio.idl File extensions/common/api/audio.idl (right): https://codereview.chromium.org/945103002/diff/80001/extensions/common/api/audio.idl#newcode53 extensions/common/api/audio.idl:53: DOMString displayName; Is this still simply a copy of ...
5 years, 10 months ago (2015-02-25 23:37:25 UTC) #11
jennyz
5 years, 10 months ago (2015-02-26 00:58:37 UTC) #12
jennyz
https://codereview.chromium.org/945103002/diff/80001/extensions/common/api/audio.idl File extensions/common/api/audio.idl (right): https://codereview.chromium.org/945103002/diff/80001/extensions/common/api/audio.idl#newcode53 extensions/common/api/audio.idl:53: DOMString displayName; On 2015/02/25 23:37:25, mnilsson wrote: > Is ...
5 years, 9 months ago (2015-02-26 22:23:55 UTC) #13
mnilsson
https://codereview.chromium.org/945103002/diff/80001/extensions/common/api/audio.idl File extensions/common/api/audio.idl (right): https://codereview.chromium.org/945103002/diff/80001/extensions/common/api/audio.idl#newcode53 extensions/common/api/audio.idl:53: DOMString displayName; On 2015/02/26 22:23:55, jennyz wrote: > On ...
5 years, 9 months ago (2015-02-27 09:44:20 UTC) #14
jennyz
https://codereview.chromium.org/945103002/diff/80001/extensions/common/api/audio.idl File extensions/common/api/audio.idl (right): https://codereview.chromium.org/945103002/diff/80001/extensions/common/api/audio.idl#newcode53 extensions/common/api/audio.idl:53: DOMString displayName; On 2015/02/27 09:44:20, mnilsson wrote: > On ...
5 years, 9 months ago (2015-02-27 20:47:41 UTC) #15
jennyz
I made some changes to the cl: 1. Remove getDeviceInfo API: Per my discussion with ...
5 years, 9 months ago (2015-03-13 23:16:56 UTC) #16
mnilsson
lgtm The CL description should probably reflect that this is just about the part merging ...
5 years, 9 months ago (2015-03-16 20:04:36 UTC) #17
jennyz
https://codereview.chromium.org/945103002/diff/180001/extensions/browser/extension_function_histogram_value.h File extensions/browser/extension_function_histogram_value.h (right): https://codereview.chromium.org/945103002/diff/180001/extensions/browser/extension_function_histogram_value.h#newcode1042 extensions/browser/extension_function_histogram_value.h:1042: AUDIO_GETDEVICEINFO, On 2015/03/16 20:04:36, mnilsson wrote: > Shouldn't this ...
5 years, 9 months ago (2015-03-16 21:39:55 UTC) #18
jennyz
jamescook@, would you please review the following files: chrome/browser/ui/ash/* extensions/browser/BUILD.gn extensions/shell/browser/* These are mostly caused ...
5 years, 9 months ago (2015-03-16 21:56:38 UTC) #20
jennyz
asargent@, would you please review the files: extensions/extensions.gyp extensions/extensions.gypi These changes are caused by removing ...
5 years, 9 months ago (2015-03-16 21:58:55 UTC) #22
James Cook
ash and extensions/shell LGTM, but please fix uint64 -> uint64_t https://codereview.chromium.org/945103002/diff/200001/ash/system/audio/audio_observer.h File ash/system/audio/audio_observer.h (right): https://codereview.chromium.org/945103002/diff/200001/ash/system/audio/audio_observer.h#newcode19 ...
5 years, 9 months ago (2015-03-16 22:14:01 UTC) #23
jennyz
https://codereview.chromium.org/945103002/diff/200001/ash/system/audio/audio_observer.h File ash/system/audio/audio_observer.h (right): https://codereview.chromium.org/945103002/diff/200001/ash/system/audio/audio_observer.h#newcode19 ash/system/audio/audio_observer.h:19: virtual void OnOutputNodeVolumeChanged(uint64 node_id, double volume) = 0; On ...
5 years, 9 months ago (2015-03-16 23:02:21 UTC) #24
asargent_no_longer_on_chrome
https://codereview.chromium.org/945103002/diff/260001/extensions/common/api/audio.idl File extensions/common/api/audio.idl (right): https://codereview.chromium.org/945103002/diff/260001/extensions/common/api/audio.idl#newcode32 extensions/common/api/audio.idl:32: // The input gain ranging from 0.0 to 100.0. ...
5 years, 9 months ago (2015-03-17 16:21:17 UTC) #26
jennyz
https://codereview.chromium.org/945103002/diff/260001/extensions/common/api/audio.idl File extensions/common/api/audio.idl (right): https://codereview.chromium.org/945103002/diff/260001/extensions/common/api/audio.idl#newcode32 extensions/common/api/audio.idl:32: // The input gain ranging from 0.0 to 100.0. ...
5 years, 9 months ago (2015-03-17 18:17:28 UTC) #27
asargent_no_longer_on_chrome
https://codereview.chromium.org/945103002/diff/260001/extensions/shell/browser/shell_audio_controller_chromeos.cc File extensions/shell/browser/shell_audio_controller_chromeos.cc (right): https://codereview.chromium.org/945103002/diff/260001/extensions/shell/browser/shell_audio_controller_chromeos.cc#newcode39 extensions/shell/browser/shell_audio_controller_chromeos.cc:39: int /* volume */) { On 2015/03/17 18:17:28, jennyz ...
5 years, 9 months ago (2015-03-18 00:39:25 UTC) #28
jennyz
https://codereview.chromium.org/945103002/diff/260001/extensions/shell/browser/shell_audio_controller_chromeos.cc File extensions/shell/browser/shell_audio_controller_chromeos.cc (right): https://codereview.chromium.org/945103002/diff/260001/extensions/shell/browser/shell_audio_controller_chromeos.cc#newcode39 extensions/shell/browser/shell_audio_controller_chromeos.cc:39: int /* volume */) { On 2015/03/18 00:39:25, Antony ...
5 years, 9 months ago (2015-03-18 18:24:36 UTC) #29
asargent_no_longer_on_chrome
lgtm
5 years, 9 months ago (2015-03-20 21:44:56 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/945103002/260001
5 years, 9 months ago (2015-03-20 22:13:08 UTC) #33
commit-bot: I haz the power
Committed patchset #13 (id:260001)
5 years, 9 months ago (2015-03-21 01:49:51 UTC) #34
commit-bot: I haz the power
5 years, 9 months ago (2015-03-21 01:50:38 UTC) #35
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/481292c5ac84c13aee9a1e1d0ebd83fdd52d744d
Cr-Commit-Position: refs/heads/master@{#321679}

Powered by Google App Engine
This is Rietveld 408576698