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

Side by Side Diff: Source/modules/speech/SpeechSynthesis.h

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void pause(); 56 void pause();
57 void resume(); 57 void resume();
58 58
59 const HeapVector<Member<SpeechSynthesisVoice>>& getVoices(); 59 const HeapVector<Member<SpeechSynthesisVoice>>& getVoices();
60 60
61 // Used in testing to use a mock platform synthesizer 61 // Used in testing to use a mock platform synthesizer
62 void setPlatformSynthesizer(PlatformSpeechSynthesizer*); 62 void setPlatformSynthesizer(PlatformSpeechSynthesizer*);
63 63
64 DEFINE_ATTRIBUTE_EVENT_LISTENER(voiceschanged); 64 DEFINE_ATTRIBUTE_EVENT_LISTENER(voiceschanged);
65 65
66 virtual ExecutionContext* executionContext() const override; 66 ExecutionContext* executionContext() const override;
67 67
68 DECLARE_VIRTUAL_TRACE(); 68 DECLARE_VIRTUAL_TRACE();
69 69
70 private: 70 private:
71 explicit SpeechSynthesis(ExecutionContext*); 71 explicit SpeechSynthesis(ExecutionContext*);
72 72
73 // PlatformSpeechSynthesizerClient override methods. 73 // PlatformSpeechSynthesizerClient override methods.
74 virtual void voicesDidChange() override; 74 void voicesDidChange() override;
75 virtual void didStartSpeaking(PlatformSpeechSynthesisUtterance*) override; 75 void didStartSpeaking(PlatformSpeechSynthesisUtterance*) override;
76 virtual void didPauseSpeaking(PlatformSpeechSynthesisUtterance*) override; 76 void didPauseSpeaking(PlatformSpeechSynthesisUtterance*) override;
77 virtual void didResumeSpeaking(PlatformSpeechSynthesisUtterance*) override; 77 void didResumeSpeaking(PlatformSpeechSynthesisUtterance*) override;
78 virtual void didFinishSpeaking(PlatformSpeechSynthesisUtterance*) override; 78 void didFinishSpeaking(PlatformSpeechSynthesisUtterance*) override;
79 virtual void speakingErrorOccurred(PlatformSpeechSynthesisUtterance*) overri de; 79 void speakingErrorOccurred(PlatformSpeechSynthesisUtterance*) override;
80 virtual void boundaryEventOccurred(PlatformSpeechSynthesisUtterance*, Speech Boundary, unsigned charIndex) override; 80 void boundaryEventOccurred(PlatformSpeechSynthesisUtterance*, SpeechBoundary , unsigned charIndex) override;
81 81
82 void startSpeakingImmediately(); 82 void startSpeakingImmediately();
83 void handleSpeakingCompleted(SpeechSynthesisUtterance*, bool errorOccurred); 83 void handleSpeakingCompleted(SpeechSynthesisUtterance*, bool errorOccurred);
84 void fireEvent(const AtomicString& type, SpeechSynthesisUtterance*, unsigned long charIndex, const String& name); 84 void fireEvent(const AtomicString& type, SpeechSynthesisUtterance*, unsigned long charIndex, const String& name);
85 85
86 // Returns the utterance at the front of the queue. 86 // Returns the utterance at the front of the queue.
87 SpeechSynthesisUtterance* currentSpeechUtterance() const; 87 SpeechSynthesisUtterance* currentSpeechUtterance() const;
88 88
89 Member<PlatformSpeechSynthesizer> m_platformSpeechSynthesizer; 89 Member<PlatformSpeechSynthesizer> m_platformSpeechSynthesizer;
90 HeapVector<Member<SpeechSynthesisVoice>> m_voiceList; 90 HeapVector<Member<SpeechSynthesisVoice>> m_voiceList;
91 HeapDeque<Member<SpeechSynthesisUtterance>> m_utteranceQueue; 91 HeapDeque<Member<SpeechSynthesisUtterance>> m_utteranceQueue;
92 bool m_isPaused; 92 bool m_isPaused;
93 93
94 // EventTarget 94 // EventTarget
95 virtual const AtomicString& interfaceName() const override; 95 const AtomicString& interfaceName() const override;
96 }; 96 };
97 97
98 } // namespace blink 98 } // namespace blink
99 99
100 #endif // SpeechSynthesisEvent_h 100 #endif // SpeechSynthesisEvent_h
OLDNEW
« no previous file with comments | « Source/modules/speech/SpeechRecognitionEvent.h ('k') | Source/modules/speech/SpeechSynthesisEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698