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

Unified Diff: third_party/WebKit/Source/modules/speech/SpeechSynthesis.h

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 | « no previous file | third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/speech/SpeechSynthesis.h
diff --git a/third_party/WebKit/Source/modules/speech/SpeechSynthesis.h b/third_party/WebKit/Source/modules/speech/SpeechSynthesis.h
index 6363225e31ce7b9817dc8f986f0042d052e95383..ce8e09fcad85dc48dff7ceaf4e28765ab9258a1d 100644
--- a/third_party/WebKit/Source/modules/speech/SpeechSynthesis.h
+++ b/third_party/WebKit/Source/modules/speech/SpeechSynthesis.h
@@ -26,6 +26,7 @@
#ifndef SpeechSynthesis_h
#define SpeechSynthesis_h
+#include "core/dom/ContextLifecycleObserver.h"
#include "modules/EventTargetModules.h"
#include "modules/ModulesExport.h"
#include "modules/speech/SpeechSynthesisUtterance.h"
@@ -40,6 +41,7 @@ class PlatformSpeechSynthesizerClient;
class MODULES_EXPORT SpeechSynthesis final
: public EventTargetWithInlineData,
+ public ContextClient,
public PlatformSpeechSynthesizerClient {
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(SpeechSynthesis);
@@ -64,7 +66,7 @@ class MODULES_EXPORT SpeechSynthesis final
DEFINE_ATTRIBUTE_EVENT_LISTENER(voiceschanged);
ExecutionContext* getExecutionContext() const override {
- return m_executionContext;
+ return ContextClient::getExecutionContext();
}
DECLARE_VIRTUAL_TRACE();
@@ -93,7 +95,6 @@ class MODULES_EXPORT SpeechSynthesis final
// Returns the utterance at the front of the queue.
SpeechSynthesisUtterance* currentSpeechUtterance() const;
- Member<ExecutionContext> m_executionContext;
Member<PlatformSpeechSynthesizer> m_platformSpeechSynthesizer;
HeapVector<Member<SpeechSynthesisVoice>> m_voiceList;
HeapDeque<Member<SpeechSynthesisUtterance>> m_utteranceQueue;
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698