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

Unified Diff: third_party/WebKit/Source/modules/webaudio/OscillatorOptions.idl

Issue 2760353002: Define default values for options dictionaries for WebAudio (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/OscillatorOptions.idl
diff --git a/third_party/WebKit/Source/modules/webaudio/OscillatorOptions.idl b/third_party/WebKit/Source/modules/webaudio/OscillatorOptions.idl
index 98a15ce397c679c64915c123ae9a4864d3bb12a7..689ec4aba83d1c35d39bb96e6ee1336d0797b79c 100644
--- a/third_party/WebKit/Source/modules/webaudio/OscillatorOptions.idl
+++ b/third_party/WebKit/Source/modules/webaudio/OscillatorOptions.idl
@@ -4,8 +4,8 @@
// See https://webaudio.github.io/web-audio-api/#oscillatoroptions
dictionary OscillatorOptions : AudioNodeOptions {
- OscillatorType type;
- float detune;
- float frequency;
+ OscillatorType type = "sine";
+ float detune = 0;
+ float frequency = 440;
PeriodicWave? periodicWave;
};

Powered by Google App Engine
This is Rietveld 408576698