OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 * * Redistributions of source code must retain the above copyright | 7 * * 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 * * Redistributions in binary form must reproduce the above copyright | 9 * * 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 19 matching lines...) Expand all Loading... |
30 #include "platform/speech/PlatformSpeechSynthesizer.h" | 30 #include "platform/speech/PlatformSpeechSynthesizer.h" |
31 #include "public/platform/WebSpeechSynthesisUtterance.h" | 31 #include "public/platform/WebSpeechSynthesisUtterance.h" |
32 #include "public/platform/WebSpeechSynthesisVoice.h" | 32 #include "public/platform/WebSpeechSynthesisVoice.h" |
33 #include "public/platform/WebSpeechSynthesizerClient.h" | 33 #include "public/platform/WebSpeechSynthesizerClient.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class PlatformSpeechSynthesizer; | 37 class PlatformSpeechSynthesizer; |
38 class PlatformSpeechSynthesizerClient; | 38 class PlatformSpeechSynthesizerClient; |
39 | 39 |
40 class WebSpeechSynthesizerClientImpl FINAL : public GarbageCollectedFinalized<We
bSpeechSynthesizerClientImpl>, public WebSpeechSynthesizerClient { | 40 class WebSpeechSynthesizerClientImpl final : public GarbageCollectedFinalized<We
bSpeechSynthesizerClientImpl>, public WebSpeechSynthesizerClient { |
41 public: | 41 public: |
42 WebSpeechSynthesizerClientImpl(PlatformSpeechSynthesizer*, PlatformSpeechSyn
thesizerClient*); | 42 WebSpeechSynthesizerClientImpl(PlatformSpeechSynthesizer*, PlatformSpeechSyn
thesizerClient*); |
43 virtual ~WebSpeechSynthesizerClientImpl(); | 43 virtual ~WebSpeechSynthesizerClientImpl(); |
44 | 44 |
45 virtual void setVoiceList(const WebVector<WebSpeechSynthesisVoice>& voices); | 45 virtual void setVoiceList(const WebVector<WebSpeechSynthesisVoice>& voices); |
46 virtual void didStartSpeaking(const WebSpeechSynthesisUtterance&); | 46 virtual void didStartSpeaking(const WebSpeechSynthesisUtterance&); |
47 virtual void didFinishSpeaking(const WebSpeechSynthesisUtterance&); | 47 virtual void didFinishSpeaking(const WebSpeechSynthesisUtterance&); |
48 virtual void didPauseSpeaking(const WebSpeechSynthesisUtterance&); | 48 virtual void didPauseSpeaking(const WebSpeechSynthesisUtterance&); |
49 virtual void didResumeSpeaking(const WebSpeechSynthesisUtterance&); | 49 virtual void didResumeSpeaking(const WebSpeechSynthesisUtterance&); |
50 virtual void speakingErrorOccurred(const WebSpeechSynthesisUtterance&); | 50 virtual void speakingErrorOccurred(const WebSpeechSynthesisUtterance&); |
51 virtual void wordBoundaryEventOccurred(const WebSpeechSynthesisUtterance&, u
nsigned charIndex); | 51 virtual void wordBoundaryEventOccurred(const WebSpeechSynthesisUtterance&, u
nsigned charIndex); |
52 virtual void sentenceBoundaryEventOccurred(const WebSpeechSynthesisUtterance
&, unsigned charIndex); | 52 virtual void sentenceBoundaryEventOccurred(const WebSpeechSynthesisUtterance
&, unsigned charIndex); |
53 | 53 |
54 void trace(Visitor*); | 54 void trace(Visitor*); |
55 | 55 |
56 private: | 56 private: |
57 Member<PlatformSpeechSynthesizer> m_synthesizer; | 57 Member<PlatformSpeechSynthesizer> m_synthesizer; |
58 Member<PlatformSpeechSynthesizerClient> m_client; | 58 Member<PlatformSpeechSynthesizerClient> m_client; |
59 }; | 59 }; |
60 | 60 |
61 } // namespace blink | 61 } // namespace blink |
62 | 62 |
63 #endif // WebSpeechSynthesizerClientImpl_h | 63 #endif // WebSpeechSynthesizerClientImpl_h |
OLD | NEW |