| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple Computer, 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 enum SpeechBoundary { | 36 enum SpeechBoundary { |
| 37 SpeechWordBoundary, | 37 SpeechWordBoundary, |
| 38 SpeechSentenceBoundary | 38 SpeechSentenceBoundary |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 class PlatformSpeechSynthesisUtterance; | 41 class PlatformSpeechSynthesisUtterance; |
| 42 class WebSpeechSynthesizer; | 42 class WebSpeechSynthesizer; |
| 43 class WebSpeechSynthesizerClient; | |
| 44 class WebSpeechSynthesizerClientImpl; | 43 class WebSpeechSynthesizerClientImpl; |
| 45 | 44 |
| 46 class PlatformSpeechSynthesizerClient : public GarbageCollectedMixin { | 45 class PlatformSpeechSynthesizerClient : public GarbageCollectedMixin { |
| 47 public: | 46 public: |
| 48 virtual void didStartSpeaking(PlatformSpeechSynthesisUtterance*) = 0; | 47 virtual void didStartSpeaking(PlatformSpeechSynthesisUtterance*) = 0; |
| 49 virtual void didFinishSpeaking(PlatformSpeechSynthesisUtterance*) = 0; | 48 virtual void didFinishSpeaking(PlatformSpeechSynthesisUtterance*) = 0; |
| 50 virtual void didPauseSpeaking(PlatformSpeechSynthesisUtterance*) = 0; | 49 virtual void didPauseSpeaking(PlatformSpeechSynthesisUtterance*) = 0; |
| 51 virtual void didResumeSpeaking(PlatformSpeechSynthesisUtterance*) = 0; | 50 virtual void didResumeSpeaking(PlatformSpeechSynthesisUtterance*) = 0; |
| 52 virtual void speakingErrorOccurred(PlatformSpeechSynthesisUtterance*) = 0; | 51 virtual void speakingErrorOccurred(PlatformSpeechSynthesisUtterance*) = 0; |
| 53 virtual void boundaryEventOccurred(PlatformSpeechSynthesisUtterance*, Speech
Boundary, unsigned charIndex) = 0; | 52 virtual void boundaryEventOccurred(PlatformSpeechSynthesisUtterance*, Speech
Boundary, unsigned charIndex) = 0; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 private: | 85 private: |
| 87 Member<PlatformSpeechSynthesizerClient> m_speechSynthesizerClient; | 86 Member<PlatformSpeechSynthesizerClient> m_speechSynthesizerClient; |
| 88 | 87 |
| 89 OwnPtr<WebSpeechSynthesizer> m_webSpeechSynthesizer; | 88 OwnPtr<WebSpeechSynthesizer> m_webSpeechSynthesizer; |
| 90 Member<WebSpeechSynthesizerClientImpl> m_webSpeechSynthesizerClient; | 89 Member<WebSpeechSynthesizerClientImpl> m_webSpeechSynthesizerClient; |
| 91 }; | 90 }; |
| 92 | 91 |
| 93 } // namespace blink | 92 } // namespace blink |
| 94 | 93 |
| 95 #endif // PlatformSpeechSynthesizer_h | 94 #endif // PlatformSpeechSynthesizer_h |
| OLD | NEW |