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

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

Issue 2618613006: Remove ContextClient from DOMWindowSpeechSynthesis (Closed)
Patch Set: temp Created 3 years, 11 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: third_party/WebKit/Source/modules/speech/DOMWindowSpeechSynthesis.h
diff --git a/third_party/WebKit/Source/modules/speech/DOMWindowSpeechSynthesis.h b/third_party/WebKit/Source/modules/speech/DOMWindowSpeechSynthesis.h
index 1d8a2397954bb2221fb9b16268a85e75759d7e7c..5f6bbe84faac4005612c52f0ef2410d9d6efefa6 100644
--- a/third_party/WebKit/Source/modules/speech/DOMWindowSpeechSynthesis.h
+++ b/third_party/WebKit/Source/modules/speech/DOMWindowSpeechSynthesis.h
@@ -26,7 +26,6 @@
#ifndef DOMWindowSpeechSynthesis_h
#define DOMWindowSpeechSynthesis_h
-#include "core/dom/ContextLifecycleObserver.h"
#include "core/frame/LocalDOMWindow.h"
#include "modules/ModulesExport.h"
#include "modules/speech/SpeechSynthesis.h"
@@ -35,16 +34,15 @@
namespace blink {
-class DOMWindow;
+class ScriptState;
class MODULES_EXPORT DOMWindowSpeechSynthesis final
: public GarbageCollected<DOMWindowSpeechSynthesis>,
- public Supplement<LocalDOMWindow>,
- public ContextClient {
+ public Supplement<LocalDOMWindow> {
USING_GARBAGE_COLLECTED_MIXIN(DOMWindowSpeechSynthesis);
public:
- static SpeechSynthesis* speechSynthesis(DOMWindow&);
+ static SpeechSynthesis* speechSynthesis(ScriptState*, DOMWindow&);
static DOMWindowSpeechSynthesis& from(LocalDOMWindow&);
DECLARE_TRACE();
@@ -52,7 +50,7 @@ class MODULES_EXPORT DOMWindowSpeechSynthesis final
private:
explicit DOMWindowSpeechSynthesis(LocalDOMWindow&);
- SpeechSynthesis* speechSynthesis();
+ SpeechSynthesis* speechSynthesis(ScriptState*);
static const char* supplementName();
Member<SpeechSynthesis> m_speechSynthesis;

Powered by Google App Engine
This is Rietveld 408576698