Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: chrome/browser/speech/tts_request_handler.h

Issue 12589005: Implement web speech synthesis. (Closed) Base URL: http://git.chromium.org/chromium/src.git@webtts
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/speech/tts_request_handler.h
diff --git a/chrome/browser/speech/tts_request_handler.h b/chrome/browser/speech/tts_request_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..929cbe41068dfdee710c3264eaa7f99024b50061
--- /dev/null
+++ b/chrome/browser/speech/tts_request_handler.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SPEECH_TTS_REQUEST_HANDLER_H_
+#define CHROME_BROWSER_SPEECH_TTS_REQUEST_HANDLER_H_
+
+#include "base/compiler_specific.h"
+#include "content/public/browser/tts_dispatcher_host.h"
+
+class TtsRequestHandler : public content::TtsDispatcherHostDelegate {
+ public:
+ TtsRequestHandler();
+ virtual ~TtsRequestHandler();
+
+ // TtsDispatcherHostDelegate.
+ virtual void OnInitializeVoiceList(
+ content::TtsDispatcherHost* dispatcher_host,
+ int routing_id) OVERRIDE;
+ virtual void OnSpeak(content::TtsDispatcherHost* dispatcher_host,
+ int routing_id,
+ const content::TtsUtteranceRequest&) OVERRIDE;
+ virtual void OnPause(content::TtsDispatcherHost* dispatcher_host) OVERRIDE;
+ virtual void OnResume(content::TtsDispatcherHost* dispatcher_host) OVERRIDE;
+ virtual void OnCancel(content::TtsDispatcherHost* dispatcher_host) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TtsRequestHandler);
+};
+
+#endif // CHROME_BROWSER_SPEECH_TTS_REQUEST_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698