| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 } | 49 } |
| 50 | 50 |
| 51 BLINK_PLATFORM_EXPORT void assign(const WebSpeechSynthesisUtterance&); | 51 BLINK_PLATFORM_EXPORT void assign(const WebSpeechSynthesisUtterance&); |
| 52 BLINK_PLATFORM_EXPORT void reset(); | 52 BLINK_PLATFORM_EXPORT void reset(); |
| 53 bool isNull() const { return m_private.isNull(); } | 53 bool isNull() const { return m_private.isNull(); } |
| 54 | 54 |
| 55 BLINK_PLATFORM_EXPORT WebString text() const; | 55 BLINK_PLATFORM_EXPORT WebString text() const; |
| 56 BLINK_PLATFORM_EXPORT WebString lang() const; | 56 BLINK_PLATFORM_EXPORT WebString lang() const; |
| 57 BLINK_PLATFORM_EXPORT WebString voice() const; | 57 BLINK_PLATFORM_EXPORT WebString voice() const; |
| 58 | 58 |
| 59 // As defined in: https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.htm
l | 59 // As defined in: |
| 60 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html |
| 60 BLINK_PLATFORM_EXPORT float volume() const; // 0...1, 1 is default | 61 BLINK_PLATFORM_EXPORT float volume() const; // 0...1, 1 is default |
| 61 BLINK_PLATFORM_EXPORT float rate() const; // 0.1...10, 1 is default | 62 BLINK_PLATFORM_EXPORT float rate() const; // 0.1...10, 1 is default |
| 62 BLINK_PLATFORM_EXPORT float pitch() const; // 0...2, 1 is default | 63 BLINK_PLATFORM_EXPORT float pitch() const; // 0...2, 1 is default |
| 63 | 64 |
| 64 BLINK_PLATFORM_EXPORT double startTime() const; // In seconds. | 65 BLINK_PLATFORM_EXPORT double startTime() const; // In seconds. |
| 65 | 66 |
| 66 #if INSIDE_BLINK | 67 #if INSIDE_BLINK |
| 67 BLINK_PLATFORM_EXPORT WebSpeechSynthesisUtterance( | 68 BLINK_PLATFORM_EXPORT WebSpeechSynthesisUtterance( |
| 68 PlatformSpeechSynthesisUtterance*); | 69 PlatformSpeechSynthesisUtterance*); |
| 69 BLINK_PLATFORM_EXPORT WebSpeechSynthesisUtterance& operator=( | 70 BLINK_PLATFORM_EXPORT WebSpeechSynthesisUtterance& operator=( |
| 70 PlatformSpeechSynthesisUtterance*); | 71 PlatformSpeechSynthesisUtterance*); |
| 71 BLINK_PLATFORM_EXPORT operator PlatformSpeechSynthesisUtterance*() const; | 72 BLINK_PLATFORM_EXPORT operator PlatformSpeechSynthesisUtterance*() const; |
| 72 #endif | 73 #endif |
| 73 | 74 |
| 74 private: | 75 private: |
| 75 WebPrivatePtr<PlatformSpeechSynthesisUtterance> m_private; | 76 WebPrivatePtr<PlatformSpeechSynthesisUtterance> m_private; |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace blink | 79 } // namespace blink |
| 79 | 80 |
| 80 #endif // WebSpeechSynthesisUtterance_h | 81 #endif // WebSpeechSynthesisUtterance_h |
| OLD | NEW |