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 class PlatformSpeechSynthesisUtteranceClient : public GarbageCollectedMixin { | 36 class PlatformSpeechSynthesisUtteranceClient : public GarbageCollectedMixin { |
37 public: | 37 public: |
38 // Implement methods as needed. | 38 // Implement methods as needed. |
39 protected: | 39 protected: |
40 virtual ~PlatformSpeechSynthesisUtteranceClient() { } | 40 virtual ~PlatformSpeechSynthesisUtteranceClient() { } |
41 }; | 41 }; |
42 | 42 |
43 class PLATFORM_EXPORT PlatformSpeechSynthesisUtterance FINAL : public GarbageCol
lectedFinalized<PlatformSpeechSynthesisUtterance> { | 43 class PLATFORM_EXPORT PlatformSpeechSynthesisUtterance final : public GarbageCol
lectedFinalized<PlatformSpeechSynthesisUtterance> { |
44 public: | 44 public: |
45 static PlatformSpeechSynthesisUtterance* create(PlatformSpeechSynthesisUtter
anceClient*); | 45 static PlatformSpeechSynthesisUtterance* create(PlatformSpeechSynthesisUtter
anceClient*); |
46 | 46 |
47 const String& text() const { return m_text; } | 47 const String& text() const { return m_text; } |
48 void setText(const String& text) { m_text = text; } | 48 void setText(const String& text) { m_text = text; } |
49 | 49 |
50 const String& lang() const { return m_lang; } | 50 const String& lang() const { return m_lang; } |
51 void setLang(const String& lang) { m_lang = lang; } | 51 void setLang(const String& lang) { m_lang = lang; } |
52 | 52 |
53 PlatformSpeechSynthesisVoice* voice() const { return m_voice; } | 53 PlatformSpeechSynthesisVoice* voice() const { return m_voice; } |
(...skipping 27 matching lines...) Expand all Loading... |
81 Member<PlatformSpeechSynthesisVoice> m_voice; | 81 Member<PlatformSpeechSynthesisVoice> m_voice; |
82 float m_volume; | 82 float m_volume; |
83 float m_rate; | 83 float m_rate; |
84 float m_pitch; | 84 float m_pitch; |
85 double m_startTime; | 85 double m_startTime; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace blink | 88 } // namespace blink |
89 | 89 |
90 #endif // PlatformSpeechSynthesisUtterance_h | 90 #endif // PlatformSpeechSynthesisUtterance_h |
OLD | NEW |