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

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

Issue 7086005: Context menu for "Voice recognition options" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Reverted changes in render_view_host and implemented instead in render_view_context_menu Created 9 years, 5 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) 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 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 "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 "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 int render_process_id, 57 int render_process_id,
58 int render_view_id, 58 int render_view_id,
59 const gfx::Rect& element_rect, 59 const gfx::Rect& element_rect,
60 const std::string& language, 60 const std::string& language,
61 const std::string& grammar, 61 const std::string& grammar,
62 const std::string& origin_url) = 0; 62 const std::string& origin_url) = 0;
63 virtual void CancelRecognition(int caller_id) = 0; 63 virtual void CancelRecognition(int caller_id) = 0;
64 virtual void StopRecording(int caller_id) = 0; 64 virtual void StopRecording(int caller_id) = 0;
65 65
66 virtual void CancelAllRequestsWithDelegate(Delegate* delegate) = 0; 66 virtual void CancelAllRequestsWithDelegate(Delegate* delegate) = 0;
67
68 void set_censor_results(bool censor) { censor_results_ = censor; }
69
70 bool censor_results() { return censor_results_; }
71 private:
72 bool censor_results_;
Satish 2011/07/20 15:23:13 Sorry I didn't notice this earlier. This class is
gshires 2011/07/20 17:16:10 Done.
67 }; 73 };
68 74
69 // This typedef is to workaround the issue with certain versions of 75 // This typedef is to workaround the issue with certain versions of
70 // Visual Studio where it gets confused between multiple Delegate 76 // Visual Studio where it gets confused between multiple Delegate
71 // classes and gives a C2500 error. (I saw this error on the try bots - 77 // classes and gives a C2500 error. (I saw this error on the try bots -
72 // the workaround was not needed for my machine). 78 // the workaround was not needed for my machine).
73 typedef SpeechInputManager::Delegate SpeechInputManagerDelegate; 79 typedef SpeechInputManager::Delegate SpeechInputManagerDelegate;
74 80
75 } // namespace speech_input 81 } // namespace speech_input
76 82
77 #endif // CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ 83 #endif // CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698