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

Unified Diff: third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.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
Index: third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.h
diff --git a/third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.h b/third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.h
index bad1e60de231607de542717aa87811435dfb7350..6cb1f623272da50ba3543a387118521411121ec6 100644
--- a/third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.h
+++ b/third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.h
@@ -26,6 +26,7 @@
#ifndef SpeechSynthesisUtterance_h
#define SpeechSynthesisUtterance_h
+#include "core/dom/ContextLifecycleObserver.h"
#include "modules/EventTargetModules.h"
#include "modules/speech/SpeechSynthesisVoice.h"
#include "platform/heap/Handle.h"
@@ -35,6 +36,7 @@ namespace blink {
class SpeechSynthesisUtterance final
: public EventTargetWithInlineData,
+ public ContextClient,
public PlatformSpeechSynthesisUtteranceClient {
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(SpeechSynthesisUtterance);
@@ -75,7 +77,9 @@ class SpeechSynthesisUtterance final
DEFINE_ATTRIBUTE_EVENT_LISTENER(mark);
DEFINE_ATTRIBUTE_EVENT_LISTENER(boundary);
- ExecutionContext* getExecutionContext() const override;
+ ExecutionContext* getExecutionContext() const override {
+ return ContextClient::getExecutionContext();
+ }
PlatformSpeechSynthesisUtterance* platformUtterance() const {
return m_platformUtterance;
@@ -89,7 +93,6 @@ class SpeechSynthesisUtterance final
// EventTarget
const AtomicString& interfaceName() const override;
- Member<ExecutionContext> m_executionContext;
Member<PlatformSpeechSynthesisUtterance> m_platformUtterance;
Member<SpeechSynthesisVoice> m_voice;
};

Powered by Google App Engine
This is Rietveld 408576698