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

Unified Diff: Source/modules/speech/SpeechSynthesisUtterance.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/speech/SpeechRecognition.h ('k') | Source/modules/webaudio/AudioContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/speech/SpeechSynthesisUtterance.h
diff --git a/Source/modules/speech/SpeechSynthesisUtterance.h b/Source/modules/speech/SpeechSynthesisUtterance.h
index 433c14916d03c1ee9b8baa3d95ab9a6a32ec634f..79645aa0cd3f48f4b7e568a417ddd24094cbd533 100644
--- a/Source/modules/speech/SpeechSynthesisUtterance.h
+++ b/Source/modules/speech/SpeechSynthesisUtterance.h
@@ -36,7 +36,7 @@
namespace WebCore {
-class SpeechSynthesisUtterance : public PlatformSpeechSynthesisUtteranceClient, public ScriptWrappable, public RefCounted<SpeechSynthesisUtterance>, public ContextLifecycleObserver, public EventTarget {
+class SpeechSynthesisUtterance : public PlatformSpeechSynthesisUtteranceClient, public ScriptWrappable, public RefCounted<SpeechSynthesisUtterance>, public ContextLifecycleObserver, public EventTargetWithInlineData {
public:
static PassRefPtr<SpeechSynthesisUtterance> create(ScriptExecutionContext*, const String&);
@@ -84,13 +84,9 @@ private:
RefPtr<SpeechSynthesisVoice> m_voice;
// EventTarget
- EventTargetData m_eventTargetData;
-
virtual const AtomicString& interfaceName() const OVERRIDE;
virtual void refEventTarget() OVERRIDE { ref(); }
virtual void derefEventTarget() OVERRIDE { deref(); }
- virtual EventTargetData* eventTargetData() OVERRIDE { return &m_eventTargetData; }
- virtual EventTargetData* ensureEventTargetData() OVERRIDE { return &m_eventTargetData; }
};
} // namespace WebCore
« no previous file with comments | « Source/modules/speech/SpeechRecognition.h ('k') | Source/modules/webaudio/AudioContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698