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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 12 matching lines...) Expand all Loading... |
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef WebSpeechSynthesizer_h | 26 #ifndef WebSpeechSynthesizer_h |
27 #define WebSpeechSynthesizer_h | 27 #define WebSpeechSynthesizer_h |
28 | 28 |
29 #include "WebCommon.h" | 29 #include "WebCommon.h" |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 class WebSpeechSynthesizerClient; | |
34 class WebSpeechSynthesisUtterance; | 33 class WebSpeechSynthesisUtterance; |
35 | 34 |
36 class WebSpeechSynthesizer { | 35 class WebSpeechSynthesizer { |
37 public: | 36 public: |
38 virtual ~WebSpeechSynthesizer() { } | 37 virtual ~WebSpeechSynthesizer() { } |
39 | 38 |
40 virtual void updateVoiceList() = 0; | 39 virtual void updateVoiceList() = 0; |
41 | 40 |
42 // OK to call with more than one utterance, will queue. | 41 // OK to call with more than one utterance, will queue. |
43 virtual void speak(const WebSpeechSynthesisUtterance&) = 0; | 42 virtual void speak(const WebSpeechSynthesisUtterance&) = 0; |
44 | 43 |
45 virtual void pause() = 0; | 44 virtual void pause() = 0; |
46 virtual void resume() = 0; | 45 virtual void resume() = 0; |
47 virtual void cancel() = 0; | 46 virtual void cancel() = 0; |
48 }; | 47 }; |
49 | 48 |
50 } // namespace blink | 49 } // namespace blink |
51 | 50 |
52 #endif // WebSpeechSynthesizer_h | 51 #endif // WebSpeechSynthesizer_h |
OLD | NEW |