| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class PlatformSpeechSynthesizerClient : public GarbageCollectedMixin { | 49 class PlatformSpeechSynthesizerClient : public GarbageCollectedMixin { |
| 50 public: | 50 public: |
| 51 virtual void didStartSpeaking(PlatformSpeechSynthesisUtterance*) = 0; | 51 virtual void didStartSpeaking(PlatformSpeechSynthesisUtterance*) = 0; |
| 52 virtual void didFinishSpeaking(PlatformSpeechSynthesisUtterance*) = 0; | 52 virtual void didFinishSpeaking(PlatformSpeechSynthesisUtterance*) = 0; |
| 53 virtual void didPauseSpeaking(PlatformSpeechSynthesisUtterance*) = 0; | 53 virtual void didPauseSpeaking(PlatformSpeechSynthesisUtterance*) = 0; |
| 54 virtual void didResumeSpeaking(PlatformSpeechSynthesisUtterance*) = 0; | 54 virtual void didResumeSpeaking(PlatformSpeechSynthesisUtterance*) = 0; |
| 55 virtual void speakingErrorOccurred(PlatformSpeechSynthesisUtterance*) = 0; | 55 virtual void speakingErrorOccurred(PlatformSpeechSynthesisUtterance*) = 0; |
| 56 virtual void boundaryEventOccurred(PlatformSpeechSynthesisUtterance*, Speech
Boundary, unsigned charIndex) = 0; | 56 virtual void boundaryEventOccurred(PlatformSpeechSynthesisUtterance*, Speech
Boundary, unsigned charIndex) = 0; |
| 57 virtual void voicesDidChange() = 0; | 57 virtual void voicesDidChange() = 0; |
| 58 | 58 |
| 59 virtual void trace(Visitor*) { } | |
| 60 protected: | 59 protected: |
| 61 virtual ~PlatformSpeechSynthesizerClient() { } | 60 virtual ~PlatformSpeechSynthesizerClient() { } |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 class PLATFORM_EXPORT PlatformSpeechSynthesizer : public GarbageCollectedFinaliz
ed<PlatformSpeechSynthesizer> { | 63 class PLATFORM_EXPORT PlatformSpeechSynthesizer : public GarbageCollectedFinaliz
ed<PlatformSpeechSynthesizer> { |
| 65 WTF_MAKE_NONCOPYABLE(PlatformSpeechSynthesizer); | 64 WTF_MAKE_NONCOPYABLE(PlatformSpeechSynthesizer); |
| 66 public: | 65 public: |
| 67 static PlatformSpeechSynthesizer* create(PlatformSpeechSynthesizerClient*); | 66 static PlatformSpeechSynthesizer* create(PlatformSpeechSynthesizerClient*); |
| 68 | 67 |
| 69 virtual ~PlatformSpeechSynthesizer(); | 68 virtual ~PlatformSpeechSynthesizer(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 90 private: | 89 private: |
| 91 Member<PlatformSpeechSynthesizerClient> m_speechSynthesizerClient; | 90 Member<PlatformSpeechSynthesizerClient> m_speechSynthesizerClient; |
| 92 | 91 |
| 93 OwnPtr<blink::WebSpeechSynthesizer> m_webSpeechSynthesizer; | 92 OwnPtr<blink::WebSpeechSynthesizer> m_webSpeechSynthesizer; |
| 94 Member<WebCore::WebSpeechSynthesizerClientImpl> m_webSpeechSynthesizerClient
; | 93 Member<WebCore::WebSpeechSynthesizerClientImpl> m_webSpeechSynthesizerClient
; |
| 95 }; | 94 }; |
| 96 | 95 |
| 97 } // namespace WebCore | 96 } // namespace WebCore |
| 98 | 97 |
| 99 #endif // PlatformSpeechSynthesizer_h | 98 #endif // PlatformSpeechSynthesizer_h |
| OLD | NEW |