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
77466aa90b
commit
2ae535a40a
@ -436,6 +436,7 @@ const kEventConstructors = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
SpeechSynthesisEvent: { create: function (aName, aProps) {
|
SpeechSynthesisEvent: { create: function (aName, aProps) {
|
||||||
|
aProps.utterance = new SpeechSynthesisUtterance("Hello World");
|
||||||
return new SpeechSynthesisEvent(aName, aProps);
|
return new SpeechSynthesisEvent(aName, aProps);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -162,6 +162,7 @@ SpeechSynthesisUtterance::DispatchSpeechSynthesisEvent(const nsAString& aEventTy
|
|||||||
SpeechSynthesisEventInit init;
|
SpeechSynthesisEventInit init;
|
||||||
init.mBubbles = false;
|
init.mBubbles = false;
|
||||||
init.mCancelable = false;
|
init.mCancelable = false;
|
||||||
|
init.mUtterance = this;
|
||||||
init.mCharIndex = aCharIndex;
|
init.mCharIndex = aCharIndex;
|
||||||
init.mElapsedTime = aElapsedTime;
|
init.mElapsedTime = aElapsedTime;
|
||||||
init.mName = aName;
|
init.mName = aName;
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
Pref="media.webspeech.synth.enabled"]
|
Pref="media.webspeech.synth.enabled"]
|
||||||
interface SpeechSynthesisEvent : Event
|
interface SpeechSynthesisEvent : Event
|
||||||
{
|
{
|
||||||
|
readonly attribute SpeechSynthesisUtterance utterance;
|
||||||
readonly attribute unsigned long charIndex;
|
readonly attribute unsigned long charIndex;
|
||||||
readonly attribute float elapsedTime;
|
readonly attribute float elapsedTime;
|
||||||
readonly attribute DOMString? name;
|
readonly attribute DOMString? name;
|
||||||
@ -21,6 +22,7 @@ interface SpeechSynthesisEvent : Event
|
|||||||
|
|
||||||
dictionary SpeechSynthesisEventInit : EventInit
|
dictionary SpeechSynthesisEventInit : EventInit
|
||||||
{
|
{
|
||||||
|
required SpeechSynthesisUtterance utterance;
|
||||||
unsigned long charIndex = 0;
|
unsigned long charIndex = 0;
|
||||||
float elapsedTime = 0;
|
float elapsedTime = 0;
|
||||||
DOMString name = "";
|
DOMString name = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user