| Index: content/renderer/speech_recognition_dispatcher.h
|
| ===================================================================
|
| --- content/renderer/speech_recognition_dispatcher.h (revision 163007)
|
| +++ content/renderer/speech_recognition_dispatcher.h (working copy)
|
| @@ -13,17 +13,15 @@
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognitionHandle.h"
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognizer.h"
|
|
|
| -class RenderViewImpl;
|
| -
|
| namespace content {
|
| +class RenderViewImpl;
|
| struct SpeechRecognitionError;
|
| struct SpeechRecognitionResult;
|
| -}
|
|
|
| // SpeechRecognitionDispatcher is a delegate for methods used by WebKit for
|
| // scripted JS speech APIs. It's the complement of
|
| // SpeechRecognitionDispatcherHost (owned by RenderViewHost).
|
| -class SpeechRecognitionDispatcher : public content::RenderViewObserver,
|
| +class SpeechRecognitionDispatcher : public RenderViewObserver,
|
| public WebKit::WebSpeechRecognizer {
|
| public:
|
| explicit SpeechRecognitionDispatcher(RenderViewImpl* render_view);
|
| @@ -47,11 +45,9 @@
|
| void OnSoundStarted(int request_id);
|
| void OnSoundEnded(int request_id);
|
| void OnAudioEnded(int request_id);
|
| - void OnErrorOccurred(int request_id,
|
| - const content::SpeechRecognitionError& error);
|
| + void OnErrorOccurred(int request_id, const SpeechRecognitionError& error);
|
| void OnRecognitionEnded(int request_id);
|
| - void OnResultRetrieved(int request_id,
|
| - const content::SpeechRecognitionResult& result);
|
| + void OnResultRetrieved(int request_id, const SpeechRecognitionResult& result);
|
|
|
| int GetOrCreateIDForHandle(const WebKit::WebSpeechRecognitionHandle& handle);
|
| bool HandleExists(const WebKit::WebSpeechRecognitionHandle& handle);
|
| @@ -67,4 +63,6 @@
|
| DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionDispatcher);
|
| };
|
|
|
| +} // namespace content
|
| +
|
| #endif // CONTENT_RENDERER_SPEECH_RECOGNITION_DISPATCHER_H_
|
|
|