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

Unified 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: Context menu for "Voice recognition options" only appears when input-field has x-webkit-speech 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/speech/speech_input_manager.h
diff --git a/content/browser/speech/speech_input_manager.h b/content/browser/speech/speech_input_manager.h
index 342f2c139d7dc97ddfca349211ca97841f4d74ea..9cbd7e7582ec1e2eb92a387788a22a03b4d2af37 100644
--- a/content/browser/speech/speech_input_manager.h
+++ b/content/browser/speech/speech_input_manager.h
@@ -64,6 +64,13 @@ class SpeechInputManager {
virtual void StopRecording(int caller_id) = 0;
virtual void CancelAllRequestsWithDelegate(Delegate* delegate) = 0;
+
+ void NotifyCensorResults(bool censor_speech_results) {
Satish 2011/07/19 08:22:39 suggest renaming to set_censor_results(), this goe
gshires 2011/07/19 22:56:31 Done.
+ profanity_filter_ = censor_speech_results ? 2 : 0; }
Satish 2011/07/19 08:22:39 indent to left by 2 spaces and move closing brace
gshires 2011/07/19 22:56:31 Shortened to a single line
+
+ int ProfanityFilter() { return profanity_filter_; }
Satish 2011/07/19 08:22:39 getters have the same name as the member variable
gshires 2011/07/19 22:56:31 Done.
+ private:
+ int profanity_filter_;
Satish 2011/07/19 08:22:39 It may be preferable to have this as a boolean (e.
gshires 2011/07/19 22:56:31 Done.
};
// This typedef is to workaround the issue with certain versions of

Powered by Google App Engine
This is Rietveld 408576698