| Index: chrome/renderer/speech_input_dispatcher.h
|
| ===================================================================
|
| --- chrome/renderer/speech_input_dispatcher.h (revision 71253)
|
| +++ chrome/renderer/speech_input_dispatcher.h (working copy)
|
| @@ -7,28 +7,26 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "chrome/common/speech_input_result.h"
|
| -#include "ipc/ipc_channel.h"
|
| +#include "chrome/renderer/render_view_observer.h"
|
| #include "third_party/WebKit/WebKit/chromium/public/WebSpeechInputController.h"
|
|
|
| class GURL;
|
| -class RenderView;
|
|
|
| namespace WebKit {
|
| class WebSpeechInputListener;
|
| -class WebString;
|
| -struct WebRect;
|
| }
|
|
|
| // SpeechInputDispatcher is a delegate for speech input messages used by WebKit.
|
| // It's the complement of SpeechInputDispatcherHost (owned by RenderViewHost).
|
| -class SpeechInputDispatcher : public WebKit::WebSpeechInputController,
|
| - public IPC::Channel::Listener {
|
| +class SpeechInputDispatcher : public RenderViewObserver,
|
| + public WebKit::WebSpeechInputController {
|
| public:
|
| SpeechInputDispatcher(RenderView* render_view,
|
| WebKit::WebSpeechInputListener* listener);
|
|
|
| - // IPC::Channel::Listener implementation.
|
| - bool OnMessageReceived(const IPC::Message& msg);
|
| + private:
|
| + // RenderView::Observer implementation.
|
| + bool OnMessageReceived(const IPC::Message& message);
|
|
|
| // WebKit::WebSpeechInputController.
|
| virtual bool startRecognition(int request_id,
|
| @@ -39,13 +37,11 @@
|
| virtual void cancelRecognition(int request_id);
|
| virtual void stopRecording(int request_id);
|
|
|
| - private:
|
| void OnSpeechRecognitionResult(
|
| int request_id, const speech_input::SpeechInputResultArray& result);
|
| void OnSpeechRecordingComplete(int request_id);
|
| void OnSpeechRecognitionComplete(int request_id);
|
|
|
| - RenderView* render_view_;
|
| WebKit::WebSpeechInputListener* listener_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(SpeechInputDispatcher);
|
|
|
| Property changes on: chrome\renderer\speech_input_dispatcher.h
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|