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

Unified Diff: Source/modules/speech/DOMWindowSpeechSynthesis.cpp

Issue 27477002: Add support for onvoiceschanged event. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@platform_speech_chromium
Patch Set: Check activeDOMObjectsAreStopped, address other feedback Created 7 years, 2 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: Source/modules/speech/DOMWindowSpeechSynthesis.cpp
diff --git a/Source/modules/speech/DOMWindowSpeechSynthesis.cpp b/Source/modules/speech/DOMWindowSpeechSynthesis.cpp
index 709c613f99d84000c21dd1a118a239baac359a54..2e4b06c6cd6a972bd16c4477841d82408de60c0e 100644
--- a/Source/modules/speech/DOMWindowSpeechSynthesis.cpp
+++ b/Source/modules/speech/DOMWindowSpeechSynthesis.cpp
@@ -32,6 +32,7 @@
#include "modules/speech/DOMWindowSpeechSynthesis.h"
#include "core/frame/DOMWindow.h"
+#include "core/frame/Frame.h"
#include "wtf/PassRefPtr.h"
namespace WebCore {
@@ -70,7 +71,7 @@ SpeechSynthesis* DOMWindowSpeechSynthesis::speechSynthesis(DOMWindow* window)
SpeechSynthesis* DOMWindowSpeechSynthesis::speechSynthesis()
{
if (!m_speechSynthesis && frame())
- m_speechSynthesis = SpeechSynthesis::create();
+ m_speechSynthesis = SpeechSynthesis::create(frame()->domWindow()->executionContext());
return m_speechSynthesis.get();
}
« no previous file with comments | « Source/core/platform/mock/PlatformSpeechSynthesizerMock.cpp ('k') | Source/modules/speech/SpeechSynthesis.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698