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

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

Issue 3108007: Adds SpeechInputManagerImpl to handle requests from render views and return recognition events. (Closed)
Patch Set: Address marcus's comment. Created 10 years, 4 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
« no previous file with comments | « chrome/browser/speech/speech_input_dispatcher_host.h ('k') | chrome/browser/speech/speech_input_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/speech/speech_input_manager.h
diff --git a/chrome/browser/speech/speech_input_manager.h b/chrome/browser/speech/speech_input_manager.h
index 39f0d8981d6387a030380cf6f43cea9219fa1c33..cac3294eac7e6b1cd0dc31b75a9d5b88eb1b5b69 100644
--- a/chrome/browser/speech/speech_input_manager.h
+++ b/chrome/browser/speech/speech_input_manager.h
@@ -18,7 +18,7 @@ namespace speech_input {
class SpeechInputManager {
public:
// Implemented by the dispatcher host to relay events to the render views.
- class Listener {
+ class Delegate {
public:
virtual void SetRecognitionResult(int render_view_id,
const string16& value) = 0;
@@ -27,9 +27,9 @@ class SpeechInputManager {
};
// Factory method to create new instances.
- static SpeechInputManager* Create(Listener* listener);
+ static SpeechInputManager* Create(Delegate* delegate);
// Factory method definition useful for tests.
- typedef SpeechInputManager* (FactoryMethod)(Listener*);
+ typedef SpeechInputManager* (FactoryMethod)(Delegate*);
virtual ~SpeechInputManager() {}
@@ -39,6 +39,12 @@ class SpeechInputManager {
virtual void StopRecording(int render_view_id) = 0;
};
+// This typedef is to workaround the issue with certain versions of
+// Visual Studio where it gets confused between multiple Delegate
+// classes and gives a C2500 error. (I saw this error on the try bots -
+// the workaround was not needed for my machine).
+typedef SpeechInputManager::Delegate SpeechInputManagerDelegate;
+
} // namespace speech_input
#endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_
« no previous file with comments | « chrome/browser/speech/speech_input_dispatcher_host.h ('k') | chrome/browser/speech/speech_input_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698