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

Side by Side Diff: content/renderer/speech_input_dispatcher.h

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_SPEECH_INPUT_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_SPEECH_INPUT_DISPATCHER_H_
6 #define CONTENT_RENDERER_SPEECH_INPUT_DISPATCHER_H_ 6 #define CONTENT_RENDERER_SPEECH_INPUT_DISPATCHER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/speech_input_result.h" 9 #include "content/common/speech_input_result.h"
10 #include "content/public/renderer/render_view_observer.h" 10 #include "content/public/renderer/render_view_observer.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechInputControl ler.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechInputControl ler.h"
12 12
13 class RenderViewImpl; 13 class RenderViewImpl;
14 14
15 namespace WebKit { 15 namespace WebKit {
16 class WebSpeechInputListener; 16 class WebSpeechInputListener;
17 } 17 }
18 18
19 // SpeechInputDispatcher is a delegate for speech input messages used by WebKit. 19 // SpeechInputDispatcher is a delegate for speech input messages used by WebKit.
20 // It's the complement of SpeechInputDispatcherHost (owned by RenderViewHost). 20 // It's the complement of SpeechInputDispatcherHost (owned by RenderViewHost).
21 class SpeechInputDispatcher : public content::RenderViewObserver, 21 class SpeechInputDispatcher : public content::RenderViewObserver,
22 public WebKit::WebSpeechInputController { 22 public WebKit::WebSpeechInputController {
23 public: 23 public:
24 SpeechInputDispatcher(RenderViewImpl* render_view, 24 SpeechInputDispatcher(RenderViewImpl* render_view,
25 WebKit::WebSpeechInputListener* listener); 25 WebKit::WebSpeechInputListener* listener);
26 26
27 private: 27 private:
28 // RenderView::Observer implementation. 28 // RenderView::Observer implementation.
29 virtual bool OnMessageReceived(const IPC::Message& message); 29 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
30 30
31 // WebKit::WebSpeechInputController. 31 // WebKit::WebSpeechInputController.
32 virtual bool startRecognition(int request_id, 32 virtual bool startRecognition(int request_id,
33 const WebKit::WebRect& element_rect, 33 const WebKit::WebRect& element_rect,
34 const WebKit::WebString& language, 34 const WebKit::WebString& language,
35 const WebKit::WebString& grammar, 35 const WebKit::WebString& grammar,
36 const WebKit::WebSecurityOrigin& origin); 36 const WebKit::WebSecurityOrigin& origin);
37 37
38 virtual void cancelRecognition(int request_id); 38 virtual void cancelRecognition(int request_id);
39 virtual void stopRecording(int request_id); 39 virtual void stopRecording(int request_id);
40 40
41 void OnSpeechRecognitionResult(int request_id, 41 void OnSpeechRecognitionResult(int request_id,
42 const speech_input::SpeechInputResult& result); 42 const speech_input::SpeechInputResult& result);
43 void OnSpeechRecordingComplete(int request_id); 43 void OnSpeechRecordingComplete(int request_id);
44 void OnSpeechRecognitionComplete(int request_id); 44 void OnSpeechRecognitionComplete(int request_id);
45 void OnSpeechRecognitionToggleSpeechInput(); 45 void OnSpeechRecognitionToggleSpeechInput();
46 46
47 WebKit::WebSpeechInputListener* listener_; 47 WebKit::WebSpeechInputListener* listener_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(SpeechInputDispatcher); 49 DISALLOW_COPY_AND_ASSIGN(SpeechInputDispatcher);
50 }; 50 };
51 51
52 #endif // CHROME_RENDERER_SPEECH_INPUT_DISPATCHER_H_ 52 #endif // CHROME_RENDERER_SPEECH_INPUT_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/renderer_webaudiodevice_impl.h ('k') | content/renderer/text_input_client_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698