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

Issue 1865583002: Implement BaseAudioContext (Closed)

Created:
4 years, 8 months ago by Raymond Toy
Modified:
4 years, 3 months ago
Reviewers:
tkent, haraken, hongchan
CC:
blink-reviews, chromium-reviews, haraken
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement BaseAudioContext Implements BaseAudioContext as the base class of an AudioContext and OfflineAudioContext, moving the relevant attributes and methods from AudioContext to BaseAudioContext. The changes in the expected results are mostly caused by exception messages now saying BaseAudioContext instead of AudioContext. BUG=555608 TEST=no new tests Committed: https://crrev.com/528d8818a3528b4372ab18b5a7ecdb906dadca75 Cr-Commit-Position: refs/heads/master@{#417297}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Patch Set 8 : Rebase #

Patch Set 9 : rebase #

Patch Set 10 : Move MediaElement stuff to BaseAudioContext #

Patch Set 11 : Update tests. #

Patch Set 12 : Regenerate test expectatation #

Patch Set 13 : Rebase #

Patch Set 14 : Regenerate test result. #

Patch Set 15 : Rebase #

Total comments: 14

Patch Set 16 : Update comment according to review. #

Total comments: 1

Patch Set 17 : Update test result #

Total comments: 3

Patch Set 18 : Update according to review #

Patch Set 19 : Revert change to mediaelementaudiosourcenode-gc.html #

Total comments: 6

Patch Set 20 : Address review comments #

Patch Set 21 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -315 lines) Patch
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/event-target-in-prototype-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +4 lines, -66 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audiochannelmerger-basic-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audiocontext-close-expected.txt View 1 1 chunk +15 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +24 lines, -24 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/decode-audio-data-basic-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/delaynode-maxdelaylimit-expected.txt View 1 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/dom-exceptions-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +18 lines, -18 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/iirfilter-basic-expected.txt View 1 2 3 4 5 1 chunk +13 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/mediaelementaudiosourcenode-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/mediaelementaudiosourcenode-wrapper.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +4 lines, -66 lines 0 comments Download
M third_party/WebKit/Source/modules/modules_idl_files.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioContext.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioContext.idl View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -62 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioNode.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/modules/webaudio/BaseAudioContext.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +11 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 62 (41 generated)
Raymond Toy
PTAL
4 years, 3 months ago (2016-09-01 17:02:15 UTC) #15
hongchan
On 2016/09/01 17:02:15, Raymond Toy wrote: > PTAL Same thing. Please fix the reviewer to ...
4 years, 3 months ago (2016-09-01 19:05:18 UTC) #20
Raymond Toy
4 years, 3 months ago (2016-09-01 19:53:57 UTC) #22
hongchan
https://codereview.chromium.org/1865583002/diff/280001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/event-target-in-prototype-expected.txt File third_party/WebKit/LayoutTests/virtual/stable/webexposed/event-target-in-prototype-expected.txt (left): https://codereview.chromium.org/1865583002/diff/280001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/event-target-in-prototype-expected.txt#oldcode15 third_party/WebKit/LayoutTests/virtual/stable/webexposed/event-target-in-prototype-expected.txt:15: PASS AudioContext.prototype.__proto__ is EventTarget.prototype Shouldn't we be adding one ...
4 years, 3 months ago (2016-09-01 20:39:44 UTC) #24
Raymond Toy
https://codereview.chromium.org/1865583002/diff/280001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt File third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt (left): https://codereview.chromium.org/1865583002/diff/280001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt#oldcode6723 third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt:6723: On 2016/09/01 at 20:39:44, hoch wrote: > Just curious. ...
4 years, 3 months ago (2016-09-01 20:51:37 UTC) #25
hongchan
https://codereview.chromium.org/1865583002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioNode.idl File third_party/WebKit/Source/modules/webaudio/AudioNode.idl (right): https://codereview.chromium.org/1865583002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioNode.idl#newcode39 third_party/WebKit/Source/modules/webaudio/AudioNode.idl:39: GarbageCollected, Why this change? https://codereview.chromium.org/1865583002/diff/280001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt File third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt (left): https://codereview.chromium.org/1865583002/diff/280001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt#oldcode6723 ...
4 years, 3 months ago (2016-09-01 23:03:19 UTC) #26
haraken
https://codereview.chromium.org/1865583002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioNode.idl File third_party/WebKit/Source/modules/webaudio/AudioNode.idl (right): https://codereview.chromium.org/1865583002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioNode.idl#newcode39 third_party/WebKit/Source/modules/webaudio/AudioNode.idl:39: GarbageCollected, On 2016/09/01 23:03:19, hoch wrote: > Why this ...
4 years, 3 months ago (2016-09-01 23:05:56 UTC) #28
Raymond Toy
On 2016/09/01 at 23:05:56, haraken wrote: > https://codereview.chromium.org/1865583002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioNode.idl > File third_party/WebKit/Source/modules/webaudio/AudioNode.idl (right): > > https://codereview.chromium.org/1865583002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioNode.idl#newcode39 ...
4 years, 3 months ago (2016-09-02 15:00:49 UTC) #29
Raymond Toy
On 2016/09/01 at 23:03:19, hongchan wrote: > https://codereview.chromium.org/1865583002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioNode.idl > File third_party/WebKit/Source/modules/webaudio/AudioNode.idl (right): > > https://codereview.chromium.org/1865583002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioNode.idl#newcode39 ...
4 years, 3 months ago (2016-09-02 15:07:14 UTC) #30
Raymond Toy
On 2016/09/01 at 23:03:19, hongchan wrote: > https://codereview.chromium.org/1865583002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioNode.idl > File third_party/WebKit/Source/modules/webaudio/AudioNode.idl (right): > > https://codereview.chromium.org/1865583002/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioNode.idl#newcode39 ...
4 years, 3 months ago (2016-09-02 15:16:40 UTC) #31
hongchan
LGTM with nits. https://codereview.chromium.org/1865583002/diff/320001/third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html File third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html (right): https://codereview.chromium.org/1865583002/diff/320001/third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html#newcode10 third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html:10: 'Node', 'Performance', 'SharedWorker', 'WebSocket', 'Worker', 'BaseAudioContext']; ...
4 years, 3 months ago (2016-09-02 16:49:34 UTC) #32
Raymond Toy
https://codereview.chromium.org/1865583002/diff/320001/third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html File third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html (right): https://codereview.chromium.org/1865583002/diff/320001/third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html#newcode10 third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html:10: 'Node', 'Performance', 'SharedWorker', 'WebSocket', 'Worker', 'BaseAudioContext']; On 2016/09/02 at ...
4 years, 3 months ago (2016-09-02 17:24:44 UTC) #33
Raymond Toy
+tkent PTAL as API owner. This is a relatively small change, adding BaseAudioContext class as ...
4 years, 3 months ago (2016-09-06 16:24:47 UTC) #43
tkent
On 2016/09/06 at 16:24:47, rtoy wrote: > +tkent > > PTAL as API owner. This ...
4 years, 3 months ago (2016-09-06 23:14:34 UTC) #44
Raymond Toy
https://codereview.chromium.org/1865583002/diff/360001/third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html File third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html (left): https://codereview.chromium.org/1865583002/diff/360001/third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html#oldcode9 third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html:9: eventTargets = ['EventSource', 'FileReader', 'MediaSource', 'MessagePort', 'Node', 'Performance', 'SharedWorker', ...
4 years, 3 months ago (2016-09-07 15:44:21 UTC) #45
Raymond Toy
On 2016/09/06 23:14:34, tkent wrote: > On 2016/09/06 at 16:24:47, rtoy wrote: > > +tkent ...
4 years, 3 months ago (2016-09-07 15:44:51 UTC) #46
Raymond Toy
https://codereview.chromium.org/1865583002/diff/360001/third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html File third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html (right): https://codereview.chromium.org/1865583002/diff/360001/third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html#newcode10 third_party/WebKit/LayoutTests/webexposed/event-target-in-prototype.html:10: 'Node', 'Performance', 'SharedWorker', 'WebSocket', 'Worker']; On 2016/09/06 23:14:33, tkent ...
4 years, 3 months ago (2016-09-07 15:51:49 UTC) #47
tkent
web-exposed change without intent-to-ship LGTM
4 years, 3 months ago (2016-09-08 00:07:10 UTC) #54
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/1865583002/400001
4 years, 3 months ago (2016-09-08 15:09:45 UTC) #59
commit-bot: I haz the power
Committed patchset #21 (id:400001)
4 years, 3 months ago (2016-09-08 15:13:50 UTC) #60
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 15:16:37 UTC) #62
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/528d8818a3528b4372ab18b5a7ecdb906dadca75
Cr-Commit-Position: refs/heads/master@{#417297}

Powered by Google App Engine
This is Rietveld 408576698