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

Unified Diff: third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.cpp

Issue 2595323002: Make use of ContextClient in modules/speech/ (Closed)
Patch Set: complete Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.cpp
diff --git a/third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.cpp b/third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.cpp
index 68a83394c177ef1040d35334e8b3ffc56733ebd4..f7c3d31d420e52822d1dc240254128bc72c0e38e 100644
--- a/third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.cpp
+++ b/third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.cpp
@@ -37,17 +37,13 @@ SpeechSynthesisUtterance* SpeechSynthesisUtterance::create(
SpeechSynthesisUtterance::SpeechSynthesisUtterance(ExecutionContext* context,
const String& text)
- : m_executionContext(context),
+ : ContextClient(context),
m_platformUtterance(PlatformSpeechSynthesisUtterance::create(this)) {
m_platformUtterance->setText(text);
}
SpeechSynthesisUtterance::~SpeechSynthesisUtterance() {}
-ExecutionContext* SpeechSynthesisUtterance::getExecutionContext() const {
- return m_executionContext;
-}
-
const AtomicString& SpeechSynthesisUtterance::interfaceName() const {
return EventTargetNames::SpeechSynthesisUtterance;
}
@@ -67,9 +63,9 @@ void SpeechSynthesisUtterance::setVoice(SpeechSynthesisVoice* voice) {
}
DEFINE_TRACE(SpeechSynthesisUtterance) {
- visitor->trace(m_executionContext);
visitor->trace(m_platformUtterance);
visitor->trace(m_voice);
+ ContextClient::trace(visitor);
EventTargetWithInlineData::trace(visitor);
}
« no previous file with comments | « third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698