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

Side by Side Diff: content/browser/speech/speech_input_manager.h

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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 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_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_
6 #define CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ 6 #define CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 SpeechInputManager(); 50 SpeechInputManager();
51 51
52 // Invokes the platform provided microphone settings UI in a non-blocking way, 52 // Invokes the platform provided microphone settings UI in a non-blocking way,
53 // via the BrowserThread::FILE thread. 53 // via the BrowserThread::FILE thread.
54 static void ShowAudioInputSettings(AudioManager* audio_manager); 54 static void ShowAudioInputSettings(AudioManager* audio_manager);
55 55
56 // Same as ShowAudioInputSettings above but can be called from the UI thread 56 // Same as ShowAudioInputSettings above but can be called from the UI thread
57 // where the caller has a pointer to a resource context, but due to not 57 // where the caller has a pointer to a resource context, but due to not
58 // running on the IO thread, cannot access its properties. 58 // running on the IO thread, cannot access its properties.
59 static void ShowAudioInputSettingsFromUI( 59 static void ShowAudioInputSettingsFromUI(
60 const content::ResourceContext* resource_context); 60 content::ResourceContext* resource_context);
61 61
62 virtual ~SpeechInputManager(); 62 virtual ~SpeechInputManager();
63 63
64 // Handlers for requests from render views. 64 // Handlers for requests from render views.
65 65
66 // |delegate| is a weak pointer and should remain valid until 66 // |delegate| is a weak pointer and should remain valid until
67 // its |DidCompleteRecognition| method is called or recognition is cancelled. 67 // its |DidCompleteRecognition| method is called or recognition is cancelled.
68 // |render_process_id| is the ID of the renderer process initiating the 68 // |render_process_id| is the ID of the renderer process initiating the
69 // request. 69 // request.
70 // |element_rect| is the display bounds of the html element requesting speech 70 // |element_rect| is the display bounds of the html element requesting speech
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 // This typedef is to workaround the issue with certain versions of 177 // This typedef is to workaround the issue with certain versions of
178 // Visual Studio where it gets confused between multiple Delegate 178 // Visual Studio where it gets confused between multiple Delegate
179 // classes and gives a C2500 error. (I saw this error on the try bots - 179 // classes and gives a C2500 error. (I saw this error on the try bots -
180 // the workaround was not needed for my machine). 180 // the workaround was not needed for my machine).
181 typedef SpeechInputManager::Delegate SpeechInputManagerDelegate; 181 typedef SpeechInputManager::Delegate SpeechInputManagerDelegate;
182 182
183 } // namespace speech_input 183 } // namespace speech_input
184 184
185 #endif // CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ 185 #endif // CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/speech/speech_input_dispatcher_host.cc ('k') | content/browser/speech/speech_input_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698