Chromium Code Reviews| 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 #ifndef WebSpeechSynthesizer_h | 26 #ifndef WebSpeechSynthesizer_h |
| 27 #define WebSpeechSynthesizer_h | 27 #define WebSpeechSynthesizer_h |
| 28 | 28 |
| 29 #include "WebCommon.h" | 29 #include "WebCommon.h" |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 class WebSpeechSynthesizerClient; | 33 class WebSpeechSynthesizerClient; |
| 34 class WebSpeechSynthesisUtterance; | 34 class WebSpeechSynthesisUtterance; |
| 35 | 35 |
| 36 class WebSpeechSynthesizer { | 36 class BLINK_PLATFORM_EXPORT WebSpeechSynthesizer { |
|
abarth-chromium
2013/12/09 17:39:51
This class is entirely inline. You don't need to
| |
| 37 public: | 37 public: |
| 38 virtual ~WebSpeechSynthesizer() { } | 38 virtual ~WebSpeechSynthesizer() { } |
| 39 | 39 |
| 40 virtual void updateVoiceList() = 0; | 40 virtual void updateVoiceList() = 0; |
| 41 | 41 |
| 42 // OK to call with more than one utterance, will queue. | 42 // OK to call with more than one utterance, will queue. |
| 43 virtual void speak(const WebSpeechSynthesisUtterance&) = 0; | 43 virtual void speak(const WebSpeechSynthesisUtterance&) = 0; |
| 44 | 44 |
| 45 virtual void pause() = 0; | 45 virtual void pause() = 0; |
| 46 virtual void resume() = 0; | 46 virtual void resume() = 0; |
| 47 virtual void cancel() = 0; | 47 virtual void cancel() = 0; |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace blink | 50 } // namespace blink |
| 51 | 51 |
| 52 #endif // WebSpeechSynthesizer_h | 52 #endif // WebSpeechSynthesizer_h |
| OLD | NEW |