OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_SPEECH_INPUT_DISPATCHER_H_ | 5 #ifndef CHROME_RENDERER_SPEECH_INPUT_DISPATCHER_H_ |
6 #define CHROME_RENDERER_SPEECH_INPUT_DISPATCHER_H_ | 6 #define CHROME_RENDERER_SPEECH_INPUT_DISPATCHER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chrome/common/speech_input_result.h" | |
10 #include "chrome/renderer/render_view_observer.h" | 9 #include "chrome/renderer/render_view_observer.h" |
| 10 #include "content/common/speech_input_result.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 GURL; | 13 class GURL; |
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). |
(...skipping 21 matching lines...) Expand all Loading... |
42 int request_id, const speech_input::SpeechInputResultArray& result); | 42 int request_id, const speech_input::SpeechInputResultArray& 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 | 45 |
46 WebKit::WebSpeechInputListener* listener_; | 46 WebKit::WebSpeechInputListener* listener_; |
47 | 47 |
48 DISALLOW_COPY_AND_ASSIGN(SpeechInputDispatcher); | 48 DISALLOW_COPY_AND_ASSIGN(SpeechInputDispatcher); |
49 }; | 49 }; |
50 | 50 |
51 #endif // CHROME_RENDERER_SPEECH_INPUT_DISPATCHER_H_ | 51 #endif // CHROME_RENDERER_SPEECH_INPUT_DISPATCHER_H_ |
OLD | NEW |