| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #ifndef PlatformSpeechSynthesisVoice_h | 26 #ifndef PlatformSpeechSynthesisVoice_h |
| 27 #define PlatformSpeechSynthesisVoice_h | 27 #define PlatformSpeechSynthesisVoice_h |
| 28 | 28 |
| 29 #include "platform/PlatformExport.h" | 29 #include "platform/PlatformExport.h" |
| 30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
| 31 #include "wtf/text/WTFString.h" | 31 #include "wtf/text/WTFString.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class PLATFORM_EXPORT PlatformSpeechSynthesisVoice FINAL : public GarbageCollect
edFinalized<PlatformSpeechSynthesisVoice> { | 35 class PLATFORM_EXPORT PlatformSpeechSynthesisVoice final : public GarbageCollect
edFinalized<PlatformSpeechSynthesisVoice> { |
| 36 public: | 36 public: |
| 37 static PlatformSpeechSynthesisVoice* create(const String& voiceURI, const St
ring& name, const String& lang, bool localService, bool isDefault); | 37 static PlatformSpeechSynthesisVoice* create(const String& voiceURI, const St
ring& name, const String& lang, bool localService, bool isDefault); |
| 38 static PlatformSpeechSynthesisVoice* create(); | 38 static PlatformSpeechSynthesisVoice* create(); |
| 39 | 39 |
| 40 const String& voiceURI() const { return m_voiceURI; } | 40 const String& voiceURI() const { return m_voiceURI; } |
| 41 void setVoiceURI(const String& voiceURI) { m_voiceURI = voiceURI; } | 41 void setVoiceURI(const String& voiceURI) { m_voiceURI = voiceURI; } |
| 42 | 42 |
| 43 const String& name() const { return m_name; } | 43 const String& name() const { return m_name; } |
| 44 void setName(const String& name) { m_name = name; } | 44 void setName(const String& name) { m_name = name; } |
| 45 | 45 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 61 String m_voiceURI; | 61 String m_voiceURI; |
| 62 String m_name; | 62 String m_name; |
| 63 String m_lang; | 63 String m_lang; |
| 64 bool m_localService; | 64 bool m_localService; |
| 65 bool m_default; | 65 bool m_default; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace blink | 68 } // namespace blink |
| 69 | 69 |
| 70 #endif // PlatformSpeechSynthesisVoice_h | 70 #endif // PlatformSpeechSynthesisVoice_h |
| OLD | NEW |