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

Unified Diff: Source/modules/speech/SpeechRecognition.h

Issue 26878003: Reduce repetitive EventTarget subclassing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nit 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
« no previous file with comments | « Source/modules/notifications/Notification.cpp ('k') | Source/modules/speech/SpeechSynthesisUtterance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/speech/SpeechRecognition.h
diff --git a/Source/modules/speech/SpeechRecognition.h b/Source/modules/speech/SpeechRecognition.h
index 10747f8fdef6030efa8ca3b2b93f8ebc4b7c5279..5c6c53e319ed1bdac0535c09cdc5d54d4bbbab19 100644
--- a/Source/modules/speech/SpeechRecognition.h
+++ b/Source/modules/speech/SpeechRecognition.h
@@ -44,7 +44,7 @@ class SpeechRecognitionError;
class SpeechRecognitionResult;
class SpeechRecognitionResultList;
-class SpeechRecognition : public RefCounted<SpeechRecognition>, public ScriptWrappable, public ActiveDOMObject, public EventTarget {
+class SpeechRecognition : public RefCounted<SpeechRecognition>, public ScriptWrappable, public ActiveDOMObject, public EventTargetWithInlineData {
public:
static PassRefPtr<SpeechRecognition> create(ScriptExecutionContext*);
~SpeechRecognition();
@@ -110,8 +110,6 @@ private:
// EventTarget
virtual void refEventTarget() OVERRIDE { ref(); }
virtual void derefEventTarget() OVERRIDE { deref(); }
- virtual EventTargetData* eventTargetData() OVERRIDE { return &m_eventTargetData; }
- virtual EventTargetData* ensureEventTargetData() OVERRIDE { return &m_eventTargetData; }
RefPtr<SpeechGrammarList> m_grammars;
String m_lang;
@@ -119,8 +117,6 @@ private:
bool m_interimResults;
unsigned long m_maxAlternatives;
- EventTargetData m_eventTargetData;
-
SpeechRecognitionController* m_controller;
bool m_stoppedByActiveDOMObject;
bool m_started;
« no previous file with comments | « Source/modules/notifications/Notification.cpp ('k') | Source/modules/speech/SpeechSynthesisUtterance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698