mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1167541 - Implemented SpeechSynthesisEvent::utterance. r=smaug
This commit is contained in:
parent
7cef3cbfe8
commit
9efaa06932
@ -436,6 +436,7 @@ const kEventConstructors = {
|
||||
},
|
||||
},
|
||||
SpeechSynthesisEvent: { create: function (aName, aProps) {
|
||||
aProps.utterance = new SpeechSynthesisUtterance("Hello World");
|
||||
return new SpeechSynthesisEvent(aName, aProps);
|
||||
},
|
||||
},
|
||||
|
@ -162,6 +162,7 @@ SpeechSynthesisUtterance::DispatchSpeechSynthesisEvent(const nsAString& aEventTy
|
||||
SpeechSynthesisEventInit init;
|
||||
init.mBubbles = false;
|
||||
init.mCancelable = false;
|
||||
init.mUtterance = this;
|
||||
init.mCharIndex = aCharIndex;
|
||||
init.mElapsedTime = aElapsedTime;
|
||||
init.mName = aName;
|
||||
|
@ -14,6 +14,7 @@
|
||||
Pref="media.webspeech.synth.enabled"]
|
||||
interface SpeechSynthesisEvent : Event
|
||||
{
|
||||
readonly attribute SpeechSynthesisUtterance utterance;
|
||||
readonly attribute unsigned long charIndex;
|
||||
readonly attribute float elapsedTime;
|
||||
readonly attribute DOMString? name;
|
||||
@ -21,6 +22,7 @@ interface SpeechSynthesisEvent : Event
|
||||
|
||||
dictionary SpeechSynthesisEventInit : EventInit
|
||||
{
|
||||
required SpeechSynthesisUtterance utterance;
|
||||
unsigned long charIndex = 0;
|
||||
float elapsedTime = 0;
|
||||
DOMString name = "";
|
||||
|
Loading…
Reference in New Issue
Block a user