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

Issue 2760353002: Define default values for options dictionaries for WebAudio (Closed)

Created:
3 years, 9 months ago by Raymond Toy
Modified:
3 years, 8 months ago
Reviewers:
tkent, hongchan
CC:
blink-reviews, chromium-reviews, haraken, hongchan, Raymond Toy
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Define default values for options dictionaries for WebAudio The IDL definitions for dictionaries for the options for WebAudio constructors were missing default values. Update IDL to include the default values and update the code so that checks aren't done when default values exist. BUG=703677, 710471 TEST=AudioParam/audioparam-clamp-time-to-current-time.html Review-Url: https://codereview.chromium.org/2760353002 Cr-Commit-Position: refs/heads/master@{#464437} Committed: https://chromium.googlesource.com/chromium/src/+/ef006156fd62853a893617ca104f4ac2045e19c1

Patch Set 1 #

Patch Set 2 : More default values #

Patch Set 3 : periodicWave overrides type in options dictionary #

Patch Set 4 : periodicWave overrides any type value in osc dictionary #

Patch Set 5 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -147 lines) Patch
M third_party/WebKit/LayoutTests/webaudio/constructor/oscillator.html View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AnalyserNode.cpp View 1 2 3 4 1 chunk +3 lines, -6 lines 2 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp View 1 2 3 4 1 chunk +5 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioBufferSourceOptions.idl View 1 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp View 1 2 3 4 1 chunk +5 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BiquadFilterOptions.idl View 1 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/DelayNode.cpp View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/DelayOptions.idl View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.cpp View 1 2 3 4 1 chunk +5 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/DynamicsCompressorOptions.idl View 1 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/GainNode.cpp View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/GainOptions.idl View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/OscillatorNode.cpp View 1 2 3 4 1 chunk +8 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/OscillatorOptions.idl View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/PannerNode.cpp View 1 2 3 4 1 chunk +17 lines, -31 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/PannerOptions.idl View 1 1 chunk +14 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/PeriodicWaveConstraints.idl View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/StereoPannerOptions.idl View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/WaveShaperNode.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/WaveShaperOptions.idl View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (8 generated)
Raymond Toy
PTAL
3 years, 8 months ago (2017-04-12 14:40:11 UTC) #5
hongchan
So I gather that if a property does not have a default value, we can't ...
3 years, 8 months ago (2017-04-12 16:37:53 UTC) #6
Raymond Toy
As discussed offline, yes, if there's no default value we have to check to see ...
3 years, 8 months ago (2017-04-12 18:10:12 UTC) #7
hongchan
lgtm
3 years, 8 months ago (2017-04-12 19:08:38 UTC) #8
Raymond Toy
tkent: PTAL as API Owner No intent was written for this minor change in the ...
3 years, 8 months ago (2017-04-12 19:25:12 UTC) #10
tkent
lgtm
3 years, 8 months ago (2017-04-13 00:35:46 UTC) #11
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/2760353002/80001
3 years, 8 months ago (2017-04-13 15:18:12 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 16:36:41 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/ef006156fd62853a893617ca104f...

Powered by Google App Engine
This is Rietveld 408576698