OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 * * Redistributions of source code must retain the above copyright | 7 * * 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 * * Redistributions in binary form must reproduce the above copyright | 9 * * 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 BLINK_PLATFORM_EXPORT WebString voice() const; | 55 BLINK_PLATFORM_EXPORT WebString voice() const; |
56 | 56 |
57 // As defined in: https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.h
tml | 57 // As defined in: https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.h
tml |
58 BLINK_PLATFORM_EXPORT float volume() const; // 0...1, 1 is default | 58 BLINK_PLATFORM_EXPORT float volume() const; // 0...1, 1 is default |
59 BLINK_PLATFORM_EXPORT float rate() const; // 0.1...10, 1 is default | 59 BLINK_PLATFORM_EXPORT float rate() const; // 0.1...10, 1 is default |
60 BLINK_PLATFORM_EXPORT float pitch() const; // 0...2, 1 is default | 60 BLINK_PLATFORM_EXPORT float pitch() const; // 0...2, 1 is default |
61 | 61 |
62 BLINK_PLATFORM_EXPORT double startTime() const; // In seconds. | 62 BLINK_PLATFORM_EXPORT double startTime() const; // In seconds. |
63 | 63 |
64 #if INSIDE_BLINK | 64 #if INSIDE_BLINK |
65 BLINK_PLATFORM_EXPORT WebSpeechSynthesisUtterance(const PassRefPtr<WebCore::
PlatformSpeechSynthesisUtterance>&); | 65 BLINK_PLATFORM_EXPORT WebSpeechSynthesisUtterance(WebCore::PlatformSpeechSyn
thesisUtterance*); |
66 BLINK_PLATFORM_EXPORT WebSpeechSynthesisUtterance& operator=(WebCore::Platfo
rmSpeechSynthesisUtterance*); | 66 BLINK_PLATFORM_EXPORT WebSpeechSynthesisUtterance& operator=(WebCore::Platfo
rmSpeechSynthesisUtterance*); |
67 BLINK_PLATFORM_EXPORT operator PassRefPtr<WebCore::PlatformSpeechSynthesisUt
terance>() const; | |
68 BLINK_PLATFORM_EXPORT operator WebCore::PlatformSpeechSynthesisUtterance*()
const; | 67 BLINK_PLATFORM_EXPORT operator WebCore::PlatformSpeechSynthesisUtterance*()
const; |
69 #endif | 68 #endif |
70 | 69 |
71 private: | 70 private: |
72 WebPrivatePtr<WebCore::PlatformSpeechSynthesisUtterance> m_private; | 71 WebPrivatePtr<WebCore::PlatformSpeechSynthesisUtterance> m_private; |
73 }; | 72 }; |
74 | 73 |
75 } // namespace blink | 74 } // namespace blink |
76 | 75 |
77 #endif // WebSpeechSynthesisUtterance_h | 76 #endif // WebSpeechSynthesisUtterance_h |
OLD | NEW |