| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual ~PlatformSpeechSynthesizerClient() { } | 56 virtual ~PlatformSpeechSynthesizerClient() { } |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 class PLATFORM_EXPORT PlatformSpeechSynthesizer : public GarbageCollectedFinaliz
ed<PlatformSpeechSynthesizer> { | 59 class PLATFORM_EXPORT PlatformSpeechSynthesizer : public GarbageCollectedFinaliz
ed<PlatformSpeechSynthesizer> { |
| 60 WTF_MAKE_NONCOPYABLE(PlatformSpeechSynthesizer); | 60 WTF_MAKE_NONCOPYABLE(PlatformSpeechSynthesizer); |
| 61 public: | 61 public: |
| 62 static PlatformSpeechSynthesizer* create(PlatformSpeechSynthesizerClient*); | 62 static PlatformSpeechSynthesizer* create(PlatformSpeechSynthesizerClient*); |
| 63 | 63 |
| 64 virtual ~PlatformSpeechSynthesizer(); | 64 virtual ~PlatformSpeechSynthesizer(); |
| 65 | 65 |
| 66 const HeapVector<Member<PlatformSpeechSynthesisVoice> >& voiceList() const {
return m_voiceList; } | 66 const HeapVector<Member<PlatformSpeechSynthesisVoice>>& voiceList() const {
return m_voiceList; } |
| 67 virtual void speak(PlatformSpeechSynthesisUtterance*); | 67 virtual void speak(PlatformSpeechSynthesisUtterance*); |
| 68 virtual void pause(); | 68 virtual void pause(); |
| 69 virtual void resume(); | 69 virtual void resume(); |
| 70 virtual void cancel(); | 70 virtual void cancel(); |
| 71 | 71 |
| 72 PlatformSpeechSynthesizerClient* client() const { return m_speechSynthesizer
Client; } | 72 PlatformSpeechSynthesizerClient* client() const { return m_speechSynthesizer
Client; } |
| 73 | 73 |
| 74 void setVoiceList(HeapVector<Member<PlatformSpeechSynthesisVoice> >&); | 74 void setVoiceList(HeapVector<Member<PlatformSpeechSynthesisVoice>>&); |
| 75 | 75 |
| 76 virtual void trace(Visitor*); | 76 virtual void trace(Visitor*); |
| 77 | 77 |
| 78 protected: | 78 protected: |
| 79 explicit PlatformSpeechSynthesizer(PlatformSpeechSynthesizerClient*); | 79 explicit PlatformSpeechSynthesizer(PlatformSpeechSynthesizerClient*); |
| 80 | 80 |
| 81 virtual void initializeVoiceList(); | 81 virtual void initializeVoiceList(); |
| 82 | 82 |
| 83 HeapVector<Member<PlatformSpeechSynthesisVoice> > m_voiceList; | 83 HeapVector<Member<PlatformSpeechSynthesisVoice>> m_voiceList; |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 Member<PlatformSpeechSynthesizerClient> m_speechSynthesizerClient; | 86 Member<PlatformSpeechSynthesizerClient> m_speechSynthesizerClient; |
| 87 | 87 |
| 88 OwnPtr<WebSpeechSynthesizer> m_webSpeechSynthesizer; | 88 OwnPtr<WebSpeechSynthesizer> m_webSpeechSynthesizer; |
| 89 Member<WebSpeechSynthesizerClientImpl> m_webSpeechSynthesizerClient; | 89 Member<WebSpeechSynthesizerClientImpl> m_webSpeechSynthesizerClient; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace blink | 92 } // namespace blink |
| 93 | 93 |
| 94 #endif // PlatformSpeechSynthesizer_h | 94 #endif // PlatformSpeechSynthesizer_h |
| OLD | NEW |