OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_SPEECH_TTS_REQUEST_HANDLER_H_ |
| 6 #define CHROME_BROWSER_SPEECH_TTS_REQUEST_HANDLER_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "content/public/browser/tts_dispatcher_host.h" |
| 10 |
| 11 class TtsRequestHandler : public content::TtsDispatcherHostDelegate { |
| 12 public: |
| 13 TtsRequestHandler(); |
| 14 virtual ~TtsRequestHandler(); |
| 15 |
| 16 // TtsDispatcherHostDelegate. |
| 17 virtual void OnInitializeVoiceList( |
| 18 content::TtsDispatcherHost* dispatcher_host, |
| 19 int routing_id) OVERRIDE; |
| 20 virtual void OnSpeak(content::TtsDispatcherHost* dispatcher_host, |
| 21 int routing_id, |
| 22 const content::TtsUtteranceRequest&) OVERRIDE; |
| 23 virtual void OnPause(content::TtsDispatcherHost* dispatcher_host) OVERRIDE; |
| 24 virtual void OnResume(content::TtsDispatcherHost* dispatcher_host) OVERRIDE; |
| 25 virtual void OnCancel(content::TtsDispatcherHost* dispatcher_host) OVERRIDE; |
| 26 |
| 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(TtsRequestHandler); |
| 29 }; |
| 30 |
| 31 #endif // CHROME_BROWSER_SPEECH_TTS_REQUEST_HANDLER_H_ |
OLD | NEW |